yy
is the year; valid values are 00 through 99. (Values greater than 69 are interpreted as 1970 through
1999; values less than 70 are interpreted as 2000-2069.)
switch:admin>
date
Fri Dec 30 17:01:48 UTC 2016
switch:admin>
date "0109142417"
Mon Jan 9 14:24:00 UTC 2017
Setting the time zone
You need to only set the time zone once on each switch because the value is written to nonvolatile
memory.
The following procedure sets the current time zone to Central Standard Time using the
tsTimeZone
command:
Procedure
1.
Log in to the switch using the admin account. The default password is
password
.
2.
Use
tsTimeZone
to set the time zone by Country/City or by time zone ID, such as PST. The following
example shows how to change the time zone to US/Central:
switch:admin>
tstimezone
Time Zone : US/Pacific
switch:admin>
tstimezone US/Central
switch:admin> tstimezone
Time Zone : US/Central
3. [Optional]
Use
tstimezone --interactive
to select your time zone through an interactive menu.
Synchronizing local time using NTP
To synchronize the local time using NTP:
Procedure
1.
Log in to the switch using the admin account. The default password is
password
.
2.
Enter the
tsclockserver
command:
switch:admin> tsclockserver
"<ntp1;ntp2>”
The value
ntp1
is the IP address or DNS name of the first NTP server, which the switch must be able
to access. The value
ntp2
is the name of the second NTP server and is optional. The entire operand
"<ntp1;ntp2>”
is optional; by default, this value is
LOCL
, which uses the local clock of the principal
or primary switch as the clock server.
switch:admin>
tsclockserver
LOCLx
switch:admin>
tsclockserver "132.163.135.131"
switch:admin>
tsclockserver
132.163.135.131
18
Setting the time zone