sysconf ntp addserver
Add an NTP server. NTP will automatically synchronize with the highest-stratum server you add. If none of these servers are accessible, NTP will synchronize with the local clock, and may be subject to drift.
A DNS name server must be configured if you add an NTP server by hostname.
User Privileges
Users with the following privileges can perform this command:
>Admin
>Operator
Syntax
sysconf ntp addserver <hostname_or_ipaddress> [-autokey | -key <keyid>] [-burst] [-iburst] [-prefer] [-version <version>]
Argument(s) | Shortcut | Description |
---|---|---|
<hostname_or_ipaddress> | Specifies the hostname or IP address of the NTP Server. | |
-autokey | -a | Send and receive packets authenticated by the AutoKey scheme (not used with -key <keyid>). |
-burst | -b | Send multiple packets when the server is reachable. |
-iburst | -i | Send out bursts of 8 packets when the server is unreachable. |
-key | -k |
Specifies the NTP Authentication key ID (not used with AutoKey) Range: 1 to 65535 |
-prefer | -p | Set this server as the preferred server. |
-version <version> | -v |
Specifies the NTP version Valid values: 3 or 4 |
Example
lunash:>sysconf ntp addserver time.nrc.ca NTP server 'server time.nrc.ca' added. WARNING !! Server 'time.nrc.ca' added without authentication. NTP is enabled Stopping ntpd: [ OK ] Starting ntpd: [ OK ] Please wait to see the result ...... NTP is running =========================================================== NTP Associations Status: ind assid status conf reach auth condition last_event cnt =========================================================== 1 1310 9024 yes yes none reject reachable 2 2 1311 8011 yes no none reject mobilize 1 =========================================================== Please look at the ntp log to see any potential problem. Command Result : 0 (Success)