华为信息中心配置命令,很全
本文命令集合:
- 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-levelInfo: 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
项目 | 描述 |
---|---|
channel number | 信息通道编号,取值范围:0~9。 |
channel name | 信息通道名称。 |
MODU_ID | 模块号,缺省情况下为ffff0000。 |
NAME | 模块名,缺省情况下为default。 |
ENABLE |
是否允许Log/Trap/Debug信息从对应信息通道通过。 Y:允许 N:不允许 |
LOG_LEVEL/TRAP_LEVEL/DEBUG_LEVEL |
允许输出的Log/Trap/Debug信息的最低级别。级别从高到低分别为: emergencies alert critical error warning notification informational 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命令用来查看信息中心输出方向的配置信息。
命令格式
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:enabledmax buffer size: 1024, current buffer size: 512current messages: 6, channel number: 4, channel name: logbufferdropped messages: 0, overwritten messages: 0
Trap buffer:enabledmax buffer size: 1024, current buffer size: 256current messages: 0, channel number: 3, channel name: trapbufferdropped messages: 0, overwritten messages: 0
Logfile:channel number: 9, channel name: channel9, language: English
Information timestamp setting:log - date, trap - date, debug - dateSent messages = 25, Received messages = 25
项目 | 描述 |
---|---|
Information Center | 信息中心的使能状态。enabled:信息中心功能处于使能状态。disabled:信息中心功能处于未使能状态。 |
Log host | 日志主机的配置信息。 |
10.1.1.1 | 日志主机的IP地址。 |
channel number | 信息输出到不同的输出方向所使用的信息通道的编号。 |
channel name | 信息输出到不同的输出方向所使用的信息通道的名称。 |
language | 信息输出到日志主机所显示的语言模式。 |
host facility | 日志主机的记录工具。 |
Console | 控制台的配置信息。 |
Monitor | 远程终端的配置信息。 |
SNMP Agent | SNMP代理的配置信息。 |
Log buffer | Log缓冲区的配置信息。 |
enabled |
Log/Trap信息向Log/Trap缓冲区发送功能的使能状态。 enabled:使能 disabled:未使能 |
max buffer size | Log/Trap缓冲区最大可容纳的Log/Trap信息的条数。 |
current buffer size | Log/Trap缓冲区当前可容纳的Log/Trap信息的条数。 |
current messages | Log/Trap缓冲区当前记录的信息的条数。 |
dropped messages | Log/Trap缓冲区已丢弃的信息的条数。 |
overwritten messages | Log/Trap缓冲区覆盖的信息的条数。 |
Trap buffer | Trap缓冲区的配置信息。 |
logfile | 日志文件的配置信息。 |
Information timestamp setting |
日志、告警、调试信息的时间戳格式: boot:相对时间类型,即系统启动后经过的时间。 date:系统当前日期和时间,格式为mm dd yyyy hh:mm:ss。 short-date:短日期格式。这种格式的时间戳与date类型的时间戳基本相同,唯一区别是短日期格式取消了年份的显示。 format-date:按照年、月、日、时、分、秒的格式显示:YYYY-MM-DD hh:mm:ss。 none:表示输出的信息不包含时间戳。 |
Sent messages | 已发送的信息数,用于统计从信息中心模块输出的信息数。 |
Received messages | 已收到的信息数,用于统计发往信息中心模块的信息数。 |
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.1InfoID : ff5ad009Module : AAAAlias : DESTFAILAUTHEN_ERR_EVENTRate limit threshold : 50Total receive number : 1872Total drop number : 922Total send number : 950Begin 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 summaryEMERG 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-nameundo 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 enableundo 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 logbufferundo 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 pathundo 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 sizeundo 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-numberundo 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 filenumbersundo 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 valueundo 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 valueundo 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 enableundo 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 trapbufferundo 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缓冲区中的日志信息。
命令格式
reset logbuffer
使用实例
清除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信息。
命令格式
reset trapbuffer
使用实例
清除Trap缓冲区中的信息。
<Huawei> reset trapbuffer
save logfile
命令功能
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 debuggingundo terminal debugging
使用实例
使能终端显示Debug信息功能。
<Huawei> terminal debugging
Info: Current terminal debugging is on.
terminal logging
命令功能
terminal logging命令用来使能终端显示Log信息功能。
undo terminal logging命令用来去使能终端显示Log信息功能。
缺省情况下,终端显示Log信息功能处于使能状态。
命令格式
terminal loggingundo terminal logging
使用实例
去使能终端日志显示功能。
<Huawei> undo terminal logging
Info: Current terminal logging is off.
terminal monitor
命令功能
terminal monitor命令用来使能终端显示信息中心发送信息的功能。
undo terminal monitor命令用来去使能终端显示信息中心发送信息的功能。
缺省情况下,控制台显示功能处于使能状态,用户终端显示功能处于未使能状态。
命令格式
terminal monitorundo terminal monitor
使用实例
去使能终端显示功能。
<Huawei> undo terminal monitor
Info: Current terminal monitor is off.
terminal trapping
命令功能
terminal trapping命令用来使能终端显示Trap信息功能。
undo terminal trapping命令用来去使能终端显示Trap信息功能。
缺省情况下,终端显示Trap信息功能处于使能状态。
命令格式
terminal trappingundo terminal trapping
使用实例
去使能Trap信息显示功能。
<Huawei> undo terminal trapping
Info: Current terminal trapping is off.
华为信息中心配置命令,很全相关推荐
- 思科与华为BGP配置命令对比
思科与华为BGP配置命令对比 Cisco(config)#router bgp 100 //配置BGP进程号 [Huawei]bgp 100 //启动BGP,指定本地AS编号,并进入BGP视图 Cis ...
- 华为基本配置命令(整理)
华为基本配置命令(整理) 版权仅供原作者所有,感谢提供资料的原作者! 一.单交换机VLAN划分 命令解释 system-view 进入系统视图 quit 退到系统视图 undo vlan 20 删除v ...
- 华为交换机配置命令集
华为交换机配置命令 1.配置文件相关命令 [Quidway]display current-configuration 显示当前生效的配置 [Quidway]display saved-configu ...
- dp交换机命令_华为交换机配置命令解释
华为交换机配置命令解释 用户视图,只能看配置 reset save ( 清除配置文件 ) reboot ( 重启华为交换机 ) system view ( 进入配置模式 ) sys ( 省略式打法 ) ...
- enable 华为交换机ntdp_华为交换机配置命令有哪些?
展开全部 华为交换机配置命令有以下几种: 1.用户模式:交换机启动32313133353236313431303231363533e59b9ee7ad9431333363396463后在控制台直接按回 ...
- 华为硬件配置命令,很全
backup elabel 命令功能 backup elabel命令用来将设备的电子标签信息备份到设备的存储介质中. backup elabel ftp命令用来将设备的电子标签信息备份到指定的FTP服 ...
- 华为路由器配置命令汇总
VRP系统基本使用,与交换机基本相同 信息中心配置 Log.Trap.Debug信息的输出,对设备的维护与监管至关重要 配置Log信息输出,即配置指定模块的Log信息输出到Log缓冲区.日志文件.控制 ...
- 华为交换机配置命令 华为QuidWay交换机配置命令手册
华为交换机配置,仅供参考: 1.开始建立本地配置环境,将主机的串口通过配置电缆与以太网交换机的Console口连接. 在主机上运行终端仿真程序(如Windows的超级终端等),设置终端通信参数为:波特 ...
- 华为交换机配置命令汇总
VRP系统基本使用 ◆command-privilege level rearrange --用户级别为15级才能执行,将所有缺省注册为2.3级的命令,分别批量提升到10和15级. ◆undo co ...
最新文章
- 皮一皮:到底谁才是渣王...
- 1,字符是否为空,2,比较两个字符大小。String.Compare(String, String)。string.IsNullOrEmpty(string)...
- Android-使用嵌入式SQLite
- 70条程序员编程的专业名言,你认可几条?
- CSS中属性的值和单位
- PHP文件下载过滤类
- Intellij IDEA自定义类注释模板
- (116)System Verilog类合成(类包含关系)详解
- Docker简单实践(一)
- JAVA中String与StringBuffer 、StringBuilder的区别
- 修改MySQL中字段的类型和长度
- Windows Live Writer Technical Preview 公布下载
- 敏感性分析数学建模方法(敏感性分析数学建模模型)
- Lintcode-37 Python语言
- 破14亿,Python分析我国存在哪些人口危机!
- 一阶高通滤波+二阶Mahony滤波的四元数姿态解算
- The slave I/O thread stops because master and slave have equal MySQL server UUID
- 月薪过万的运维工程师都要会干什么
- candidate master_已毕业研究生
- stopstart按钮怎么用_汽车Start-Stop启停技术简明讲解