22 clock set datetime, 23 clock set timezone – CANOGA PERKINS 9175 Command Reference User Manual

Page 685

Advertising
background image

CanogaOS Command Reference

40-14

key2 public 0 1024


Related Commands

show rsa key

40.22 clock set datetime

To manually set the system software clock, use the formats of the clock set command in global

configuration mode.


Command Syntax

clock set hh:mm:ss month day year

hh:mm:ss

Current time in hours (24-hour format), minutes, and seconds.

month

Current month (by number).

day

Current day (by date) in the month.

year

Current year (no abbreviation). From 2000 to 2037.


Command Mode

Global configuration


Usage

Generally, if the system is synchronized by a valid outside timing mechanism, such as a Network Time

Protocol (NTP), or if you have a switch with hardware clock, you need not set the software clock. Use

this command if no other time sources are available. The time specified in this command is assumed to

be in the timezone specified by the configuration of the clock timezone command.


Examples

The following example manually sets the software clock to 7:29 p.m. on May 13, 2003:

Switch(config)# clock set 19:29:00 5 13 2003


Related Commands

show clock
clock set timezone

40.23 clock set timezone

To set the time zone for display purposes, use the clock set timezone command in global configuration

mode. To set the time to Coordinated Universal Time (UTC), use the no form of this command.


Command Syntax

clock set timezone zone {add | minus} hours-offset [minutes-offset] [seconds-offset]

zone

Name of the time zone to be displayed when standard time is in effect. The

Advertising