makentp - Setup NTP server on the management node and the service node.
makentp [-h|--help]
makentp [-v|--version]
makentp [-a|--all] [-V|--verbose]
makentp command sets up the NTP server on the xCAT management node and the service node.
By default, it sets up the NTP server for xCAT management node. If -a flag is specified, the command will setup the ntp servers for management node as well as all the service nodes that have servicenode.ntpserver set. It honors the site table attributes extntpservers and ntpservers described below:
site.extntpservers -- the NTP servers for the management node to sync with. If it is empty then the NTP server will use the management node's own hardware clock to calculate the system date and time.
site.ntpservers -- the NTP servers for the service node and compute node to sync with. The keyword <xcatmaster> means that the node's NTP server is the node that is managing it (either its service node or the management node).
site.ntpbackend -- the NTP daemon to configure. Valid values are auto, chrony, and ntpd. The default is auto, which selects chrony on distributions that ship it and ntpd on older ones such as EL6 and SLES 12. If the selected daemon is not installed, makentp uses the other one and reports the change. The same value reaches the service nodes and the compute nodes, which the setupntp postscript also accepts as --backend chrony|ntpd.
To setup NTP on the compute node, add setupntp postscript to the postscripts table and run updatenode node -P setupntp command.
Setup NTP servers for both management node and the service node. If management node has SLES installed and used as ntpservers, it is recommended to use the setupntp postscript to set up NTP server for service nodes.
Display usage message.
Command Version.
Verbose output.
0 The command completed successfully.
1 An error has occurred.
makentp
makentp -a
/opt/xcat/bin/makentp