3.6.14 Changing the Clock Address of the XSCF Local Clock
3.6.14 Changing the Clock Address of the XSCF Local Clock
Set the clock address of the local clock of the XSCF itself. You can specify a value from 0 to 3 for the least significant byte of the clock address of the local clock. The default clock address of the local clock is 127.127.1.0.
- Execute the showntp command to display the clock address of the local clock of the XSCF itself.
XSCF> showntp -m prefer : on localaddr : 0 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 |
- Execute the setntp command to change the clock address of the local clock of the XSCF itself.
The following example sets 1 as the least significant byte of the clock address.
XSCF> setntp -m localaddr=1 Please reset the XSCF by rebootxscf to apply the ntp settings. |
- 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 |
- The XSCF session is disconnected at this time. Reconnect to the XSCF, and log in again.
- Execute the showntp command to display the clock address of the local clock of the XSCF.
XSCF> showntp -m prefer : on localaddr : 1 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.1 .LOCL. 5 l 44 64 377 0.000 0.000 0.008 |
Notes About NTP Servers Referencing the Local Clock
Suppose the XSCF refers to an NTP server that refers to the system time (local clock) of the server itself, and "127.127.1.0" is the set address of this local clock. In this case, time synchronization with the XSCF may be not be possible.
The address of the local clock of the XSCF itself is fixed at "127.127.1.0." So if the XSCF refers to an NTP server whose local clock has the set address of "127.127.1.0," the address of the clock source (refid) is the same as that of the local clock of the XSCF itself. Such an NTP server is not subject to XSCF time synchronization.
By executing the showntp -l command, you can display the address of the clock source of each NTP server itself as configured on the XSCF, and the address of the local clock of the XSCF itself.
The address of the local clock of the XSCF itself is fixed at "127.127.1.0." So if the XSCF refers to an NTP server whose local clock has the set address of "127.127.1.0," the address of the clock source (refid) is the same as that of the local clock of the XSCF itself. Such an NTP server is not subject to XSCF time synchronization.
By executing the showntp -l command, you can display the address of the clock source of each NTP server itself as configured on the XSCF, and the address of the local clock of the XSCF itself.
XSCF> showntp -l remote refid st t when poll reach delay offset jitter ======================================================================== 192.168.1.2 LOCAL(0) 3 u 10 1024 377 0.000 0.000 0.000 *127.127.1.0 .LOCL. 5 l 28 64 377 0.000 0.000 0.008 |
Of the two NTP servers in the output, the first server (192.168.1.2) is the NTP server configured by the setntp command. The refid of this NTP server is LOCAL(0), so the set clock source of the NTP server is the local clock whose address is "127.127.1.0." The source of the second server is the local clock of the XSCF itself. The address of the local clock of the XSCF itself is fixed at "127.127.1.0." Since the NTP server (192.168.1.2) is not subject to XSCF time synchronization, the result is that the XSCF synchronizes the time to its own local clock.
By taking any of the following measures to prevent problems, you can have the time correctly synchronized with the NTP servers configured by the setntp command.
By taking any of the following measures to prevent problems, you can have the time correctly synchronized with the NTP servers configured by the setntp command.
- Change the clock sources referenced by the NTP servers configured for the XSCF.
Use the showntp -l command to check the clock sources of the NTP servers configured for the XSCF. The NTP server whose refid is LOCAL(0), as output above, refers to the local clock whose address is "127.127.1.0." Therefore, make a change such that the server refers to another clock source. Before changing the clock source of an NTP server, confirm that the change does not affect other NTP clients. - Change the address of the local clock of the NTP server.
Change the address of the local clock of the NTP server referenced by the XSCF to "127.127.1.1," "127.127.1.2," or "127.127.1.3." Modify /etc/inet/ntp.conf of Oracle Solaris. To apply the changes, restart the ntp daemon. Before changing the address of the local clock of an NTP server, confirm that the change does not affect other NTP clients. - Change the stratum value of an NTP server.
Change the stratum value of the NTP server referenced by the XSCF to 1. The NTP server with the stratum value of 1 is the most significant clock source and has no refid. Therefore, its address is never the same as the address of the local clock of the XSCF itself. Before changing the stratum value of an NTP server, confirm that the change does not affect other NTP clients. - Change the address of the local clock of the XSCF itself.
Use the setntp -m localaddr=value command to change the address of the local clock of the XSCF itself. For value, specify the least significant byte of the local clock address "127.127.1.x." You can specify a numeric value from 0 to 3. If the value specified for value is between 1 and 3, the address of the NTP server that refers to the local clock no longer matches the address of the XSCF internal local clock. As a result, even a server that refers to the local clock can be configured as an NTP server for the XSCF.
< Previous Page | Next Page >