Switch Command Line Interface
Groups and Commands
TimeManagement
time
Configure the time on the device.
Syntax:
time -S ipaddr | -T hhmmss[mmddyyyy]
Options:
-S ipaddr
Sets the NTP Server IP address.
-T hhmmss[mmddyyyy]
Set the local clock time hour, minutes, and seconds along with the month, day, and year.
Sample Output:
-> time -S 172.26.0.254
Configured the NTP server ip address successfully
13:53:02
10/06/2006
Configured to use NTP server IP address: 172.26.0.254
NOTE:
timeZoneConf
Display/configure the time zone setting.
Syntax:
timeZoneConf [offset]
Options:
offset
The time offset in relation to Greenwich Mean Time (GMT).
Sample Output:
-> timeZoneConf -5
Timezone offset successfully configured
Current time zone offset is: -5
1-122
Time can be configured locally (using a local clock) or set to be
updated by an SNTP server. Please note that if you set the time
locally, the unit will unconfigure the NTP server IP address if set. If
no options are passed in, the current system time will be printed out.
D000103-000 E