Skip to main content

3.6.10 Configuring the NTP Servers Used by the XSCF


3.6.10 Configuring the NTP Servers Used by the XSCF
Up to three NTP servers can be registered to obtain the XSCF time from a high-level NTP server. To register an NTP server, use the setntp command with the -c add option specified.
At this time, the XSCF must be configured as an NTP client. For details on how to configure the XSCF as an NTP client, see "3.6.9 Specifying the XSCF as an NTP Client."
When an NTP server is registered, existing settings are deleted or overwritten with those of the specified NTP server. To specify an NTP server by its host name, DNS servers must be able to resolve the server name.
  1. Execute the showntp command to display the NTP servers used with the XSCF network.
XSCF> showntp -a
client : disable
server : enable

server ntp1.example.com prefer
server ntp2.example.com
  1. Execute the showntp command to check synchronization and display the status.
XSCF> showntp -l
remote refid st t when poll reach delay offset jitter
========================================================================
*192.168.0.27 192.168.1.56 2 u 27 64 377 12.929 -2.756 1.993
+192.168.0.57 192.168.1.86 2 u 32 64 377 13.030 2.184 94.421
127.127.1.0 .LOCL. 5 l 44 64 377 0.000 0.000 0.008
  1. Execute the setntp command to add an NTP server.
    The following example adds the following three IP addresses as high level NTP servers for the XSCF: 192.168.1.2, 130.34.11.111, and 130.34.11.117.
XSCF> setntp -c add 192.168.1.2 130.34.11.111 130.34.11.117
Please reset the XSCF by rebootxscf to apply the ntp settings.
  1. The following example adds the following two host names as high level NTP servers for the XSCF: ntp1.red.com and ntp2.blue.com.
XSCF> setntp -c add ntp1.red.com ntp2.blue.com
Please reset the XSCF by rebootxscf to apply the ntp settings.
  1. Execute the setntp command to delete an NTP server of the XSCF.
    The following example deletes ntp2.example.com, which is an NTP server for the XSCF.
XSCF> setntp -c del ntp2.example.com
Please reset the XSCF by rebootxscf to apply the ntp settings.
  1. Execute the rebootxscf command to reboot the XSCF to reflect the settings made.
XSCF> rebootxscf -a
The XSCF will be reset. Continue? [y|n] :y
  1. The XSCF session is disconnected at this time. Reconnect to the XSCF, and log in again.
  2. Execute the showntp command, and confirm the NTP servers.
XSCF> showntp -a
client : enable
server : disable

server ntp1.red.com prefer
server ntp2.blue.com