Commands For Sntp

13.1 Commands for SNTP

13.1.1 clock timezone

Command: clock timezone <WORD> {add | subtract} <0-23> [<0-59>] no clock timezone WORD
Function: This command configures time zone in Global Mode. The no command deletes the configured time zone.
Parameters:

  • <WORD>: time zone name with a length limit of 16 characters.
  • add | subtract: specifies the action desired.
  • <0-23>: hour value.
  • <0-59>: minute value.

Command mode: Global Mode
Default: None.
Usage guide: The time zone name is invalid if blank. The hour and minute value must be within the specified range.
Example: Configure the action of adding the eighth time zone globally.

active500EM(config)#clock timezone aaa add 8

 

13.1.2 debug sntp

Command: debug sntp {adjust | packet | select }
no debug sntp {adjust | packet | select}
Function: Displays or disables SNTP debug information.
Parameters:

  • adjust: SNTP clock adjustment information.
  • packet: SNTP packets.
  • select: SNTP clock selection.

Command mode: Admin Mode
Default: None.
Usage guide: Displays or disables SNTP debug information.
Example: Display debugging information for SNTP packet:

active500EM#debug sntp packet

 

13.1.3 sntp polltime

Command: sntp polltime <interval>
no sntp polltime
Function: Sets the interval for SNTP clients to send requests to NTP/SNTP. The no command cancels the polltime and restores to default.
Parameters:

  • <interval>: interval value. The valid range is from 16 to 16284.

Command mode: Global Mode
Default: 64 seconds.
Usage guide: Sets the interval for SNTP clients to send requests to NTP/SNTP.
Example: Set the client to send a request to the server every 128 seconds.

active500EM#config
active500EM(config)#sntp polltime128

 

13.1.4 sntp server

Command: sntp server {<ip-address> | <ipv6-address>} [source {vlan <vlan no> | loopback <loopback no>}] [version <version-no>] no sntp server {<ip-address> | <ipv6-address>} [source {vlan <vlan no> | loopback <loopback no>}] [version <version-no>]
Function: Enables the specified time server as a clock source. The no command deletes the specified time server.
Parameters:

  • <ip-address>: IPv4 address of time server.
  • <ipv6-address>: IPv6 address of time server.
  • source: interface of the source address.
  • vlan: selects the VLAN for configuration.
  • <vlan no>: VLAN number. The valid range is from 1 to 4094.
  • loopback: selects the loopback interface for configuration.
  • <loopback no>: loopback identifier. The valid range is from 1 to 1024.
  • version: selects the server version for configuration.
  • <version-no>: version number. The valid range is from 1 to 4. The default is 4.

Command mode: Global Mode
Default: Do not configure the time server.
Usage guide: Enables the specified time server as a clock source.
Example: Configure the time server address as 1.1.1.1. Specify the interface of the source address as vlan1.

active500EM(config)#sntp server 1.1.1.1 source vlan 1

Delete the time server that the address is 1.1.1.1 and the interface of the specified source address is vlan1.

active500EM(config)#no sntp server 1.1.1.1 source vlan 1

 

13.1.5 show sntp

Command: show sntp
Function: Displays the current SNTP client configuration and server status.
Parameters: None.
Command mode: Admin Mode and Configuration Mode
Default : None.
Usage guide: Displays the current SNTP client configuration and server status.
Example: Display the current SNTP configuration:

active500EM#show sntp
server address                          version  last receive
2.1.0.2 	                          1  	   6

 


Return to Controller Wired CLI Table of Contents