Manually setting the date and time – Allied Telesis AT-8100 Series User Manual
Page 129
AT-8100 Switch Command Line User’s Guide
129
Manually Setting the Date and Time
To manually set the date and time on the switch, use the CLOCK SET
command in the Privileged Exec mode. Here is the format of the
command:
clock set
hh:mm:ss dd mmm yyyy
Here are the variables:
hh:mm:ss
: Use this variable to specify the hour, minute, and second
for the switch’s time in 24-hour format.
dd
: Use this variable to specify the day of the month.
mmm
: Use this variable to specify the month. The month is
specified by its first three letters. For example, June is Jun. The
first letter must be uppercase and the second and third letters
lowercase.
yyyy
: Use this variable to specify the year. The year must be
specified in four digits (for example, 2011 or 2012).
The command has to include both the date and time. This example sets
the time to 4:11 pm and the date to January 4, 2011:
awplus> enable
awplus# clock set 16:11:0 4 Jan 2011
To display the date and time, use the SHOW CLOCK command in the
User Exec or Privileged Exec mode.
awplus# show clock
For reference information, refer to “CLOCK SET” on page 152 and
“SHOW CLOCK” on page 169.
Note
The date and time, when set manually, are not retained by the
switch when it is reset or power cycled.