Command Line Interface
4-50
4
Time Commands
The system clock can be dynamically set by polling a set of specified time servers
(NTP or SNTP).
sntp client
This command enables SNTP client requests for time synchronization from NTP or
SNTP time servers specified with the sntp servers command. Use the no form to
disable SNTP client requests.
Syntax
[no] sntp client
Default Setting
Disabled
Command Mode
Global Configuration
Command Usage
The time acquired from time servers is used to record accurate dates and
times for log events. Without SNTP, the switch only records the time starting
from the factory default set at the last bootup (i.e., 00:00:00, Jan. 1, 2001).
This command enables client time requests to time servers specified via the
sntp servers command. It issues time synchronization requests based on the
interval set via the sntp poll command.
The SNTP time query method is set to client mode when the first sntp client
command is issued.
Table4-21. Time Commands
Command Function Mode Page
sntp client Accepts time from specified time servers GC 4-50
sntp server Specifies one or more time servers GC 4-51
sntp poll Sets the interval at which the client polls for time GC 4-52
show sntp Shows current SNTP configuration settings NE, PE 4-52
clock timezone Sets the time zone for the switch’s internal clock GC 4-53
calendar set Sets the system date and time PE 4-53
show calendar Displays the current date and time setting NE, PE 4-54