System set clock – Allied Telesis AT-S97 User Manual
Page 52
Chapter 4: General System Commands
52
SYSTEM SET CLOCK
Syntax
system set clock date=
mm
/
dd
/
yyyy
time=
hh:mm:ss
Parameters
date
Specifies the current date in month/day/year format.
time
Specifies the current time in 24-hour, hour:minute:second
format. You must include all three parts of the time.
Privilege Levels
Administrator and read-write.
Description
This command manually sets the management module’s date and time.
This information is added to events messages and SNMP traps. The
module is able to maintain the date and time even when it is reset or
power cycled because it has an onboard battery. To view the current date
and time, use the SYSTEM SHOW CLOCK command. For instructions,
refer to “SYSTEM SHOW CLOCK” on page 58.
To set the date and time using an Network Time Protocol (NTP) server,
refer to Chapter 6, “Network Time Protocol Commands” on page 101.
Note
The date and time from an NTP server overwrites a manually set
date and time.
You do not have to enter the CONFIG SAVE command to save the new
date and time.
Examples
This command sets the date to April 11, 2007 and time to 4:34 pm:
system set clock date=4/11/2007 time=16:34:0
This command sets the time to 7:08 am and 25 seconds:
system set clock time=7:8:25