Configure the system date and time of switch

58

Run the clock datetime [ utc ] HH:MM:SS YYYY-MM-DD command in the user view to configure the current date and time of a switch.

# Set the current date and time of a switch to 2016-01-01 00:00:00.

clock datetime 0:0:0 2016-01-01
Note:
If the scheduled restart function is configured in the user view using the schedule reboot { at time | delay interval [ force ] } command, and the system time is set to be over 10 minutes later than the scheduled restart time, the scheduled restart function becomes ineffective. For example, if the scheduled restart time is 2016-01-01 00:00:00 and the system time is changed to 2016-01-01 01:00:00, the scheduled restart function becomes ineffective.

Other related questions:
Configure the system time zone for a CE series switch
Run the clock timezone time-zone-name { add | minus } offset command in the user view or system view to configure the local time zone for a switch. By default, the time zone is not configured and a switch uses the default value Time Zone(DefaultZoneName): UTC. For example, if a switch is located in Beijing, China, set the local time zone name to BJ and the time zone to UTC+8. clock timezone BJ add 08:00:00

Manually configuring the system time of the firewall through the CLI
Configure the firewall system time using the CLI as follows: 1. Run the clock datetime HH:MM:SS YYYY-MM-DD command to set the current time. 2. Run the clock timezone time-zone-name { add | minus } offset command to set the time zone. add is used to add the time-zone offset based on the Greenwich Mean Time (UTC). That is, you can calculate the time zone time identified by time-zone-name by adding the offset based on the default UTC time. minus is used to subtract the specified time-zone offset based on UTC. That is, you can calculate the time zone time identified by time-zone-name by subtracting the offset based on the default UTC time. 3. Optional: Run the clock daylight-saving-time time-zone-name one-year start-time start-date end-time end-date offset or clock daylight-saving-time time-zone-name repeating start-time { { first | second | third | fourth | last } weekday month | start-date } end-time { { first | second | third | fourth | last } weekday month | end-date } offset [ start-year [ end-year ] ] command to set DST. In the configuration of the periodical DST and DST start time and end time, the four configuration modes of date+date, week+week, date+week, and week+date are supported. For the configuration method, see the clock daylight-saving-time command. Note: If the current time is in DST, running the clock timezone time-zone-name { add | minus } offset command to set the time zone name will succeed. However, if you run the display clock command in this case, the time zone name displayed is the DST name. After the DST ends, the time zone name set previously is displayed. 4. Optional: Run the display clock [ utc ] command to view the system clock.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top