Set date and time
Use date and time settings for logging events, error detection, and troubleshooting. However, device operation does not depend on the
date and time; a device with incorrect date or time values still functions properly.
You can synchronize the local time of the principal or primary fabric configuration server (FCS) device to that of an external Network Time
Protocol (NTP) server.
1
Log in to the device as
admin
.
2
Enter the date
newdate
command at the command line.
The
newdate
variable specifies the new date and time enclosed in double quotation marks. The operand is optional; if omitted, the
current date and time displays. Date and time are specified as a string in the
mmddhhmmyy
format:
•
mm
: Specifies the month. Valid values are 01–12.
•
dd
: Specifies the date. Valid values are 01–31.
•
hh
: Specifies the hour. Valid values are 00–23.
•
mm
: Specifies the minutes. Valid values are 00–59.
•
yy
: Specifies the year. Valid values are 00–37 and 70–99. Year values from 70 to 99 are interpreted as 1970-1999; year values from
00 to 37 are interpreted as 2000-2037.
device:admin> date
Thu Dec 22 14:05:10 UTC 2016
device:admin> date "1222140616"
Thu Dec 22 14:06:00 UTC 2016
Set time zone
The default time zone is Coordinated Universal Time (UTC). You can only set the time zone once because the value is stored in nonvolatile
memory.
1
Log in as
admin
.
2
Enter the
tsTimeZone --interactive
command and follow the prompts, or enter the
tsTimeZone [houroffset [,
minuteoffset]]
command as follows:
•
For Pacific Standard Time, enter
tsTimeZone -8,0
.
•
For Central Standard Time, enter
tsTimeZone -6,0
.
•
For Eastern Standard Time, enter
tsTimeZone -5,0
.
Table 5.
tsTimeZone
command parameters
Local time
tsTimeZone command parameter—difference from UTC
Atlantic standard
–4,0
Atlantic daylight
–3,0
Eastern standard
–5,0
Eastern daylight
–4,0
Central standard
–6,0
Central daylight
–5,0
Mountain standard
–7,0
30
Initial setup and verification