Time Commands wstk-titlewstk-title wpk-titlewpk-title#

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

time info

Get information about the time sync service.

time client

Set the time sync service to client mode.

time server

Set the time sync service to server mode.

time disable

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 info

Command 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 packets

time 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: Client

time server#

Sets the time sync service to server mode.

Command Line Syntax

$ time server

Command Line Example

$ time server
Time service switched to mode: Server

time disable#

Disable the time sync service.

Command Line Syntax

$ time disable

Command Line Example

$ time disable
Time service switched to mode: disable