Time Commands 



#




Use the time commands to view status and set client, server, or disabled mode.
For more information about the time synchronization service, see the time synchronization overview.
Command | Description |
|---|---|
Get information about the time sync service. | |
Set the time sync service to client mode. | |
Set the time sync service to server mode. | |
Disable the time sync service. |
time info#
Gets information about the time sync service. The information printed depends on which mode is active.
Command Line Syntax
$ time infoCommand Line Example
$ time info
------ Time Sync Service Status ------
Time service mode : client [3]
Current local time : 61051618150 us
Current time : 2412841592984 us
Server address : 10.7.1.13:4904
Last sync successful : Yes
Last round-trip time : 115 us
Drift per second : 6.19 us/s
Polling interval : 9376 ms
Time since last sync : 7572 ms
Sent : 4 packets
Send errors : 0 packets
Received : 4 packets
Receive errors : 0 packetstime client#
Sets the time sync service to client mode. The server IP address must be the IP address of another adapter where the time sync service is enabled. If no server port is specified, the default port 4904 is used.
Command Line Syntax
$ time client <serverIpAddress> [serverIpPort]Command Line Example
$ time client 192.168.1.10 4904
Client IP address: 192.168.1.10
Client IP port : 4904
Time service switched to mode: Clienttime server#
Sets the time sync service to server mode.
Command Line Syntax
$ time serverCommand Line Example
$ time server
Time service switched to mode: Servertime disable#
Disable the time sync service.
Command Line Syntax
$ time disableCommand Line Example
$ time disable
Time service switched to mode: disable