clock

To set the system clock, use the clock command in the EXEC mode.

clock set [month day hh:min:ss yyyy]

Syntax Description

clock set

The command that sets the system clock.

month

Current month of the year by name. Supports up to three alphabetic characters. For example, Jan for January.

day

Current day (by date) of the month. Value = 0 to 31. Supports up to two numbers.

hh:mm:ss

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

yyyy

Current year (no abbreviation).

Defaults

No default behavior or values.

Command Modes

EXEC

Usage Guidelines

Sets the system clock. You must restart the Cisco CDA server after you reset the clock for the change to take effect. Under normal circumstances (with NTP configured), there is no reason to manually set the system clock using this command.

Warning Changing the system time on a Cisco CDA appliance causes the Cisco CDA application to be unusable in the deployment.

Note To ensure that you have the correct system time set at the time of installation, the setup wizard prompts for an NTP server and tries to sync with it. You must ensure that the configured NTP server during setup is always reachable so that the system time is always kept accurate, especially in rare situations where the BIOS time can get corrupted because of power failure or CMOS battery failure and this in turn can corrupt the ADE-OS system time during reboot.

Examples

/admin# clock set May 5 18:07:20 2010

/admin# show clock

Thu May 5 18:07:26 UTC 2010

/admin#

Related Commands

Command

Description

show clock

Displays the time and date set on the system software clock.