16-19
%May 21 14:33:19:425 2007 Sysname SHELL/4/LOGIN: VTY login from 192.168.1.44
[Y/N]:
After the above information is displayed, you can input
Y
or
N
to complete your input before the output
of the log information.
info-center timestamp
Syntax
info-center timestamp
{
debugging
|
log
|
trap
} {
boot
|
date
|
none
}
undo info-center timestamp
{
debugging
|
log
|
trap
}
View
System view
Default Level
2: System level
Parameters
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. For example, 0.21990989 equals Jun 25 14:09:26:881 2007.
date
: The current system date and time, in the format of “Mmm dd hh:mm:ss:sss yyyy”.
z
Mmm: The abbreviations of the months in English, which could be Jan, Feb, Mar, Apr, May, Jun,
Jul, Aug, Sep, Oct, Nov, or Dec.
z
dd: The date, starting with a space if less than 10, for example “ 7”.
z
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.
z
yyyy: Represents the year.
none
: Indicates no time information is provided.
Description
Use the
info-center timestamp
command to configure the timestamp format.
Use the
undo info-center timestamp
command to restore the default.
By default, the timestamp format of log, trap and debugging information is
date
.
Examples
# Configure the timestamp format for log information as
boot
.
<Sysname> system-view
[Sysname] info-center timestamp log boot
At this time, if you execute the
shutdown
command on GigabitEthernet1/0/1 that is in the UP state, the
log information generated is as follows:
%0.1382605158 Sysname IFNET/4/LINK UPDOWN:
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...