Time Commands
23-35
23
Command Mode
Global Configuration
Example
show logging sendmail
This command displays the settings for the SMTP event handler.
Command Mode
Normal Exec, Privileged Exec
Example
Time Commands
The system clock can be dynamically set by polling a set of specified time servers
(NTP or SNTP). Maintaining an accurate time on the switch enables the system log
to record meaningful dates and times for event entries. If the clock is not set, the
switch will only record the time from the factory default set at the last bootup.
Console(config)#logging sendmail
Console(config)#
Console#show logging sendmail
SMTP servers
-----------------------------------------------
192.168.1.19
SMTP minimum severity level: 7
SMTP destination email addresses
-----------------------------------------------
ted@this-company.com
SMTP source email address: bill@this-company.com
SMTP status: Enabled
Console#
Table 23-13 Time Commands
Command Function Mode Page
sntp client Accepts time from specified time servers GC 23-36
sntp server Specifies one or more time servers GC 23-37
sntp poll Sets the interval at which the client polls for time GC 23-37
sntp update-time Sends a request to immediately update the time GC 23-38
show sntp Shows current SNTP configuration settings NE, PE 23-38
clock timezone Sets the time zone for the switch’s internal clock GC 23-39
clock timezone-predefined Sets the time zone for the switch’s internal clock using
predefined time zone configurations
GC 23-39