16-20
GigabitEthernet1/0/1: link status is DOWN
# Configure the timestamp format for log information as
date
.
<Sysname> system-view
[Sysname] info-center timestamp log date
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:
%Sep 29 17:19:11:188 2007 Sysname IFNET/4/LINK UPDOWN:
GigabitEthernet1/0/1: link status is DOWN
# Configure the timestamp format for log information as
none
.
<Sysname> system-view
[Sysname] info-center timestamp log none
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:
% Sysname IFNET/4/LINK UPDOWN:
GigabitEthernet1/0/1: link status is DOWN
info-center timestamp loghost
Syntax
info-center timestamp
loghost
{
date
|
no-year-date
|
none
}
undo info-center timestamp
loghost
View
System view
Default Level
2: System level
Parameters
date
: Indicates the current system date and time, in the format of "Mmm dd hh:mm:ss:ms yyyy".
However, the display format 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.
Description
Use the
info-center timestamp loghost
command to configure the time stamp format of the system
information sent to the log host.
Use the
undo
info-center timestamp loghost
command to restore the default.
By default, the time stamp format for system information sent to the log host is
date.
Examples
# Configure that the system information output to the log host does not include the year information.
<Sysname> system-view
[Sysname] info-center timestamp loghost no-year-date
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...