华为信息中心配置教程(三)

相关阅读

19、查看信息中心输出方向的配置信息

<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 512, channel number : 4, channel name : logbuffer             

dropped messages 0, overwritten messages 53                                    

Trap buffer:                                                                    

        enabled,max buffer size 1024, current buffer size 256,                 

current messages 256, channel number:3, channel name:trapbuffer                

dropped messages 0, overwritten messages 6229                                  

logfile:                                                                       

        channel number : 9, channel name : channel9, language : English        

Information timestamp setting:                                                  

        log - date, trap - date, debug - date millisecond                      

 Sent messages = 270090, Received messages = 281030                             

 IO Reg messages = 2 IO Sent messages = 10940
表1 display info-center命令输出信息描述
项目描述
Information Center信息中心的使能状态。enabled:信息中心功能处于使能状态。disabled:信息中心功能处于未使能状态。
Log host日志主机的配置信息。
10.1.1.1日志主机的IP地址。
channel number信息输出到不同的输出方向所使用的信息通道的编号。
channel name信息输出到不同的输出方向所使用的信息通道的名称。
language信息输出到日志主机所显示的语言模式。
host facility日志主机的记录工具。
Console控制台的配置信息。
Monitor远程终端的配置信息。
SNMP AgentSNMP代理的配置信息。
Log bufferLog缓冲区的配置信息。
enabledLog/Trap信息向Log/Trap缓冲区发送功能的使能状态。enabled:使能disabled:未使能
max buffer sizeLog/Trap缓冲区最大可容纳的Log/Trap信息的条数。
current buffer sizeLog/Trap缓冲区当前可容纳的Log/Trap信息的条数。
current messagesLog/Trap缓冲区当前记录的信息的条数。
dropped messagesLog/Trap缓冲区已丢弃的信息的条数。
overwritten messagesLog/Trap缓冲区覆盖的信息的条数。
Trap bufferTrap缓冲区的配置信息。
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已收到的信息数,用于统计发往信息中心模块的信息数。
IO Reg messages接口板接收的信息数。
IO Sent messages接口板发送的信息数。

20、查看信息中心的统计信息

<HUAWEI> display info-center statistics

Information statistics data:

ModuleID    ModuleName        LogSend   LogDrop   DiagSend  DiagDrop  TrapSend

TrapDrop  DebugSend DebugDrop

0x417d0000  6OVER4            0         0         0         0         0

0         0         0

0x41470000  AAA               0         0         0         0         0

0         0         0

0x406c0000  ACL               0         0         0         0         0

0         0         0

0x40ef0000  ACL6              0         0         0         0         0

0         0         0

0xff060000  ACLE              1         0         0         0         0

0         0         0

0xff380000  ADA_BFD           0         0         0         0         0

0         0         0

0x40e70000  ADDR              0         0         0         0         0

0         0         0

0xff3d0000  ADP_MSTP          64        0         0         0         0        

0         0         0                                                           

0xff2f0000  ADP_RRPP          0         0         114       18        0

0         0         0

0xff950000  ADPIPV4           0         0         253       393       0

0         0         0

  ---- More ----
表1 display info-center statistics命令输出信息描述
项目描述
ModuleID表示模块在信息中心中注册的ID。
ModuleName产生日志信息的模块名称。
LogSend表示发送的日志信息条数。
LogDrop表示丢弃的日志信息条数。
DiagSend表示发送的诊断信息条数。
DiagDrop表示丢弃的诊断信息条数。
TrapSend表示发送的告警信息条数。
TrapDrop表示丢弃的告警信息条数。
DebugSend表示发送的调试信息条数。
DebugDrop表示丢弃的调试信息条数。

21、查看Log缓冲区记录的信息

1、查看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 : 0                                                        

Current messages : 177                                                         

Oct 22 2013 12:10:21 HUAWEI %%01NETCONF/4/LOGOUT(s)[0]:User admin logout from 10

.135.34.97                                                                     

Oct 22 2013 11:16:51 HUAWEI %%01NETCONF/4/LOGOUT(s)[1]:User admin logout from 10

.135.34.97                                                                      

Oct 22 2013 11:16:12 HUAWEI %%01NETCONF/4/LOGIN(s)[2]:User admin login from 10.1

35.34.97                                                                       

Oct 22 2013 11:13:37 HUAWEI %%01NETCONF/4/LOGOUT(s)[3]:User admin logout from 10

.135.34.97                                                                                                                

Oct 22 2013 10:03:54 HUAWEI %%01HTTP/3/LOGINFAIL(s)[16]:User login failed. (User

Name=admin, IPAddr=10.135.34.97)                                               

Oct 22 2013 09:59:30 HUAWEI %%01HTTP/3/LOGINFAIL(s)[17]:User login failed. (User

Name=admin, IPAddr=10.135.34.97)                                               

Oct 22 2013 09:09:49 HUAWEI %%01SHELL/4/LOGINFAILED(s)[18]:Failed to login. (Ip=

10.135.18.80, UserName=**, Times=1, AccessType=TELNET)                         

Oct 21 2013 19:11:26 HUAWEI %%01SHELL/4/LOGINFAILED(s)[19]:Failed to login. (Ip=

10.135.13.11, UserName=**, Times=1, AccessType=TELNET)                         

Oct 21 2013 16:31:05 HUAWEI %%01SHELL/4/LOGINFAILED(s)[20]:Failed to login. (Ip=

10.135.18.58, UserName=**, Times=2, AccessType=TELNET)                         

Oct 21 2013 16:30:58 HUAWEI %%01SHELL/4/LOGINFAILED(s)[21]:Failed to login. (Ip=

10.135.18.58, UserName=**, Times=1, AccessType=TELNET)                         

Oct 21 2013 16:30:41 HUAWEI %%01SHELL/4/LOGINFAILED(s)[22]:Failed to login. (Ip=

10.135.26.211, UserName=**, Times=1, AccessType=TELNET)                        

Oct 21 2013 15:25:47 HUAWEI %%01SHELL/4/LOGINFAILED(s)[23]:Failed to login. (Ip=

10.135.26.211, UserName=**, Times=2, AccessType=TELNET)                        

  ---- More ----
表1 display logbuffer命令输出信息描述
项目描述
Logging buffer configuration and contentsLog信息向Log缓冲区的发送功能的使能状态。enabled:使能disabled:未使能
Allowed max buffer sizeLog缓冲区的最大容量。
Actual buffer sizeLog缓冲区的实际容量。
Channel numberLog信息输出到Log缓冲区所使用的信息通道号。
Channel nameLog信息输出到Log缓冲区所使用的信息通道号对应的信息通道名称。
Dropped messages丢弃的信息数量。
Overwritten messages覆盖的信息数量。
Current messages当前的信息数量。

2、查看概要的日志缓冲区的日志信息。

<HUAWEI> display logbuffer summary

      SLOT EMERG ALERT  CRIT ERROR  WARN NOTIF  INFO DEBUG                     

         8     0     0     0    36   476     0     0     0                     

         0     0     0     0    36   476     0     0     0                     

         2     0     0     0     0     0     0     0     0                     

         3     0     0     0     0     0     0     0     0                     

         4     0     0     0     0     0     0     0     0                     

         5     0     0     0     0     0     0     0     0                     

         6     0     0     0     0     0     0     0     0
表2 display logbuffer summary命令输出信息描述
项目描述
SLOT产生日志信息的槽位号。
EMERG产生的严重等级为emergencies的日志的条数。
ALERT产生的严重等级为alert的日志的条数。
CRIT产生的严重等级为critical的日志的条数。
ERROR产生的严重等级为error的日志的条数。
WARN产生的严重等级为warning的日志的条数。
NOTIF产生的严重等级为notification的日志的条数。
INFO产生的严重等级为informational的日志的条数。
DEBUG产生的严重等级为debugging的日志的条数。

22、查看日志文件信息

<HUAWEI> display logfile logfile/log.log

################################################################               

#     This logfile is generated at slot 8                                      

################################################################               

Jun 12 2012 09:37:08 HUAWEI %%01ALML/4/PUBLISH_EVENT(l)[40674]:Publish event. (

Slot=6,Eventid=BOARD_RESET)                                              

Jun 12 2012 09:37:08 HUAWEI %%01LOAD/4/LOAD_RESULT(l)[40675]:Load result is "Bo

ard[6] is reset or power off or pulled out when loading ".               

Jun 12 2012 09:37:09 HUAWEI ENTMIB/4/TRAP:OID 1.3.6.1.2.1.47.2.0.1 Entity MIB c

hange.                                                                                                                                    

Jun 12 2012 09:38:47 HUAWEI %%01LOAD/4/LOAD_RESULT(l)[40680]:Load result is "                                                                           

Software (include bootload) has been downloaded to LPU board on slot 6!        

The LPU is being reset to finish startup download                              

Total 1 file(s) download to 6 LPU.                                             

Download file(ID/Index):2010000/6    ".                                        

Jun 12 2012 09:38:47 HUAWEI %%01ALML/4/ENTRESET(l)[40681]:LPU frame[1] board[6]

is reset, The reason is: Reset for load.                                

Jun 12 2012 09:38:47 HUAWEI %%01ALML/4/PUBLISH_EVENT(l)[40682]:Publish event. (

Slot=6,Eventid=BOARD_RESET)

23、查看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 : 6248                                                     

Current messages : 256                                                         

#Sep 19 2012 04:38:03+08:00 HUAWEI DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011

.5.25.191.3.1 configurations have been changed. The current change number is 8,

the change loop count is 0, and the maximum number of records is 4095.         

#Sep 19 2012 04:37:39+08:00 HUAWEI LINE/5/VTYUSERLOGIN:OID 1.3.6.1.4.1.2011.5.2

5.207.2.2 A user login. (UserIndex=34, UserName=VTY, UserIP=10.135.18.114, UserC

hannel=VTY0)                                                                                                                                   

#Sep 19 2012 02:50:24+08:00 HUAWEI LINE/5/VTYUSERLOGOUT:OID 1.3.6.1.4.1.2011.5.

25.207.2.4 A user logout. (UserIndex=35, UserName=VTY, UserIP=10.135.18.164, Use

rChannel=VTY1)                                                                 

#Sep 19 2012 02:40:19+08:00 HUAWEI LINE/5/VTYUSERLOGIN:OID 1.3.6.1.4.1.2011.5.2

5.207.2.2 A user login. (UserIndex=35, UserName=VTY, UserIP=10.135.18.164, UserC

hannel=VTY1)                                                                   

#Sep 19 2012 02:35:23+08:00 HUAWEI LINE/5/VTYUSERLOGIN:OID 1.3.6.1.4.1.2011.5.2

5.207.2.2 A user login. (UserIndex=34, UserName=VTY, UserIP=10.135.18.57, UserCh

annel=VTY0)                                                                     

……
表1 display trapbuffer命令输出信息描述
项目描述
Trapping buffer configuration and contentsTrap信息向Trap缓冲区的发送功能的使能状态。enabled:使能disabled:未使能
Allowed max buffer sizeTrap缓冲区的最大容量。
Actual buffer sizeTrap缓冲区的实际容量。
Channel numberTrap信息输出到Trap缓冲区所使用的信息通道号。
Channel nameTrap信息输出到Trap缓冲区所使用的信息通道号对应的信息通道名称。
Dropped messages丢弃信息的数量。
Overwritten messages覆盖信息的数量。
Current messages当前信息的数量。
© 版权声明
THE END
喜欢就支持一下吧!
点赞355 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容