clock set

Configure the calendar time in the form of month, day, year, hour, minute, and second.

Syntax

Command Parameters

<MMddyyyyhhmmss>
Specifies the month, day, year, hours, minutes, and seconds.

Default

None

Command Mode

User EXEC

Usage Guidelines

Configuring time using the clock set command on a switch that also uses Network Time Protocol (NTP) can cause ports to be inactive.

As a best practice, do not configure time using the clock set command. Instead, rely on NTP to synchronize the internal clocks.