Switch CLI Reference Guide

Simple Network Time Protocol (SNTP) Commands

set sntp client
Command Objective

This command sets the listening port for SNTP client which refers to a port on a server that is waiting for a client connection. The value ranges between 1025 and 65535.

The no form of this command deletes the listening port for SNTP client and sets the default value.

Syntax

set sntp client {enabled | disabled}

Parameter Description
  • enabled - Enables SNTP client module and sends a request to the host for time synchronization.

  • disabled - Disables SNTP client module and no request is sent to the host for time synchronization.

Mode SNTP Configuration Mode
set sntp client port
Command Objective

This command transmits or receives LLDP frames from the server to the LLDP module.

Syntax

set sntp client port <portno(1-65535)>

no sntp client port

Mode SNTP Configuration Mode
set sntp time-zone
Command Objective

This command sets the system time zone with respect to UTC.

The no form of command resets the system time zone to GMT.

Syntax

set sntp client time-zone <UTC-offset value as (+HH:MM /- HH:MM)(+00:00 to +14:00)/ (-00:00 to -12:00)> Eg: +05:30

no sntp client time-zone

Parameter Description
  • +/- - Sets the client time zone as after or before UTC. Plus indicates forward time zone and minus indicates backward time zone.

  • UTC-offset value as - Sets the UTC offset value in hours

    • +00:00 to +14:00

    • -00:00 to -12:00

Mode SNTP Configuration Mode
set sntp time-zone
Command Objective

This command enables the DST (Daylight Saving Time). DST is a system of setting clocks ahead so that both sunrise and sunset occur at a later hour. The effect is additional daylight in the evening. Many countries observe DST, although most have their own rules and regulations for when it begins and ends. The dates of DST may change from year to year.

The no form of this command disables the Daylight Saving Time.

Syntax

set sntp client clock-summer-time <week-day-month,hh:mm>

<week-day-month,hh:mm> Eg: set sntp client clock-summer- time First-Sun-Mar,05:10 Second-Sun-Nov,06:10

no sntp client clock summer-time

Parameter Description
  • week-day-month - The list is given below;

    • week - First, Second, Third, Fourth or Last week of month.

    • day - Sunday, Monday, Tuesday, Wednesday, Thursday, Friday or Saturday.

    • month - /January, February, March, April, May, June, July, August, September, October, November or December.

    • hh:mm - Time in hours and minutes

Mode SNTP Configuration Mode
set sntp unicast-server
Command Objective

This command enables SNTP server for time synching on the Switch.

The no form of this command disables the SNTP server configuration.

Syntax

set sntp unicast-server {ipv4 <ucast_addr> domain-name <string(64)>}[port<integer(1-65535)>]

Parameter Description
  • Ucast_Addr - IP address of the SNTP server

  • String - Domain name

  • Integer - Port number

Mode SNTP Configuration Mode
show sntp clock
Command Objective

This command displays the current time.

Syntax

show sntp clock

Mode User / Previliged EXEC Mode
show sntp status
Command Objective

This command displays SNTP status.

Syntax

show sntp status

Mode User / Previliged EXEC Mode

Was This Article Helpful?

Help us to improve our support portal

Techdocs Article Helpful form

  • Hidden
  • Hidden

Techdocs Article NOT Helpful form

  • Still can't find what you're looking for? Try our knowledge base or ask our community for more help.
  • Hidden
  • Hidden