Parameter
Description
Example
info-center timestamp loghost
Syntax
View
Parameter
Description
debugging: Sets the timestamp format of the debugging information.
log: Sets the timestamp output format of the log information.
trap: Sets the timestamp output format of the trap information.
boot: The time taken to boot up the system, in the format of xxxxxx.yyyyyy, in
which xxxxxx represents the most significant 32 bits of the time taken to boot up
the system (in milliseconds) whereas yyyyyy is the least significant 32 bits.
date: The current system date and time, in the format of "Mmm dd hh:mm:ss:sss
yyyy".
Mmm: The abbreviations of the months in English, which could be Jan, Feb,
■
Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec.
dd: The date, starting with a space if less than 10, for example "7".
■
hh:mm:ss:sss: The local time, with hh ranging from 00 to 23, mm and ss
■
ranging from 00 to 59, and sss ranging from 0 to 999.
yyyy: Represents the year.
■
none: Indicates no time information is provided.
Use the
info-center timestamp
Use the
undo info-center timestamp
By default, the time stamp format for log, trap and debug information is date.
# Configure the time stamp for debug information as boot.
<Sysname> system-view
[Sysname] info-center timestamp debugging boot
info-center timestamp loghost { date | no-year-date | none }
undo info-center timestamp loghost
System view
date: Indicates the current system date and time, the format of which depends on
the log host.
no-year-date: Indicates the current system date and time (year exclusive).
none: Indicates that no time stamp information is provided.
Use the
info-center timestamp loghost
stamp format of the log information sent to the log host.
command to configure the time stamp format.
command to restore the default.
command to configure the time
2443