35-信息中心命令
本章节下载 (196.33 KB)
目 录
1.1.4 display logbuffer summary
1.1.7 info-center console channel
1.1.11 info-center loghost source
1.1.12 info-center monitor channel
1.1.13 info-center snmp channel
【命令】
display channel [ channel-number | channel-name ]
【视图】
任意视图
【参数】
channel-number:通道号,取值范围为0~9,即系统可以有10个通道。
channel-name:通道名。缺省情况下,通道0~9的名称分别为console,monitor,loghost,trapbuffer,logbuffer,snmpagent,channel6,channel7,channel8,channel9。
【描述】
display channel命令用来显示信息通道的内容。
不带参数时,命令表示显示所有通道的设置情况。
【举例】
# 显示0号信息通道的内容。
<H3C> 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
【命令】
display info-center
【视图】
任意视图
【参数】
无
【描述】
display info-center命令用来显示信息中心工作状态、各信息输出通道的配置以及时间戳格式。
如果当前日志/告警缓冲区内的信息数少于用户指定的缓冲区大小,则本命令将显示实际条数的日志/告警信息。
相关配置可参考命令info-center enable,info-center loghost ,info-center logbuffer,info-center console channel,info-center monitor channel,info-center trapbuffer,info-center snmp channel,info-center timestamp。
【举例】
# 显示信息中心信息。
<H3C> display info-center
Information Center:enabled
Log host:
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:256
current messages:2, 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
Information timestamp setting:
log - date, trap - date, debug - boot
表1-1 display info-center显示信息描述表
域名 |
解释 |
Information Center: |
信息中心的使能状态 |
Log host: |
日志主机的状态,包括日志主机的IP地址,所使用的通道号、通道名,语言及日志主机的级别 |
Console: |
控制口的使用状态,包括控制口所使用的通道名,通道号 |
Monitor: |
监视口的使用状态,包括监视口所使用的通道号、通道名 |
SNMP Agent: |
网管代理的使用状态,包括通道号、通道名 |
Log buffer: |
日志缓冲区的使用状态,包括使能态,最大容量,当前容量,当前信息数,通道名,通道号,已丢弃的信息数,被覆盖的信息数 |
Trap buffer: |
告警缓冲区的使用状态,包括使能态,最大容量,当前容量,当前信息数,通道名,通道号,已丢弃的信息数,被覆盖的信息数 |
Information timestamp setting: |
信息时间戳设置,分别说明日志信息、告警信息、调试信息的时间戳类型 |
【命令】
display logbuffer [ level severity | size buffersize ]* [ | { begin | exclude | include } regular-expression ]
【视图】
任意视图
【参数】
level severity:显示指定严重等级的日志信息,severity取值范围1~8。
表1-2 信息中心定义的严重等级
严重等级 |
取值 |
描述 |
emergencies |
1 |
极其紧急的错误 |
alerts |
2 |
需立即纠正的错误 |
critical |
3 |
关键错误 |
errors |
4 |
需关注但不关键的错误 |
warnings |
5 |
警告,可能存在某种差错 |
notifications |
6 |
需注意的信息 |
informational |
7 |
一般提示信息 |
debugging |
8 |
调试信息 |
size buffersize:设置显示日志信息缓冲区的大小(可容纳消息的条数),buffersize取值范围1~1024,缺省值512。
|:使用正则表达式过滤输出的日志信息。
begin:显示以指定文字开头的日志信息。
exclude:显示不含指定文字的日志信息。
include:显示包含指定文字的日志信息。
regular-expression:正则表达式。
特殊字符 |
含义 |
使用限制 |
_ |
下划线,类似于一个通配符,可以代表如下字符: (^|$|[,(){} ]) 空格、起始符、结束符 |
如果表达式的第一个字符不是’_’,则对’_’字符的个数不作限制;(受命令行长度的限制) 如果第一个字符是’_’,那么连续的’_’字符个数应小于5个; 如果’_’字符不是连续的,以第一组’_’作为输出信息的过滤规则,对后续的’_’不作处理 |
( |
左括号,程序中代表进栈标志 |
建议用户不要使用该字符建立正则表达式 |
【描述】
display logbuffer命令用来显示交换机日志缓冲区的状态和缓冲区记录的日志信息。
【举例】
# 显示信息中心缓冲区的状态和缓冲区记录的日志信息。
<H3C> 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 : 0
Current messages : 91
......(以下略)
【命令】
display logbuffer summary [ level severity ]
【视图】
任意视图
【参数】
level severity:显示指定严重等级的日志信息统计数据,severity取值范围1~8。
【描述】
display logbuffer summary命令用来显示信息中心缓冲区的统计数据。
【举例】
# 显示信息中心缓冲区的概要信息。
<H3C> display logbuffer summary
SLOT EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
【命令】
display trapbuffer [ size buffersize ]
【视图】
任意视图
【参数】
size buffersize:设置显示告警信息缓冲区的大小(可容纳消息的条数),buffersize取值范围1~1024,缺省值256。
【描述】
display trapbuffer命令用来显示交换机告警缓冲区的状态和缓冲区记录的告警信息。
如果输入size buffersize参数,设备将显示指定的最近记录的告警信息。
【举例】
# 显示系统告警缓冲区的状态和缓冲区记录的告警信息。
<H3C> 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 : 6
#Dec 31 14:01:25 2004 H3C DEV/2/LOAD FINISHED:
Trap 1.3.6.1.4.1.2011.2.23.1.12.1.20: frameIndex is 0, slotIndex 0.4
#Dec 31 14:01:33 2004 H3C DEV/2/BOARD STATE CHANGE TO NORMAL:
Trap 1.3.6.1.4.1.2011.2.23.1.12.1.11: frameIndex is 0, slotIndex 0.2
#Dec 31 14:01:40 2004 H3C DEV/2/BOARD STATE CHANGE TO NORMAL:
Trap 1.3.6.1.4.1.2011.2.23.1.12.1.11: frameIndex is 0, slotIndex 0.
……(以下略)
【命令】
info-center channel channel-number name channel-name
undo info-center channel channel-number
【视图】
系统视图
【参数】
channel-number:通道号,取值范围为0~9,即系统共有10个通道。
channel-name:通道名,最长为30个字符,不支持“-”、“/”和“\”等字符,首字符不能为数字。
【描述】
info-center channel name命令用来将编号为channel-number的信息通道命名为channel-name。undo info-center channel命令用来恢复编号为channel-number的信息通道的缺省名字。
缺省情况下,通道0~9的名称分别为console,monitor,loghost,trapbuffer,logbuffer,snmpagent,channel6,channel7,channel8,channel9。
用户在命名时需要注意:通道不可重名。
【举例】
# 将0号通道命名为execconsole。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center channel 0 name execconsole
【命令】
info-center console channel { channel-number | channel-name }
undo info-center console channel
【视图】
系统视图
【参数】
channel-number:通道号,取值范围为0~9,即系统共有10个通道。
channel-name:通道名。缺省情况下,通道0~9的名称分别为console,monitor,loghost,trapbuffer,logbuffer,snmpagent,channel6,channel7,channel8,channel9。
【描述】
info-center console channel命令用来设置系统向控制台发送信息所使用的通道。undo info-center console channel命令用来恢复系统向控制台发送信息所使用的缺省通道。
缺省情况下,系统向控制台发送信息使用的是0号通道。
只有启动了信息中心功能,该命令才会生效。
相关配置可参考命令info-center enable,display info-center。
【举例】
# 设置系统向控制台发送信息使用的是7号通道。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center console channel 7
【命令】
info-center enable
undo info-center enable
【视图】
系统视图
【参数】
无
【描述】
info-center enable命令用来启动信息中心功能,undo info-center enable命令用来关闭信息中心功能。只有启动了信息中心功能,系统才会向日志主机、控制台等方向输出系统信息。
缺省情况下,系统启动信息中心功能。
相关配置可参考命令display info-center,info-center loghost ,info-center logbuffer,info-center console channel,info-center monitor channel,info-center trapbuffer,info-center snmp channel 。
【举例】
# 启动信息中心功能。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center enable
% information center is enabled
【命令】
info-center logbuffer [ channel { channel-number | channel-name } | size buffersize ]* [ | exclude regular-expression ]
undo info-center logbuffer [ channel | size | | exclude regular-expression ]
【视图】
系统视图
【参数】
channel:设置系统向日志缓冲区输出信息的通道。
channel-number:通道号,取值范围为0~9,即系统共有10个通道。
channel-name:通道名。缺省情况下,通道0~9的名称分别为console,monitor,loghost,trapbuffer,logbuffer,snmpagent,channel6,channel7,channel8,channel9。
size buffersize:设置日志缓冲区的大小(可容纳消息的条数),buffersize取值范围0~1024,缺省值512。
|:使用正则表达式过滤输出的配置信息。
exclude:输出不含指定文字的配置信息。
regular-expression:正则表达式。
表1-4 正则表达式中的特殊字符
特殊字符 |
含义 |
使用限制 |
_ |
下划线,类似于一个通配符,可以代表如下字符: (^|$|[,(){} ]) 空格、起始符、结束符 |
如果表达式的第一个字符不是’_’,则对’_’字符的个数不作限制;(受命令行长度的限制) 如果第一个字符是’_’,那么连续的’_’字符个数应小于5个; 如果’_’字符不是连续的,以第一组’_’作为输出信息的过滤规则,对后续的’_’不作处理 |
( |
左括号,程序中代表进栈标志 |
建议用户不要使用该字符建立正则表达式 |
【描述】
info-center logbuffer命令用来设置系统向日志缓冲区输出信息,undo info-center logbuffer命令用来取消向日志缓冲区输出信息。
缺省情况下,系统向日志缓冲区输出信息,缓冲区的大小为512。
只有启动了系统的日志功能,该命令才会生效。
相关配置可参考命令info-center enable,display info-center。
【举例】
# 使系统向日志缓冲区发送日志信息,设定缓冲区的大小为50。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center logbuffer size 50
# 使系统向日志缓冲区发送不包含“command”字符的日志信息。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center logbuffer | exclude command
【命令】
info-center loghost host-ip-addr [ channel { channel-number | channel-name } | facility local-number | language { chinese | english } ]*
undo info-center loghost host-ip-addr
【视图】
系统视图
【参数】
host-ip-addr:日志主机的IP地址。
channel:设置日志主机的信息通道。
channel-number:通道号,取值为0~9,即系统有10个通道。
channel-name:通道名。缺省情况下,通道0~9的名称分别为console,monitor,loghost,trapbuffer,logbuffer,snmpagent,channel6,channel7,channel8,channel9。
facility:设置日志主机记录工具。
local-number:日志主机的记录工具,范围在local0~local7。
language:日志记录语言设置。
chinese、english:日志记录语言,中英文的切换。
【描述】
info-center loghost 命令用来设置系统向日志主机输出信息,undo info-center loghost 命令用来取消向日志主机输出信息。
缺省情况下,系统不向日志主机输出信息。
只有启动了信息中心功能,该命令才会生效。
& 说明:
使用命令info-center loghost配置日志主机的IP地址时,请输入正确的IP地址。如果用户输入的是环回地址,系统将提示此地址无效。
相关配置可参考命令info-center enable,display info-center。
【举例】
# 使以太网交换机向IP地址为202.38.160.1的UNIX工作站发送日志信息。
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center loghost 202.38.160.1
【命令】
info-center loghost source interface-type interface-number
undo info-center loghost source
【视图】
系统视图
【参数】
interface-type:接口类型。
interface-number:接口编号。
【描述】
info-center loghost source命令用来设置系统向日志主机发送日志信息的源接口,undo info-center loghost source命令用来取消向日志主机发送日志信息的源接口的配置。
相关配置可参考命令info-center enable,display info-center。
【举例】
# 设置系统向日志主机发送日志信息的源接口为vlan-interface 1。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center loghost source Vlan-interface 1
【命令】
info-center monitor channel { channel-number | channel-name }
undo info-center monitor channel
【视图】
系统视图
【参数】
channel-number:通道号,取值范围为0~9,即系统有10个通道。
channel-name:通道名。缺省情况下,通道0~9的名称分别为console,monitor,loghost,trapbuffer,logbuffer,snmpagent,channel6,channel7,channel8,channel9。
【描述】
info-center monitor channel命令用来设置系统向用户终端发送信息所使用的通道。undo info-center monitor channel命令用来恢复系统向用户终端发送信息所使用的缺省通道。
缺省情况下,系统向用户终端发送信息。
只有启动了信息中心功能,该命令才会生效。
相关配置可参考命令info-center enable,display info-center。
【举例】
# 设置系统向用户终端发送信息使用的是0号通道。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center monitor channel 0
【命令】
info-center snmp channel { channel-number | channel-name }
undo info-center snmp channel
【视图】
系统视图
【参数】
channel-number:通道号,取值范围为0~9,即系统有10个通道。
channel-name:通道名。缺省情况下,通道0~9的名称分别为console,monitor,loghost,trapbuffer,logbuffer,snmpagent,channel6,channel7,channel8,channel9。
【描述】
info-center snmp channel命令用来设置向SNMP Agent输出信息的通道。undo info-center snmp channel命令用来恢复向SNMP Agent输出信息的的通道为缺省值。
缺省情况下,系统使用5号通道向SNMP Agent输出信息。
相关配置可参考命令snmp-agent,display info-center。
【举例】
# 设置系统向SNMP网管发送信息使用6号通道。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center snmp channel 6
【命令】
info-center source { module-name | default } channel { channel-number | channel-name } [ debug { level severity | state state }* | log { level severity | state state }* | trap { level severity | state state }* ]*
undo info-center source { module-name | default } channel { channel-number | channel-name }
【视图】
系统视图
【参数】
module-name:模块名。具体如表1-5所示。
模块名 |
说明 |
8021X |
802.1X模块 |
ACCOUNT |
L3+实时计费模块 |
ACL |
访问控制列表(Access Control List)模块 |
ADBM |
地址表模块(ADdress Base Module) |
AM_USERB |
访问管理(Access Management)模块 |
ARP |
地址解析协议(Address Resolution Protocol)模块 |
BGP |
BGP(Border Gateway Protocol)模块 |
CFM |
配置文件管理(Configuration File Management)模块 |
CLNP |
无连接网络协议(Connection-Less Network Protocol)模块 |
CLNSECHO |
无连接网络协议回显模块 |
CLST |
集群管理(Cluster)模块 |
CMD |
命令行模块 |
DEV |
设备管理模块 |
DHCP |
动态主机配置协议(Dynamic Host Configuration Protocol)模块 |
DHCPS |
DHCP服务器模块 |
DHCPSNP |
DHCP Snooping模块 |
DIAG |
诊断模块 |
DLDP |
设备连接检测协议(Device Link Detection Protocol)模块 |
DNS |
域名系统(Domain Name System)模块 |
ENTEXMIB |
实体扩展MIB ( Entity extended MIB ) 模块 |
ENTITY |
实体(ENTITY)模块 |
ESIS |
ESIS(End System to Intermediate System)路由协议模块 |
ETH |
以太网(Ethernet)模块 |
FIB |
转发表(Forwarding Information Base)模块 |
FTPS |
FTP服务器模块 |
HA |
高可靠性(High Availability)模块 |
HABP |
华为认证旁路协议(Huawei Authentication Bypass Protocol)模块 |
HWCM |
华为配置管理(Huawei Configuration Management)私有MIB模块 |
HWP |
HWPing模块 |
IFNET |
接口管理模块 |
IGSP |
IGMP snooping模块 |
IP |
互联网协议(Internet Protocol)模块 |
IPX |
IPX协议模块 |
ISIS |
IS-IS(Intermediate System-to-Intermediate System intra-domain routing information exchange protocol,IS-IS路由协议)模块 |
L2INF |
二层接口管理(Layer 2 INterFace)模块 |
LACL |
交换机访问控制列表(Lanswitch ACL)模块 |
LARP |
ARP(Address Resolution Protocol)模块 |
LETH |
以太网调试模块 |
LINKAGG |
链路聚合模块 |
LQOS |
交换机服务质量(Lanswitch QoS)模块 |
LS |
本地服务器(Local Server)模块 |
MIX |
双主控网管模块 |
MODEM |
MODEM模块 |
MPM |
组播端口管理(Multicast Port Management)模块 |
MSDP |
组播源发现协议(Multicast Source Discovery Protocol)模块 |
MSTP |
多生成树协议(Multiple Spanning Tree Protocol)模块 |
NAT |
网络地址转换(Network Address Translation)模块 |
NDP |
邻居发现协议(Neighbor Discovery Protocol)模块 |
NETSTREA |
流量统计模块 |
NTDP |
网络拓扑发现协议(Network Topology Discovery Protocol)模块 |
NTP |
网络时间协议(Network Time Protocol)模块 |
OSPF |
开放最短路径优先协议(Open Shortest Path First)模块 |
RDS |
Radius模块 |
RM |
路由管理(Routing Management)模块 |
RMON |
远程监控(Remote monitor)模块 |
RMX |
IPX 路由模块 |
RRPP |
快速环路保护协议(Rapid Ring Protection Protocol)模块 |
RSA |
RSA加密系统(Revest,Shamir and Adleman)模块 |
RTA |
L3+ 插卡流量计费模块 |
RTPRO |
路由协议(RoutTing PROtocol)模块 |
RXTX |
底层收发报文模块 |
SC |
服务器控制(Server Control)模块 |
SHELL |
用户界面模块 |
SNMP |
简单网络管理协议(Simple Network Management Protocol)模块 |
SOCKET |
套接字模块 |
SSH |
安全用户界面(Secure Shell)模块 |
SYSM |
系统管理(SYStem Management)模块 |
SYSMIB |
系统管理MIB模块 |
TAC |
HWTACACS模块 |
TELNET |
远程登录Telnet模块 |
TFTPC |
TFTP Client模块 |
TUNNEL |
报文透穿模块 |
UDPH |
UDP Helper模块 |
USERLOG |
用户日志模块 |
VFS |
虚拟文件系统模块 |
VLAN |
虚拟局域网(Virtual Local Area Network)模块 |
VRRP |
虚拟路由备份协议(Virtual Router Redundancy Protocol)模块 |
VTY |
虚拟类型终端(Virtual Type Terminal)模块 |
default |
所有模块的缺省设置 |
default:所有模块。
channel-number:通道号,取值范围为0~9,即系统共有10个通道。
channel-name:通道名。名称取值可以为channel6,channel7,channel8,channel9,console,logbuffer,loghost,monitor,snmpagent,trapbuffer。
log:日志信息。
trap:告警信息。
debugging:调试信息。
level:级别。
severity:信息级别,在此级别以下的信息不输出。
信息级别如下:
l emergencies:信息级别1,系统不可用。
l alerts:信息级别2,需要立刻做出反应的信息。
l critical:信息级别3,严重信息。
l errors:信息级别4,错误信息。
l warnings:信息级别5,警告信息。
l notifications:信息级别6,正常出现但是重要的信息。
l informational:信息级别7,需要记录的通知信息。
l debugging:信息级别8,调试过程产生的信息。
缺省情况下,每个信息通道的信息级别如下表所示。
通道 |
日志信息级别 |
告警信息级别 |
调试信息级别 |
控制台 |
warning |
debugging |
debugging |
监视终端 |
warning |
debugging |
debugging |
日志主机 |
informational |
debugging |
debugging |
告警缓冲区 |
informational |
warning |
debugging |
日志缓冲区 |
warning |
debugging |
debugging |
Snmpagent |
debugging |
warning |
debugging |
Channel6 |
debugging |
debugging |
debugging |
Channel7 |
debugging |
debugging |
debugging |
Channel8 |
debugging |
debugging |
debugging |
Channel9 |
debugging |
debugging |
debugging |
缺省情况下,每个信息通道的信息开关状态如下表所示。
通道 |
日志信息开关 |
告警信息开关 |
调试信息开关 |
控制台 |
Enable |
Enable |
Enable |
监视终端 |
Enable |
Enable |
Enable |
日志主机 |
Enable |
Enable |
Disable |
告警缓冲区 |
Disable |
Enable |
Disable |
日志缓冲区 |
Enable |
Disable |
Disable |
Snmpagent |
Disable |
Enable |
Disable |
Channel6 |
Enable |
Enable |
Disable |
Channel7 |
Enable |
Enable |
Disable |
Channel8 |
Enable |
Enable |
Disable |
Channel9 |
Enable |
Enable |
Disable |
state:设置信息状态。
state:取值为on和off。
【描述】
info-center source命令用来配置信息发送中的信息源和指定的输出方向。undo info-center source命令用来取消信息源和输出方向的配置。
该命令可以分别配置日志/告警/调试类型的过滤信息。例如可以将IP模块不同级别的信息输出到自定义的方向:高于warnings级别的日志信息输出到日志主机;高于informational的日志信息输出到日志缓冲区;同时将告警信息发送到日志主机。
info-center source命令利用通道名称或通道号确定各种信息的输出方向。目前,系统对每个输出方向缺省分配一个信息通道,如表1-8所示。
输出方向 |
信息通道名 |
控制台 |
console |
监视终端 |
monitor |
日志主机 |
loghost |
日志缓冲区 |
logbuffer |
告警缓冲区 |
trapbuffer |
Snmpagent |
snmpagent |
此外,对每个信息通道设有一条缺省记录,它的模块名为default,模块号为0xffff0000,但对于不同信息通道,此记录对日志、告警、调试类信息的缺省设置值可能不同。当某一个模块在此通道中没有明确的配置记录时,系统使用这条缺省的配置记录。
【举例】
# 设置将SNMP通道中的VLAN模块的日志类信息打开,且允许输出信息的最低级别为emergencies。
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center source vlan channel snmp log level emergencies
【命令】
info-center timestamp { log | trap | debugging } { boot | date | none }
undo info-center timestamp { log | trap | debugging }
【视图】
系统视图
【参数】
log:日志信息。
trap:告警信息。
debugging:调试信息。
boot:系统启动后经过时间,格式为:xxxxxx.yyyyyy,其中xxxxxx是系统自启动后经历时间的毫秒数高32位,yyyyyy是低32位。
date:系统当前日期和时间,中文环境为 yyyy/mm/dd-hh:mm:ss:ms;西文环境为:Mmm dd hh:mm:ss:ms yyyy。
none:输出的信息中不包含时间戳信息。
【描述】
info-center timestamp命令用来设置输出的调试/告警信息中的时间戳格式。undo info-center timestamp命令用来恢复缺省设置。
缺省情况下,所有类型信息都使用date时间戳。
【举例】
# 设置调试信息时间戳格式为boot格式。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center timestamp debugging boot
【命令】
info-center trapbuffer [ channel { channel-number | channel-name } | size buffersize ]*
undo info-center trapbuffer [ channel | size ]
【视图】
系统视图
【参数】
size:设置告警缓冲区的大小。
buffersize:告警缓冲区的大小(可容纳消息的条数),取值范围为0~1024。缺省值为256。
channel:设置系统向告警缓冲区输出信息的通道。
channel-number:通道号,取值范围为0~9,即系统共有10个通道。
channel-name:通道名。缺省情况下,通道0~9的名称分别为console,monitor,loghost,trapbuffer,logbuffer,snmpagent,channel6,channel7,channel8,channel9。
【描述】
info-center trapbuffer命令用来设置系统向告警缓冲区输出信息,undo info-center trapbuffer命令用来取消向告警缓冲区输出信息。
缺省情况下,系统向告警缓冲区输出信息,告警缓冲区的大小为256。
只有启动了信息中心功能,该命令才会生效。
通过设置告警缓冲区的大小,可使信息在该方向输出。
相关配置可参考命令info-center enable,display info-center。
【举例】
# 使系统向告警缓冲区发送信息,设定缓冲区的大小为30。
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center trapbuffer size 30
【命令】
reset logbuffer
【视图】
用户视图
【参数】
无
【描述】
reset logbuffer命令用来清除日志缓冲区内的信息。
【举例】
# 清除日志缓冲区中的信息。
<H3C> reset logbuffer
【命令】
reset trapbuffer
【视图】
用户视图
【参数】
无
【描述】
reset trapbuffer命令用来清除告警缓冲区内的信息。
【举例】
# 清除告警缓冲区中的信息。
<H3C> reset trapbuffer
【命令】
terminal debugging
undo terminal debugging
【视图】
用户视图
【参数】
无
【描述】
terminal debugging命令用来打开终端显示调试信息功能,undo terminal debugging命令用来关闭终端显示调试信息功能。
缺省情况下,系统关闭显示功能。
如果用户需要在终端上显示调试信息,可以执行terminal debugging命令。
相关配置可参考“系统维护与调试”部分的debugging命令。
【举例】
# 打开终端显示调试信息功能。
<H3C> terminal debugging
% Current terminal debugging is on
【命令】
terminal logging
undo terminal logging
【视图】
用户视图
【参数】
无
【描述】
terminal logging命令用来打开终端显示日志信息功能,undo terminal logging命令用来关闭终端显示日志信息功能。
缺省情况下,控制台用户打开日志信息显示功能,终端用户打开日志信息显示功能。
【举例】
# 关闭终端日志显示功能。
<H3C> undo terminal logging
% Current terminal logging is off
【命令】
terminal monitor
undo terminal monitor
【视图】
用户视图
【参数】
无
【描述】
terminal monitor命令用来打开终端信息显示信息中心发送的调试/日志/告警信息功能,undo terminal monitor命令用来关闭终端显示上述信息功能。
缺省情况下,控制台用户打开调试/日志/告警信息显示功能,终端用户打开调试/日志/告警信息显示功能。
此命令只影响输入命令的当前终端,只有在用户视图下执行了本命令的前提下,调试/日志/告警信息才有可能输出到当前终端。在terminal monitor为关闭的情况下,相当与执行undo terminal debugging,undo terminal logging,undo terminal trapping 命令,所有的调试/日志/告警信息在本终端都不显示;在terminal monitor为打开的情况下,可以分别使用terminal debugging/undo terminal debugging,terminal logging/undo terminal logging,terminal trapping/undo terminal trapping打开或关闭调试/日志/告警信息。
【举例】
# 关闭终端显示功能。
<H3C> undo terminal monitor
% Current terminal monitor is off
【命令】
terminal trapping
undo terminal trapping
【视图】
用户视图
【参数】
无
【描述】
terminal trapping命令用来打开终端告警信息显示功能,undo terminal trapping命令用来关闭终端显示告警信息功能。
缺省情况下,系统打开终端告警信息显示功能。
【举例】
# 打开告警信息显示功能。
<H3C> terminal trapping
% Current terminal trapping is on
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!