本文命令集合:
display actived-alarm highest-level
display channel
display debugging
display info-center
display info-center filter-id
display info-center logfile path
display info-center rate-limit record
display info-center rate-limit threshold
display info-center statistics
display log
display logbuffer
display logfile
display trapbuffer
info-center channel
info-center channel name
info-center enable
info-center filter-id
info-center logbuffer
info-center logbuffer size
info-center logfile path
info-center logfile size
info-center loghost
info-center loghost source
info-center max-logfile-number
info-center rate-limit except
info-center rate-limit global-threshold
info-center rate-limit monitor-period
info-center rate-limit threshold
info-center source channel
info-center statistic-suppress enable
info-center timestamp
info-center trapbuffer
info-center trapbuffer size
reset info-center statistics
reset logbuffer
reset trapbuffer
save logfile
terminal debugging
terminal logging
terminal monitor
terminal trapping
下面详细介绍:
display actived-alarm highest-level
命令功能
display actived-alarm highest-level 用来查看当前活动告警的最高告警级别。
命令格式
display actived-alarm highest-level
复制代码
使用实例
查看当前活动告警的最高告警级别。
<Huawei> display actived-alarm highest-level
Info: The highest level of active alarm is critical.
复制代码
display channel
命令功能
display channel 命令用来查看设备信息中心的信息通道的配置信息。
命令格式
display channel [ channel-number | channel-name ]
复制代码
使用实例
查看 0 号信息通道的配置信息。
<Huawei> display channel 0
channel number: 0, channel name: console
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y warning Y debugging Y debugging
复制代码
查看设备所有信息通道的配置信息。
<Huawei> display channel
channel number: 0, channel name: console
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y warning Y debugging Y debugging
channel number: 1, channel name: monitor
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y warning Y debugging Y debugging
channel number: 2, channel name: loghost
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y informational Y debugging N debugging
channel number: 3, channel name: trapbuffer
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default N informational Y debugging N debugging
channel number: 4, channel name: logbuffer
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y warning N debugging N debugging
channel number: 5, channel name: snmpagent
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default N debugging Y debugging N debugging
channel number: 6, channel name: channel6
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y debugging Y debugging N debugging
channel number: 7, channel name: channel7
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y debugging Y debugging N debugging
channel number: 8, channel name: channel8
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y debugging Y debugging N debugging
channel number: 9, channel name: channel9
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y debugging Y debugging N debugging
复制代码
display debugging
命令功能
display debugging 命令用来查看设备允许发送的调试信息。
命令格式
display debugging [ interface interface-type interface-number ] [ module-name ]
复制代码
使用实例
查看设备允许发送的调试信息。
<Huawei> display debugging
ACL error debugging is on, on the slot 0
复制代码
查看设备 ARP 模块允许发送的调试信息。
<Huawei> display debugging arp
slot[0]:ARP packet debugging is on
复制代码
display info-center
命令功能
display info-center 命令用来查看信息中心输出方向的配置信息。
命令格式
使用实例
查看信息中心输出方向的配置信息。
<Huawei> display info-center
Information Center: enabled
Log host:
10.1.1.1, channel number: 2, channel name: loghost
language: english, host facility: local7
Console:
channel number: 0, channel name: console
Monitor:
channel number: 1, channel name: monitor
SNMP Agent:
channel number: 5, channel name: snmpagent
Log buffer:
enabled
max buffer size: 1024, current buffer size: 512
current messages: 6, channel number: 4, channel name: logbuffer
dropped messages: 0, overwritten messages: 0
Trap buffer:
enabled
max buffer size: 1024, current buffer size: 256
current messages: 0, channel number: 3, channel name: trapbuffer
dropped messages: 0, overwritten messages: 0
Logfile:
channel number: 9, channel name: channel9, language: English
Information timestamp setting:
log - date, trap - date, debug - date
Sent messages = 25, Received messages = 25
复制代码
display info-center filter-id
命令功能
display info-center filter-id 命令用来查看信息中心过滤的信息。
命令格式
display info-center filter-id [ id | bymodule-alias modname alias ]
复制代码
使用实例
查看过滤表中 ID 为 3246215177 的过滤信息。
<Huawei> display info-center filter-id 3246215177
ID : 3246215177
Module : 6OVER4
Alias : DEL_UPTUNN_FAIL
Content : Failed to delete the UPTUNNEL entry when processing ([STRING])
. (Interface=[STRING])
Filtered Number : 0
复制代码
查看过滤表中所有的 ID 信息。
<Huawei> display info-center filter-id
ID : 3246215177
Module : 6OVER4
Alias : DEL_UPTUNN_FAIL
Content : Failed to delete the UPTUNNEL entry when processing ([STRING])
. (Interface=[STRING])
Filtered Number : 0
ID : 3491254537
Module : BGP
Alias : ADD_DELETED_ROUTE
Content : Add the route [STRING] that have other flags besides deleted f
lag [USHORT]
Filtered Number : 0
复制代码
display info-center logfile path
命令功能
display info-center logfile path 命令用来查看日志文件保存的路径。
命令格式
display info-center logfile path
复制代码
使用实例
查看日志文件保存的路径。
<Huawei> display info-center logfile path
Info: Logfile save path is usb0:/logfile
复制代码
display info-center rate-limit record
命令功能
display info-center rate-limit record 命令用来查看信息中心日志速率抑制情况。
命令格式
display info-center rate-limit record
复制代码
使用实例
查看信息中心日志速率抑制情况。
<Huawei> display info-center rate-limit record
Record No.1
InfoID : ff5ad009
Module : AAA
Alias : DESTFAILAUTHEN_ERR_EVENT
Rate limit threshold : 50
Total receive number : 1872
Total drop number : 922
Total send number : 950
Begin timestamp : 2014-11-18 11:41:28
复制代码
display info-center rate-limit threshold
命令功能
display info-center rate-limit threshold 命令用来查看信息中心日志速率抑制的阈值。阈值信息包括系统中跟随版本发布的缺省阈值、特殊 ID 的缺省阈值和系统启动后用户通过命令配置的阈值。
命令格式
display info-center rate-limit threshold
复制代码
使用实例
查看信息中心配置的阈值
<Huawei> display info-center rate-limit threshold
Rate limit threshold(per second):
Module Alias Default Config
default 30 30
IPC IPCFRGTOOLARGE 5 5
IPC IPCDUMPMEM 5 5
IPC ALLOCINDEXERR 5 5
IPC DRVNOTSTABLE 2 2
IPC NOTIMODFALNOREASM 2 2
IPC SYNRPCGETSMFAL 5 5
IPC SYNRPCMODUNREG 5 5
IPC SYNRPCRETNULL 5 5
IPC MODULENOTREG 5 5
IPC SENDRETURN 5 5
IPC GETMTUFAL 5 5
IPC ALLOCIPCFRGFAL 5 5
IPC RECVINVALIDMSG 5 5
IPC RCVNOTIQUEERR 5 5
IPC NOTIFYQUEERR 5 5
IPC SENDFINISHRETURN 5 5
IPC RECVINVALIDMSGTYPE 5 5
SOURCE UMSGGETSRCOBJFAL 1 1
复制代码
display info-center statistics
命令功能
display info-center statistics 命令用来查看信息中心的统计信息。
命令格式
display info-center statistics
复制代码
使用实例
查看信息中心的统计信息。
<Huawei> display info-center statistics
Information statistics data:
ModuleID ModuleName LogNumber DiagLogNumber TrapNumber DebugNumber
c17d0000 6OVER4 0 0 0 0
ff5a0000 AAA 0 0 0 0
c06c0000 ACL 0 0 0 0
c0ef0000 ACL6 0 0 0 0
ff1e0000 ACLE 0 0 0 0
ff8e0000 ADA_BFD 0 0 0 0
c0e70000 ADDR 0 0 0 0
ff740000 ADP-ACL 0 0 0 0
ff730000 ADP-IPSEC 0 0 0 0
ff120000 ADP_MSTP 11 0 0 0
ff2c0000 ADPIPV4 0 7 0 0
ff950000 ADPIPV6MB 0 0 0 0
ff5d0000 AM 0 0 0 0
ffff0000 AMPADP 0 0 0 0
c1a80000 ANTIATTACK 0 0 0 0
c16e0000 ARP 0 0 0 771
c1860000 ARP-PING 0 0 0 0
c19d0000 ARPLINK 0 0 0 0
c0cf0000 ATM 0 0 0 0
复制代码
display log
命令功能
display log 命令用来查看用户的操作记录。
命令格式
display log [ cli | snmp ] index index1 [ index2 ]
display log [ cli | snmp ] { all | name username } [ start-date [ start-time [ – end-date [ end-time ] ] ] ]
复制代码
使用实例
查询日志序号从 10 到 15 的记录。
<Huawei> display log index 10 15
---------------------------------------------------------------------------
No. UserName Domain IP-Address
15 -- 10.138.78.127
Time: 2007-08-25 18:00:43+00:00
Cmd: traffic classifier cy
---------------------------------------------------------------------------
No. UserName Domain IP-Address
14 -- 10.138.78.127
Time: 2007-08-25 17:59:51+00:00
Cmd: undo traffic behavior cy
---------------------------------------------------------------------------
No. UserName Domain IP-Address
13 -- 10.138.78.127
Time: 2007-08-25 17:59:42+00:00
Cmd: undo traffic policy cy
---------------------------------------------------------------------------
No. UserName Domain IP-Address
12 -- 10.138.78.127
Time: 2007-08-25 17:55:26+00:00
Cmd: quit
---------------------------------------------------------------------------
No. UserName Domain IP-Address
11 -- 10.138.78.127
Time: 2007-08-25 17:54:05+00:00
Cmd: undo classifier cy
No. UserName Domain IP-Address
10 -- 10.138.78.127
Time: 2007-08-25 17:54:05+00:00
Cmd: traffic policy cy
---------------------------------------------------------------------------
复制代码
查询所有用户在一个时间段内的日志信息,起始日期为 2007-08-25,起始时间为 17:10:10,结束日期为 2007-08-25,结束时间为 17:20:10。
<Huawei> display log all 2007-08-25 17:10:10 - 2007-08-25 17:20:10
---------------------------------------------------------------------------
No. UserName Domain IP-Address
78 -- 10.138.78.127
Time: 2007-08-25 17:19:59+00:00
Cmd: stp enable 7
---------------------------------------------------------------------------
No. UserName Domain IP-Address
77 -- 10.138.78.127
Time: 2007-08-25 17:19:47+00:00
Cmd: stp pathcost-standard legacy
---------------------------------------------------------------------------
No. UserName Domain IP-Address
76 -- 10.138.78.127
Time: 2007-08-25 17:19:35+00:00
Cmd: stp root primary
---------------------------------------------------------------------------
No. UserName Domain IP-Address
75 -- 10.138.78.127
Time: 2007-08-25 17:19:04+00:00
Cmd: log off
---------------------------------------------------------------------------
No. UserName Domain IP-Address
74 -- 10.138.78.127
Time: 2007-08-25 17:18:54+00:00
Cmd: system-view
---------------------------------------------------------------------------
No. UserName Domain IP-Address
73 -- 10.138.78.127
Time: 2007-08-25 17:18:49+00:00
Cmd: log on
---------------------------------------------------------------------------
No. UserName Domain IP-Address
72 -- 10.138.78.127
Time: 2007-08-25 17:18:17+00:00
Cmd: stp root primary
---------------------------------------------------------------------------
No. UserName Domain IP-Address
71 -- 10.138.78.128
Time: 2007-08-25 17:18:13+00:00
Cmd: info-center snmp channel snmpagent
---------------------------------------------------------------------------
No. UserName Domain IP-Address
70 -- 10.138.78.127
Time: 2007-08-25 17:18:04+00:00
Cmd: stp mode stp
---------------------------------------------------------------------------
No. UserName Domain IP-Address
69 -- 10.138.78.127
Time: 2007-08-25 17:17:58+00:00
Cmd: system-view
---------------------------------------------------------------------------
No. UserName Domain IP-Address
68 -- 10.138.78.127
Time: 2007-08-25 17:17:35+00:00
Cmd: log on
---------------------------------------------------------------------------
No. UserName Domain IP-Address
67 -- 10.138.78.128
Time: 2007-08-25 17:17:31+00:00
Cmd: info-center monitor channel monitor
---------------------------------------------------------------------------
No. UserName Domain IP-Address
66 -- 10.138.78.128
Time: 2007-08-25 17:15:37+00:00
Cmd: info-center loghost source Ethernet 0/0/1
---------------------------------------------------------------------------
No. UserName Domain IP-Address
65 -- 10.138.78.128
Time: 2007-08-25 17:13:04+00:00
Cmd: info-center loghost 10.1.1.2 language English
---------------------------------------------------------------------------
No. UserName Domain IP-Address
64 -- 10.138.78.128
Time: 2007-08-25 17:11:55+00:00
Cmd: system-view
---------------------------------------------------------------------------
No. UserName Domain IP-Address
63 -- 10.138.78.128
Time: 2007-08-25 17:11:53+00:00
Cmd: log on
---------------------------------------------------------------------------
复制代码
display logbuffer
命令功能
display logbuffer 命令用来查看 Log 缓冲区记录的信息。
命令格式
display logbuffer [ size size | module module-name | level severity ] *
display logbuffer summary [ level severity ]
display logbuffer log-offset offset-value size size
复制代码
使用实例
查看 Log 缓冲区的所有日志信息。
<Huawei> display logbuffer
Logging buffer configuration and contents: enabled
Allowed max buffer size: 1024
Actual buffer size: 512
Channel number: 4, Channel name: logbuffer
Dropped messages: 0
Overwritten messages: 167
Current messages: 512
May 10 2012 13:42:59+00:00 huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[0]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)
May 10 2012 13:32:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[1]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 13:22:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[2]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 13:12:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[3]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)
May 10 2012 13:02:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[4]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 12:52:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[5]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 12:42:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[6]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)
May 10 2012 12:32:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[7]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 12:22:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[8]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 12:12:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[9]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)
May 10 2012 12:02:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[10]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 11:52:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[11]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 11:42:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[12]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)
May 10 2012 11:32:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[13]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 11:22:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[14]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 11:12:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[15]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[16]:Interface Ethern
et5/0/2 has turned into UP state.
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[17]:Interface Ethern
et5/0/1 has turned into UP state.
May 10 2012 11:08:37+00:00 Huawei %%01IFNET/4/LINK_STATE(l)[18]:The line proto
col IP on the interface Vlanif20 has entered the UP state.
May 10 2012 11:08:37+00:00 Huawei %%01IFNET/4/IF_STATE(l)[19]:Interface Vlanif
20 has turned into UP state.
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[20]:Interface Ether
net5/0/0 has turned into UP state.
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[21]:Interface Gigab
itEthernet5/0/0 has been available.
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[22]:Interface Ether
net5/0/7 has been available.
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[23]:Interface Ether
net5/0/6 has been available.
复制代码
查看概要的日志缓冲区的日志信息。
<Huawei> display logbuffer summary
EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0 0 0 14 498 0 0 0
复制代码
查看日志缓冲区中偏移前 15 条日志后的 10 条日志,即从第 16 条日志开始的 10 条日志。
<Huawei> display logbuffer log-offset 15 size 10
Logging buffer configuration and contents: enabled
Allowed max buffer size: 1024
Actual buffer size: 512
Channel number: 4, Channel name: logbuffer
Dropped messages: 0
Overwritten messages: 168
Current messages: 512
May 10 2012 11:12:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[0]:Some packets are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface Ethernet5/0/2 has turned into UP state.
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[2]:Interface Ethernet5/0/1 has turned into UP state.
May 10 2012 11:08:37+00:00 Huawei %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP on the interface Vlanif20 has entered the UP state.
May 10 2012 11:08:37+00:00 Huawei %%01IFNET/4/IF_STATE(l)[4]:Interface Vlanif20 has turned into UP state.
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[5]:Interface Ethernet5/0/0 has turned into UP state.
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[6]:Interface GigabitEthernet5/0/0 has been available.
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[7]:Interface Ethernet5/0/7 has been available.
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[8]:Interface Ethernet5/0/6 has been available.
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[9]:Interface Ethernet5/0/5 has been available.
复制代码
display logfile
命令功能
display logfile 命令用来查看日志文件信息。
命令格式
display logfile file-name [ offset | hex ] *
复制代码
使用实例
显示指定路径的日志文件中保存的日志信息。
<Huawei> display logfile usb0:/logfile/log.log
################################################################
# This logfile is generated at slot 0
################################################################
Apr 23 2011 11:06:51+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)
Apr 23 2011 11:06:51+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3487]:Interface Ethern
et0/0/1 has turned into DOWN state.
Apr 23 2011 11:06:53+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)
Apr 23 2011 11:06:53+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3488]:Interface Ethern
et0/0/1 has turned into UP state.
Apr 23 2011 11:06:53+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)
Apr 23 2011 11:06:53+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3489]:Interface Ethern
et0/0/1 has turned into DOWN state.
Apr 23 2011 11:06:55+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)
Apr 23 2011 11:06:55+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3490]:Interface Ethern
et0/0/1 has turned into UP state.
Apr 23 2011 11:06:56+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)
Apr 23 2011 11:06:56+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3491]:Interface Ethern
et0/0/1 has turned into DOWN state.
Apr 23 2011 11:06:58+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)
Apr 23 2011 11:06:58+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3492]:Interface Ethern
et0/0/1 has turned into UP state.
Apr 23 2011 11:06:59+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)
Apr 23 2011 11:06:59+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3493]:Interface Ethern
et0/0/1 has turned into DOWN state.
Apr 23 2011 11:07:00+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)
Apr 23 2011 11:07:00+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3494]:Interface Ethern
et0/0/1 has turned into UP state.
Apr 23 2011 11:07:01+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)
Apr 23 2011 11:07:01+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3495]:Interface Ethern
et0/0/1 has turned into DOWN state.
Apr 23 2011 11:07:03+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)
Apr 23 2011 11:07:03+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3496]:Interface Ethern
et0/0/1 has turned into UP state.
Apr 23 2011 11:07:03+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)
复制代码
以 16 进制形式显示日志文件中保存的日志信息。
<Huawei> display logfile usb0:/logfile/log.log hex
0d 0a 0d 0a 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23
23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23
23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23
23 23 23 23 23 23 23 23 0d 0a 23 20 20 20 20 20 54 68 69 73
20 6c 6f 67 66 69 6c 65 20 69 73 20 67 65 6e 65 72 61 74 65
64 20 61 74 20 73 6c 6f 74 20 30 0d 0a 23 23 23 23 23 23 23
23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23
23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23
23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0d 0a 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
复制代码
display trapbuffer
命令功能
display trapbuffer 命令用来查看信息中心 Trap 缓冲区记录的信息。
命令格式
display trapbuffer [ size value ]
复制代码
使用实例
查看 Trap 缓冲区记录的所有信息。
<Huawei> display trapbuffer
Trapping buffer configuration and contents: enabled
Allowed max buffer size: 1024
Actual buffer size: 256
Channel number: 3, Channel name: trapbuffer
Dropped messages: 0
Overwritten messages: 0
Current messages: 29
#Sep 17 2012 17:09:47+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
#Sep 17 2012 17:06:50+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=0, LldpStatsRemTables
Deletes=1, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
#Sep 14 2012 20:03:40+00:00 huawei ENTITYTRAP/4/CPUUSAGERESUME:OID 1.3.6.1.4.1.2
011.5.25.219.2.14.2 CPU utilization resumed from exceeding the pre-alarm thresho
ld.(Index=9, HwEntityThresholdIndex=0, HwEntityPhysicalIndex=9, PhysicalName="SR
U Board 0", EntityThresholdType=1, EntityThresholdWarning=80, EntityThresholdCur
rent=23, EntityTrapFaultID=144896)
#Sep 14 2012 18:15:27+00:00 huawei LLDP/4/ADDCHGTRAP:OID: 1.3.6.1.4.1.2011.5.25.
134.2.5 Local management address is changed. (LocManIPAddr=1.1.1.9)
#Sep 14 2012 18:13:40+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
#Sep 14 2012 18:13:23+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=0, LldpStatsRemTables
Deletes=1, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
#Sep 14 2012 17:16:05+00:00 huawei ENTITYTRAP/4/CPUUSAGERESUME:OID 1.3.6.1.4.1.2
011.5.25.219.2.14.2 CPU utilization resumed from exceeding the pre-alarm thresho
ld.(Index=9, HwEntityThresholdIndex=0, HwEntityPhysicalIndex=9, PhysicalName="SR
U Board 0", EntityThresholdType=1, EntityThresholdWarning=80, EntityThresholdCur
rent=9, EntityTrapFaultID=144896)
#Sep 14 2012 17:15:37+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
#Sep 14 2012 17:15:37+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
#Sep 14 2012 17:15:34+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
#Sep 14 2012 17:15:33+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
#Sep 14 2012 17:15:33+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)
复制代码
查看 Trap 缓冲区的前 10 条记录信息。
<Huawei> display trapbuffer size 10
Trapping buffer configuration and contents: enabled
Allowed max buffer size: 1024
Actual buffer size: 256
Channel number: 3, Channel name: trapbuffer
Dropped messages: 0
Overwritten messages: 600
Current messages: 256
#May 7 2012 15:12:40+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.
#May 7 2012 15:07:35+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.
#May 7 2012 15:02:19+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.217.150 exc
eeds the speed-limit value 5.
#May 7 2012 14:56:55+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.
#May 7 2012 14:51:40+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.
#May 7 2012 14:46:35+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.
#May 7 2012 14:41:06+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.217.62 exce
eds the speed-limit value 5.
#May 7 2012 14:35:54+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.
#May 7 2012 14:29:54+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.
#May 7 2012 14:24:39+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.
复制代码
info-center channel
命令功能
info-center channel 命令用来配置信息输出时所使用的信息通道。
undo info-center channel 命令用来恢复信息输出时所使用的信息通道为缺省值。
缺省情况下,系统向各个方向输出信息所使用的信息通道如下表所示:
命令格式
info-center { console | logbuffer | logfile | monitor | snmp | trapbuffer } channel { channel-number | channel-name }
undo info-center { console | logbuffer | logfile | monitor | snmp | trapbuffer } channel
复制代码
使用实例
配置向控制台输出信息的通道。
<Huawei> system-view
[Huawei] info-center console channel console
复制代码
配置向 Log 缓冲区输出信息的通道。
<Huawei> system-view
[Huawei] info-center logbuffer channel logbuffer
复制代码
配置向日志文件输出信息的通道。
<Huawei> system-view
[Huawei] info-center logfile channel 9
复制代码
配置向用户终端输出信息的通道。
<Huawei> system-view
[Huawei] info-center monitor channel monitor
复制代码
配置向 SNMP 代理输出信息的通道。
<Huawei> system-view
[Huawei] info-center snmp channel 5
复制代码
配置向 Trap 缓冲区输出信息的通道。
<Huawei> system-view
[Huawei] info-center trapbuffer channel trapbuffer
复制代码
info-center channel name
命令功能
info-center channel name 命令用来为指定编号的信息通道命名。
undo info-center channel 命令用来恢复缺省的通道名。
缺省情况下,各信息通道的名称如下表:
命令格式
info-center channel channel-number name channel-name
undo info-center channel channel-number
复制代码
使用实例
将 0 号通道命名为 execconsole。
<Huawei> system-view
[Huawei] info-center channel 0 name execconsole
复制代码
info-center enable
命令功能
info-center enable 命令用来使能信息中心功能。
undo info-center enable 命令用来去使能信息中心功能。
缺省情况下,信息中心功能处于使能状态。
命令格式
info-center enable
undo info-center enable
复制代码
使用实例
使能信息中心功能。
<Huawei> system-view
[Huawei] info-center enable
Info: Information center is enabled.
复制代码
info-center filter-id
命令功能
info-center filter-id 用来配置对指定的 Log 或 Trap 信息进行过滤的功能。
undo info-center filter-id 用来取消对指定的 Log 或 Trap 信息进行过滤的功能。
缺省情况下,不对任何 Log 或 Trap 信息进行过滤。
命令格式
info-center filter-id { id | bymodule-alias modname alias } * &<1-50>
undo info-center filter-id { all | { id | bymodule-alias modname alias } * &<1-50> }
复制代码
使用实例
配置对 ID 为 1098731530 的日志进行过滤。
<Huawei> system-view
[Huawei] info-center filter-id 1098731530
Info: Succeeded in appending log ID 1098731530.
复制代码
配置通过模块名和助记符进行过滤。
<Huawei> system-view
[Huawei] info-center filter-id bymodule-alias CMD CLKCHGREBOOTCANCELED
Info: Succeeded in appending log ID 3225948163.
复制代码
配置取消所有日志的过滤。
<Huawei> system-view
[Huawei] undo info-center filter-id all
Info: Succeeded in deleting all IDs.
复制代码
info-center logbuffer
命令功能
info-center logbuffer 命令用来使能 Log 信息向 Log 缓冲区的发送功能。
undo info-center logbuffer 命令用来去使能 Log 信息向 Log 缓冲区的发送功能。
缺省情况下,Log 信息向 Log 缓冲区的发送功能处于使能状态。
命令格式
info-center logbuffer
undo info-center logbuffer
复制代码
使用实例
使能 Log 信息向 Log 缓冲区的发送功能
<Huawei> system-view
[Huawei] info-center logbuffer
复制代码
info-center logbuffer size
命令功能
info-center logbuffer size 命令用来配置 Log 缓冲区可容纳 Log 信息的条数。
undo info-center logbuffer size 命令用来恢复 Log 缓冲区可容纳 Log 信息的条数为缺省值。
缺省情况下,Log 缓冲区可容纳日志信息的数目为 512 条。
命令格式
info-center logbuffer size logbuffer-size [ channel { channel-number | channel-name } ]
undo info-center logbuffer size
复制代码
使用实例
配置 Log 缓冲区可容纳 Log 信息的条数的大小为 50。
<Huawei> system-view
[Huawei] info-center logbuffer size 50
复制代码
info-center logfile path
命令功能
info-center logfile path 命令用来配置日志文件保存的路径。
undo info-center logfile path 命令用来取消配置的日志文件保存路径。
命令格式
info-center logfile path path
undo info-center logfile path
复制代码
使用实例
配置日志文件保存到 U 盘中。
<Huawei> system-view
[Huawei] info-center logfile path usb0:/logfile
复制代码
info-center logfile size
命令功能
info-center logfile size 命令用来配置日志文件的大小。
undo info-center logfile size 命令用来恢复日志文件的大小为缺省值。
缺省情况下,日志文件的大小为 8M。
命令格式
info-center logfile size size
undo info-center logfile size
复制代码
使用实例
配置日志文件的大小为 32M。
<Huawei> system-view
[Huawei] info-center logfile size 32
复制代码
info-center loghost
命令功能
info-center loghost 命令用来配置向日志主机输出信息。
undo info-center loghost 命令用来取消向日志主机输出信息。
缺省情况下,不向日志主机输出信息。
命令格式
info-center loghost ip-address [ channel { channel-number | channel-name } | facility local-number | language language-name | transport { udp | tcp ssl-policy policy-name } | { vpn-instance vpn-instance-name | public-net } | local-time | port port-id ] *
info-center loghost ipv6 ipv6-address [ channel { channel-number | channel-name } | facility local-number | language language-name | transport { udp | tcp ssl-policy policy-name } | local-time | port port-id ] *
undo info-center loghost ip-address [ vpn-instance vpn-instance-name ]
undo info-center loghost ipv6 ipv6-address
复制代码
使用实例
配置设备向 IPv4 地址为 10.1.1.1,端口为 6514 的日志主机发送信息,所使用的通道为 channel6。
<Huawei> system-view
[Huawei] info-center loghost 10.1.1.1 port 6514 channel channel6
复制代码
配置设备向 IPv6 地址为 FC00:0:0:3001::1 的日志主机发送信息。
<Huawei> system-view
[Huawei] info-center loghost ipv6 fc00:0:0:3001::1
复制代码
配置设备向 IPv4 地址为 192.168.2.2 和 VPN 实例名为 vpn1 的私网内的主机发送信息。
<Huawei> system-view
[Huawei] info-center loghost 192.168.2.2 vpn-instance vpn1
复制代码
配置设备向 IPv4 地址为 192.168.2.2 的日志主机发送信息。信息采用 TCP 模式进行传输,通过 SSL 策略进行加密,引用的已创建好的 SSL 策略名称是 huawei123。
<Huawei> system-view
[Huawei] info-center loghost 192.168.2.2 transport tcp ssl-policy huawei123
复制代码
info-center loghost source
命令功能
info-center loghost source 命令用来配置设备向日志主机发送消息的源接口信息。
undo info-center loghost source 命令用来恢复设备向日志主机发送消息的源接口信息为缺省值。
缺省情况下,设备向日志主机发送信息的源接口就是实际发送信息的接口。
命令格式
info-center loghost source interface-type interface-number
undo info-center loghost source
复制代码
使用实例
将接口 Loopback0 的 IP 地址作为日志消息报文的源地址。
<Huawei> system-view
[Huawei] interface loopback 0
[Huawei-LoopBack0] ip address 10.1.1.1 255.255.255.0
[Huawei-LoopBack0] quit
[Huawei] info-center loghost source loopback 0
复制代码
info-center max-logfile-number
命令功能
info-center max-logfile-number 用来配置日志文件的最大保存个数。
undo info-center max-logfile-number 用来恢复日志文件的最大保存个数为缺省值。
缺省情况下,日志文件的最大保存个数为 200。
命令格式
info-center max-logfile-number filenumbers
undo info-center max-logfile-number
复制代码
使用实例
设置保存的日志文件个数为 100。
<Huawei> system-view
[Huawei] info-center max-logfile-number 100
复制代码
info-center rate-limit except
命令功能
info-center rate-limit except 命令用来配置日志不受信息中心日志抑制。
undo info-center rate-limit except 命令用来删除此配置。
命令格式
info-center rate-limit except { byinfoid infoID | bymodule-alias modname alias }
undo info-center rate-limit except { byinfoid infoID | bymodule-alias modname alias }
复制代码
使用实例
配置通过模块名和助记符方式设置单条日志不受速率抑制。
<Huawei> system-view
[Huawei] info-center rate-limit except bymodule-alias AAA AUTHEN_ERR_EVENT
复制代码
配置通过日志 ID 方式设置单条日志的不受速率抑制。
<Huawei> system-view
[Huawei] info-center rate-limit except byinfoid ff5ad009
复制代码
配置取消单条日志的不受速率抑制。
<Huawei> system-view
[Huawei] undo info-center rate-limit except bymodule-alias AAA AUTHEN_ERR_EVENT
复制代码
info-center rate-limit global-threshold
命令功能
info-center rate-limit global-threshold 命令用来设置信息中心每秒处理日志的总数。
undo info-center rate-limit global-threshold 命令用来恢复为缺省值。
缺省情况下,信息中心每秒钟最多处理 400 条日志信息。
命令格式
info-center rate-limit global-threshold value
undo info-center rate-limit global-threshold
复制代码
使用实例
配置信息中心每秒处理报文总数为 300。
<Huawei> system-view
[Huawei] info-center rate-limit global-threshold 300
复制代码
info-center rate-limit monitor-period
命令功能
info-center rate-limit monitor-period 命令用来配置信息中心进行速率抑制的监控周期。
undo info-center rate-limit monitor-period 命令用来恢复缺省值。
缺省情况下,监控周期是 3 秒。
命令格式
info-center rate-limit monitor-period value
undo info-center rate-limit monitor-period
复制代码
使用实例
配置信息中心速率抑制的监控周期为 5 秒。
<Huawei> system-view
[Huawei] info-center rate-limit monitor-period 5
复制代码
info-center rate-limit threshold
命令功能
info-center rate-limit threshold 命令用来配置信息中心每秒处理相同 ID 日志的阈值。
undo info-center rate-limit threshold 命令用来恢复为缺省值。
缺省情况下,信息中心每秒处理相同 ID 日志的阈值为 30 条。
命令格式
info-center rate-limit threshold value [ byinfoid infoID | bymodule-alias modname alias ]
undo info-center rate-limit threshold [ value ] [ byinfoid infoID | bymodule-alias modname alias ]
复制代码
使用实例
配置日志速率抑制的阈值为每秒 60 条。
<Huawei> system-view
[Huawei] info-center rate-limit threshold 60
复制代码
配置通过模块名和助记符方式设置单条日志的速率抑制阈值为每秒 30 条。
<Huawei> system-view
[Huawei] info-center rate-limit threshold 30 bymodule-alias AAA AUTHEN_ERR_EVENT
复制代码
配置通过日志 ID 方式设置单条日志的速率抑制阈值为每秒 20 条。
<Huawei> system-view
[Huawei] info-center rate-limit threshold 20 byinfoid ff5ad009
复制代码
配置恢复系统监控阈值的默认值。
<Huawei> system-view
[Huawei] undo info-center rate-limit threshold
复制代码
配置取消单条日志的速率抑制阈值。
<Huawei> system-view
[Huawei] undo info-center rate-limit threshold bymodule-alias AAA AUTHEN_ERR_EVENT
复制代码
info-center source channel
命令功能
info-center source channel 命令用来配置向信息通道输出信息的规则。
undo info-center source channel 命令用来恢复信息通道输出信息的规则为缺省值。
缺省情况下,不同类别的信息向信息通道输出的规则如下:
命令格式
info-center source { module-name | default } channel { channel-number | channel-name } [ log { state { off | on } | level severity } * | trap { state { off | on } | level severity } * | debug { state { off | on } | level severity } * ] *
undo info-center source { module-name | default } channel { channel-number | channel-name }
复制代码
使用实例
将 SNMP agent 通道中的 CFM 模块的 Log 信息打开,且允许输出信息的最低级别为 warning。
<Huawei> system-view
[Huawei] info-center source CFM channel snmpagent log level warning
复制代码
info-center statistic-suppress enable
命令功能
info-center statistic-suppress enable 命令用来使能连续重复日志的统计抑制功能。
undo info-center statistic-suppress enable 命令用来去使能连续重复日志的统计抑制功能。
缺省情况下,连续重复日志的统计抑制功能处于使能状态。
命令格式
info-center statistic-suppress enable
undo info-center statistic-suppress enable
复制代码
使用实例
配置关闭连续重复日志统计抑制功能。
<Huawei> system-view
[Huawei] undo info-center statistic-suppress enable
复制代码
info-center timestamp
命令功能
info-center timestamp 命令用来配置输出的 Log、Trap 和 Debug 信息的时间戳格式。
undo info-center timestamp 命令用来恢复输出的 Log、Trap 和 Debug 信息的时间戳格式为缺省值。
缺省情况下,Log、Trap 和 Debug 信息采用的时间戳格式为 date。调试信息的时间精度为毫秒级,告警信息、日志信息的时间精度为秒级。
命令格式
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 }
复制代码
使用实例
配置 Trap 信息时间戳格式为 boot。
<Huawei> system-view
[Huawei] info-center timestamp trap boot
复制代码
配置 Log 信息、Trap 信息、Debug 信息的时间戳精度。
<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
复制代码
info-center trapbuffer
命令功能
info-center trapbuffer 命令用来使能 Trap 信息向 Trap 缓冲区的发送功能。
undo info-center trapbuffer 命令用来去使能 Trap 信息向 Trap 缓冲区的发送功能。
缺省情况下,Trap 信息向 Trap 缓冲区的发送功能处于使能状态。
命令格式
info-center trapbuffer
undo info-center trapbuffer
复制代码
使用实例
使能 Trap 信息向 Trap 缓冲区的发送功能。
<Huawei> system-view
[Huawei] info-center trapbuffer
复制代码
info-center trapbuffer size
命令功能
info-center trapbuffer size 命令用来配置 Trap 缓冲区可容纳 Trap 信息的条数。
undo info-center trapbuffer size 命令用来配置 Trap 缓冲区可容纳 Trap 信息的条数为缺省值。
缺省情况下,Trap 缓冲区可容纳 Trap 信息的条数为 256 条。
命令格式
info-center trapbuffer size trapbuffer-size [ channel { channel-number | channel-name } ]
undo info-center trapbuffer size
复制代码
使用实例
配置 Trap 缓冲区可容纳 Trap 信息的条数为 30。
<Huawei> system-view
[Huawei] info-center trapbuffer size 30
复制代码
reset info-center statistics
命令功能
reset info-center statistics 命令用来清除各模块的信息统计数据。
命令格式
reset info-center statistics
复制代码
使用实例
清除各个模块的信息统计数据。
<Huawei> reset info-center statistics
复制代码
reset logbuffer
命令功能
reset logbuffer 命令用来清除 Log 缓冲区中的日志信息。
命令格式
使用实例
清除 Log 缓冲区中的信息。
<Huawei> reset logbuffer
Warning: This command will reset the log buffer. Logs in the buffer will be lost
. Continue? (y/n)[n]:y
复制代码
reset trapbuffer
命令功能
reset trapbuffer 命令用来清除 Trap 缓冲区中的 Trap 信息。
命令格式
使用实例
清除 Trap 缓冲区中的信息。
<Huawei> reset trapbuffer
复制代码
save logfile
命令功能
save logfile 用来把日志文件缓冲区中的日志保存到日志文件中。
命令格式
使用实例
保存日志文件缓冲区中的信息到日志文件。
<Huawei> save logfile
Info: It may take several seconds,please wait...
Save log file successfully.
复制代码
terminal debugging
命令功能
terminal debugging 命令用来使能终端显示 Debug 信息功能。
undo terminal debugging 命令用来去使能终端显示 Debug 信息功能。
缺省情况下,终端显示 Debug 信息功能处于未使能状态。
命令格式
terminal debugging
undo terminal debugging
复制代码
使用实例
使能终端显示 Debug 信息功能。
<Huawei> terminal debugging
Info: Current terminal debugging is on.
复制代码
terminal logging
命令功能
terminal logging 命令用来使能终端显示 Log 信息功能。
undo terminal logging 命令用来去使能终端显示 Log 信息功能。
缺省情况下,终端显示 Log 信息功能处于使能状态。
命令格式
terminal logging
undo terminal logging
复制代码
使用实例
去使能终端日志显示功能。
<Huawei> undo terminal logging
Info: Current terminal logging is off.
复制代码
terminal monitor
命令功能
terminal monitor 命令用来使能终端显示信息中心发送信息的功能。
undo terminal monitor 命令用来去使能终端显示信息中心发送信息的功能。
缺省情况下,控制台显示功能处于使能状态,用户终端显示功能处于未使能状态。
命令格式
terminal monitor
undo terminal monitor
复制代码
使用实例
去使能终端显示功能。
<Huawei> undo terminal monitor
Info: Current terminal monitor is off.
复制代码
terminal trapping
命令功能
terminal trapping 命令用来使能终端显示 Trap 信息功能。
undo terminal trapping 命令用来去使能终端显示 Trap 信息功能。
缺省情况下,终端显示 Trap 信息功能处于使能状态。
命令格式
terminal trapping
undo terminal trapping
复制代码
使用实例
去使能 Trap 信息显示功能。
<Huawei> undo terminal trapping
Info: Current terminal trapping is off.
复制代码
评论