Appearance
config ntp
View or define Network Time Protocol (NTP) servers on the manager nodes.
config ntp add [ <ipaddress> | <hostname> ]
config ntp default
config ntp delete [ <ipaddress> | <hostname> ]
config ntp disable
config ntp enable
config ntp list
config ntp status
- add
Add an NTP server for use by both manager nodes for time synchronization. Then restart NTP services. Use the hostname or IP address to identify the server. For example:
YBCLI (PRIMARY)> config ntp add 10.21.41.139 Successfully added 10.21.41.139 as NTP server. Restarting NTP services. Standby...Done Remote manager node ------------------- Successfully added 10.21.41.139 as NTP server. Restarting NTP services. Standby...Done
- default
Set the NTP servers back to system defaults. For example:
YBCLI(14689) (PRIMARY - yb00-mgr0)> config ntp default This will reset the NTP configuration back to default. Continue (yes/no)? yes NTP configuration reset to default. Remote manager node ------------------- This will reset the NTP configuration back to default. NTP configuration reset to default.
- delete
Delete an NTP server from both manager nodes. Then restart NTP services. Use the hostname or IP address to identify the server. For example:
YBCLI (PRIMARY)> config ntp delete 10.21.41.139 Removed 10.21.41.139 from NTP configuration. Restarting NTP services. Standby...Done Remote manager node ------------------- Removed 10.21.41.139 from NTP configuration. Restarting NTP services. Standby...Done
- disable
Disable use of NTP time synchronization on both manager nodes.
YBCLI (PRIMARY)> config ntp disable Disabled NTP on this manager node Remote manager node ------------------- Disabled NTP on this manager node
- enable
Enable use of NTP time synchronization.
YBCLI (PRIMARY)> config ntp enable Enabled NTP on this manager node Remote manager node ------------------- Enabled NTP on this manager node
- list
List the current NTP servers being used by both manager nodes. For example:
YBCLI (PRIMARY)> config ntp list Current NTP servers configured: Server: 1 -> 0.rhel.pool.ntp.org Server: 2 -> 1.rhel.pool.ntp.org Server: 3 -> 2.rhel.pool.ntp.org Server: 4 -> 3.rhel.pool.ntp.org Total: 5 Remote manager node ------------------- Current NTP servers configured: Server: 1 -> 0.rhel.pool.ntp.org Server: 2 -> 1.rhel.pool.ntp.org Server: 3 -> 2.rhel.pool.ntp.org Server: 4 -> 3.rhel.pool.ntp.org Total: 5
- status
Check the status of the NTP servers on the manager nodes. For example:
YBCLI (PRIMARY)> config ntp status NTP service is enabled Remote manager node ------------------- NTP service is enabled
Parent topic:config