Clock Commands
OL-32830-01 Command Line Interface Reference Guide
User Guidelines
After boot the system clock is set to the time of the image creation.
Example
The following example sets the system time to 13:32:00 on March 7th, 2005.
switchxxxxxx#
clock set
9.4
clock source
To configure an external time source for the system clock, use the clock source
command in Global Configuration mode. To disable the external time source, use
the no form of this command.
Syntax
clock source [sntp | browser]
no clock source
Parameters
•
sntp—(Optional) Specifies that an SNTP server is the external clock source.
•
browser—(Optional) Specifies that if the system clock is not already set
(either manually or by SNTP) and a user login to the device using a WEB
browser (either via HTTP or HTTPS), the system clock will be set according
to the browser's time information.
Default Configuration
There is no external clock source.
Command Mode
Global Configuration mode
User Guidelines
After boot the system clock is set to the time of the image creation.
If no parameter is specified, SNTP will be configured as the time source.
13:32:00 7 Mar 2005
9
230