华为信息中心配置教程(三)
首页 > HuaWei > 基础配置   作者:浙江思唯网络  2016年11月2日 12:23 星期三  字号:   评论:0 条
时间:2016-11-2 12:23   评论:0 条 

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

华为信息中心配置教程(二):http://www.023wg.com/jcpz/371.html

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 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

已收到的信息数,用于统计发往信息中心模块的信息数。

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 contents

Log信息向Log缓冲区的发送功能的使能状态。

enabled:使能

disabled:未使能

Allowed max buffer size

Log缓冲区的最大容量。

Actual buffer size

Log缓冲区的实际容量。

Channel number

Log信息输出到Log缓冲区所使用的信息通道号。

Channel name

Log信息输出到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)                                                                     

……

display trapbuffer命令输出信息描述

项目

描述

Trapping buffer configuration and contents

Trap信息向Trap缓冲区的发送功能的使能状态。

enabled:使能

disabled:未使能

Allowed max buffer size

Trap缓冲区的最大容量。

Actual buffer size

Trap缓冲区的实际容量。

Channel number

Trap信息输出到Trap缓冲区所使用的信息通道号。

Channel name

Trap信息输出到Trap缓冲区所使用的信息通道号对应的信息通道名称。

Dropped messages

丢弃信息的数量。

Overwritten messages

覆盖信息的数量。

Current messages

当前信息的数量。

 
华为信息中心理论知识介绍:http://www.023wg.com/jcpz/366.html

 您阅读这篇文章共花了: 
二维码加载中...
技术交流:欢迎在本文下方留言或加入QQ群:859273036 互相学习。     
本文地址:http://www.023wg.com/jcpz/372.html
版权声明:若无注明,本文皆为“Swiers思唯网络博客”原创,转载请保留文章出处。

返回顶部    首页   
版权所有:Swiers思唯网络博客    浙江思唯网络