CloudEngine S5700 and S6700 V600R022C00 Configuration Guide - System Management

System Time Configuration

System Time Configuration

Overview of System Time

Definition

System time refers to the current time on a device and is an important parameter for device running.

Purpose

System time recorded in device logs and alarms enables administrators to identify when specific events occurred. In addition, a correctly configured system time ensures the accuracy and consistency of device collaboration when multiple devices interwork on a network.

Configuration Precautions for System Time Management

Licensing Requirements

System time is not under license control.

Hardware Requirements

Table 6-1 Hardware requirements

Series

Models

S5732-H-V2 series

S5732-H24S4X6QZ-TV2/S5732-H24S4X6QZ-V2/S5732-H24UM4Y2CZ-TV2/S5732-H24UM4Y2CZ-V2/S5732-H44S4X6QZ-TV2/S5732-H44S4X6QZ-V2/S5732-H48UM4Y2CZ-TV2/S5732-H48UM4Y2CZ-V2

S6730-H-V2 series

S6730-H24X6C-TV2/S6730-H24X6C-V2/S6730-H28X6CZ-TV2/S6730-H28X6CZ-V2/S6730-H48X6C-TV2/S6730-H48X6C-V2/S6730-H48X6CZ-TV2/S6730-H48X6CZ-V2/S6730-H48Y6C-TV2/S6730-H48Y6C-V2

Feature Requirements

Table 6-2 Feature requirements

Feature

Feature Requirements

Series

Models

Date and time management

The configured time cannot be earlier than the kernel compilation time.

S5732-H-V2 series

S6730-H-V2 series

S5732-H24S4X6QZ-TV2/S5732-H24S4X6QZ-V2/S5732-H24UM4Y2CZ-TV2/S5732-H24UM4Y2CZ-V2/S5732-H44S4X6QZ-TV2/S5732-H44S4X6QZ-V2/S5732-H48UM4Y2CZ-TV2/S5732-H48UM4Y2CZ-V2

S6730-H24X6C-TV2/S6730-H24X6C-V2/S6730-H28X6CZ-TV2/S6730-H28X6CZ-V2/S6730-H48X6C-TV2/S6730-H48X6C-V2/S6730-H48X6CZ-TV2/S6730-H48X6CZ-V2/S6730-H48Y6C-TV2/S6730-H48Y6C-V2

Configuring the System Time

Context

System time is the current time that a device keeps track of and is recorded in timestamps of sent packets. Users in different regions can configure the system clock according to the following conventions:

System time = Coordinated Universal Time (UTC) + Time zone offset + Daylight saving time (DST) offset

The system time needs to be set correctly so that a device can coordinate properly with other devices. However, on networks that contain multiple devices, setting or adjusting the system time manually involves a heavy workload and may compromise the clock accuracy. To ensure that all devices enabled with clock synchronization can obtain the same time, you can configure the Network Time Protocol (NTP) feature. This allows devices to synchronize their clocks so that they can provide diverse applications based on consistent time.

Procedure

  1. Configure the time zone.

    clock timezone time-zone-name { add | minus } offset

    add: adds the specified time zone offset on the basis of the UTC time. The default system time (UTC time) plus the time zone offset (offset) is the time in the time zone specified by time-zone-name.

    minus: subtracts the time zone offset (offset) from the UTC time. The remainder obtained by subtracting the time zone offset (offset) from the default system time (UTC time) is the time in the time zone specified by time-zone-name.

    After a time zone is configured, the device adds timestamps to the local log in the format of original system time ± offset. An example is Apr 27 2020 22:36:09+08:00.

  2. Configure the current time.

    clock datetime [ utc ] time date

    The time format is HH:MM:SS, and the date format is YYYY-MM-DD.

    If the configuration contains the keyword utc, the configured time is the UTC time. If the configuration does not contain the keyword utc and a time zone has been configured, the configured time is the system time.

    If the configuration does not contain the keyword utc and no time zone has been configured, the system saves the configured time (UTC time) based on time zone 0. In this case, the configured time is the system time. If a time zone is configured later, the current time plus the time zone offset is the system time.

  3. (Optional) Configure the DST.

    clock daylight-saving-time dstname one-year start-time start-date end-time end-date offset

    or

    clock daylight-saving-time dstname repeating start-time { { first | second | third | fourth | last } startweekday startmonth end-time { first | second | third | fourth | last } endweekday endmonth } offset [ startyear [ endyear ] ]

    During configuration of periodic DST, the start time and end time can be configured in four modes: date+date, week+week, date+week, and week+date. For configuration details, see the clock daylight-saving-time command.

    If the current time is the DST time, you can set a time zone using the clock timezone time-zone-name { add | minus } offset command. However, the time zone name displayed in the display clock command output remains as the DST time zone name, which can be displayed as the configured time zone name only after the DST ends.

  4. (Optional) Set the date format of the device.

    clock date-format { YYYY-MM-DD | MM-DD-YYYY }

    By default, the date format of a device is YYYY-MM-DD.

    YYYY-MM-DD indicates year-month-day, and MM-DD-YYYY indicates month-day-year.

Verifying the Configuration

Run the display clock [ utc ] command to check the configured system clock.

Follow-up Procedure

To automatically synchronize time from the NTP server, see "NTP Configuration" in CLI Configuration Guide > System Management Configuration.

Translation
Favorite
Download
Update Date:2024-04-22
Document ID:EDOC1100278266
Views:114445
Downloads:508
Average rating:0.0Points

Digital Signature File

digtal sigature tool