1
Basic System Configuration and Debugging
Commands
The configuration of auto power down on Ethernet interfaces is added. For the detailed
configuration, refer to
Basic System Configuration Commands
clock datetime
Syntax
clock datetime HH:MM:SS { YYYY/MM/DD | MM/DD/YYYY }
View
User view
Parameters
HH:MM:SS: Current time, namely, hour:minute:second. HH ranges from 0 to 23, and MM and SS range
from 0 to 59.
YYYY/MM/DD or MM/DD/YYYY: Current date, where YYYY represents year ranging from 2000 to 2099,
MM represents month ranging from 1 to 12, and DD represents day ranging from 1 to 31.
Description
Use the clock datetime command to set the current date and time of the Ethernet switch.
By default, it is 23:55:00 04/01/2000 when the system starts up.
In an implementation where exact absolute time is required, it is necessary to use this command to set
the current date and time of the Ethernet switch.
After the setting, you can use the display clock command to check your configuration.
Examples
# Set the current date and time of the Ethernet switch to 0:0:0 2001/01/01.
<Sysname> clock datetime 0:0:0 2001/01/01
<Sysname> display clock
00:00:04 UTC Mon 01/01/2001
Time Zone : add 00:00:00
port
auto-power-down.
1-1