Synchronize SGM Time (asg_ntp_sync_config)
Use asg_ntp_sync_config to synchronize the time for all SGMs and the CMM with an NTP server.
Syntax
> asg_ntp_sync_config set primary|secondary <ip>|<hostname> [-v <version>] [-r <timeout>]
> asg_ntp_sync_config disable|enable|delete|show
> asg_ntp_sync_config -h
Parameter
|
Description
|
set
|
Configure an NTP server
|
primary
|
The system uses this NTP server by default
|
secondary
|
The system uses this if the primary NTP server is not available
|
NTP Server < ip>|< hostname>
|
NTP server IP address or host name
|
-v < version>
|
Server version of the NTP Service (default = NTPv4)
|
timeout
|
Timeout in seconds between refreshes (default = 300 seconds)
|
show
|
Show NTP Server configuration
|
disable
|
Disable NTP service
|
enable
|
Enable NTP service
|
delete
|
Delete primary or secondary NTP Service
|
-h
|
Show syntax and help information
|
Notes:
- This command runs
ntpdate -u on each SGM and the CMM to synchronize to the local time, - If you define a refresh time that is less than the default (300 seconds), refresh occurs every 300 seconds.
- To allow time synchronization for all SGMs, you must disable the property for the service:
- In GuiDBEdit, search for the service.
- Go to the property.
- Change the property to .
- Install the policy.
Validation
- Make sure that the time is the same on all SGMs:
> show time
- Run
tcpdump on port 123/UDP for the applicable interface to make sure that all SGMs start NTP connections.
|
|