This section describes how to set the timestamp format of the information.
The timestamp format of the information can be set to meet different time requirements in different places. After the configuration is complete, new information is generated according to the set timestamp format.
In this document, timestamp formats of logs, traps, and debugging information are set.
Only physical systems (PSs) support setting the timestamp format of the Information.
Before setting the timestamp format in the information, ensure that the device is powered on correctly and the self-test is successful.
The system view is displayed.
The following table describes the components of the timestamp in date format.
Field |
Description |
Value |
---|---|---|
yyyy |
Year |
4 digits |
mm |
Month |
Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec |
dd |
Date |
If the date value (such as 7) is smaller than 10, a blank is added before the date. |
hh:mm:ss |
Local time in hh:mm:ss format |
The hour (hh) is expressed in 24-hour system, ranging from 00 to 23. The minute (mm) and second (ss) are values ranging from 00 to 59. |
The configuration is committed.
Run the display logbuffer command to check whether the timestamp format in the log information is configured successfully.