mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-25 13:12:03 +00:00
94 lines
1.8 KiB
Plaintext
Executable File
94 lines
1.8 KiB
Plaintext
Executable File
|
|
=head1 NAME
|
|
|
|
B<makentp> - Setup NTP server on the management node and the service node.
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
B<makentp [-h|--help]>
|
|
|
|
B<makentp [-v|--version]>
|
|
|
|
B<makentp [-a|--all] [-V|--verbose]>
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
B<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 I<servicenode.ntpserver> set. It honors the site table attributes I<extntpservers> and I<ntpservers> described below:
|
|
|
|
=over 4
|
|
|
|
I<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.
|
|
|
|
I<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).
|
|
|
|
=back
|
|
|
|
To setup NTP on the compute node, please add B<setupntp> postscript to the I<postscripts> table and run I<updatenode node -P setupntp> command.
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
=over 10
|
|
|
|
|
|
=item B<-a|--all>
|
|
|
|
Setup NTP servers for both management node and the service node.
|
|
|
|
|
|
=item B<-h|--help>
|
|
|
|
Display usage message.
|
|
|
|
|
|
=item B<-v|--version>
|
|
|
|
Command Version.
|
|
|
|
=item B<-V|--verbose>
|
|
|
|
Verbose output.
|
|
|
|
=back
|
|
|
|
=head1 RETURN VALUE
|
|
|
|
0 The command completed successfully.
|
|
|
|
1 An error has occurred.
|
|
|
|
=head1 EXAMPLES
|
|
|
|
=over 3
|
|
|
|
=item 1.
|
|
To setup NTP server on the management node:
|
|
|
|
makentp
|
|
|
|
=item 2.
|
|
To setup NTP servers on both management node and the service node:
|
|
|
|
setupntp -a
|
|
|
|
|
|
=back
|
|
|
|
=head1 FILES
|
|
|
|
/opt/xcat/bin/setupntp
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
|
|
|
|
|