No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
info-center timestamp

info-center timestamp

Function

The info-center timestamp command sets the timestamp format of logs, traps, and debugging messages.

The undo info-center timestamp command restores the default timestamp format of logs, traps, and debugging messages.

By default, the timestamp format of logs, traps, and debugging messages is date.

Format

info-center timestamp debugging { { date | short-date | format-date } [ precision-time { tenth-second | second } ] | boot | none }

info-center timestamp log { { date | short-date | format-date } [ precision-time { tenth-second | millisecond } ] | boot | none }

info-center timestamp trap { { date | short-date | format-date } [ precision-time { tenth-second | millisecond } ] | boot | none }

undo info-center timestamp { debugging | trap | log }

Parameters

Parameter Description Value
debugging Indicates debugging messages. -
log Indicates logs. -
trap Indicates traps. -
boot Indicates that the timestamp is expressed in the format of relative time, a period of time since the start of the system. The format is xxxxxx.yyyyyy. xxxxxx is the higher order 32 bits of the milliseconds elapsed since the start of the system; yyyyyy is the lower order 32 bits of the milliseconds elapsed since the start of the system. -
date Specifies the current date and time. It is expressed in mm dd yyyy hh:mm:ss format. -
none Indicates that the output information does not contain the timestamp. -
short-date Indicates the short date. This timestamp differs from date is that the year is not displayed. -
format-date Indicates that the timestamp is expressed in YYYY-MM-DD hh:mm:ss format. -
precision-time Specifies the precision. -
second Indicates that the precision is accurate to seconds. -
tenth-second Indicates that the precision is accurate to 0.1 second. -
millisecond Indicates that the precision is accurate to milliseconds. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The info-center timestamp command sets the timestamp format of logs, traps, and debugging messages.

The following describes the timestamp in date format.

Table 4-35  Description of fields of the timestamp in date format

Field

Description

Value

mm

Month

The value can be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec.

dd

Date

1-31. If the date is smaller than 10, add a space in front of the date, For example, " 7".

yyyy

Year

4 digits

hh:mm:ss

Local time

hh ranges from 00 to 23, and mm or ss ranges from 00 to 59.

When the precision of the timestamp is accurate to 0.1 second or milliseconds, the system adds identifies to the logs generated at the same time based on the sequence.

Prerequisites

The information center has been enabled by using the info-center enable command.

Example

# Set the timestamp format of traps to boot.

<Huawei> system-view
[Huawei] info-center timestamp trap boot

# Set the timestamp precision of logs, traps, and debugging messages.

<Huawei> system-view
[Huawei] info-center timestamp log date precision-time millisecond
[Huawei] info-center timestamp debugging date precision-time tenth-second
[Huawei] info-center timestamp trap date precision-time millisecond
Related Topics
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 127511

Downloads: 98

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next