Setting the date and time

About this task

The date and time settings are used 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.

Perform the following steps to set the date and time.

Procedure

  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 is displayed. Date and time are specified as a string in the mmddhhmmyy format:

    • mm: Specifies the month. Valid values are 01 to 12.
    • dd: Specifies the date. Valid values are 01 to 31.
    • hh: Specifies the hour. Valid values are 00 to 23.
    • mm: Specifies the minutes. Valid values are 00 to 59.
    • yy: Specifies the year, valid values are 00 to 37 and 70 to 99. Year values from 70 to 99 are interpreted as 1970 to 1999; year values from 00 to 37 are interpreted as 2000 to 2037.
    device:admin> date
    Thu Dec 22 14:05:10 UTC 2016
    device:admin> date "1222150617"
    Thu Dec 22 15:06:00 UTC 2017