Chapter 5: Simple Network Time Protocol (SNTP) Commands
76
SET DATE TIME
Syntax
set date=dd-mm-yyyy time=hh:mm:ss
Parameter
date Specifies the date for the switch in day-month-year
format.
time Specifies the hour, minute, and second for the switch’s
time in 24-hour format.
Description
This command sets the date and time on the switch. You can use this
command to set the switch’s date and time if you are not using an SNTP
server. To view the current time, refer to SHOW TIME on page 79.
Note
The system’s date and time, when set with this command, are lost
whenever you power cycle or reset the switch. To avoid having to
reenter the date and time, you can configure the SNTP client
software so that the switch automatically obtains this information
from an SNTP server.
Example
The following command sets the switch’s date to March 11, 2004 and the
time to 4:34 pm and 52 seconds:
set date=11-03-2004 time=16:34:52
The following command sets just the date to April 2, 2004:
set date=02-04-2004