< Home

display trapbuffer

Function

The display trapbuffer command displays information recorded in the trap buffer.

Format

display trapbuffer [ size value | slot slot-id | module module-name | level { severity | level } ] *

display trapbuffer order by module

Parameters

Parameter Description Value

size value

Displays the specified number of traps recently generated in the trap buffer. If this parameter is not specified, all traps are displayed.

The value is an integer that ranges from 1 to 1024.

module module-name

Displays traps of a specified module in the trap buffer.

Enumerated type. The value depends on the registered module.

slot slot-id

Displays traps in a specified slot.

The value must be set according to the device configuration.

level { severity | level }

Displays traps of specified severity name or ID.
  • severity specifies the severity ID.

  • level specifies the severity name.

The value of severity is an integer that ranges from 0 to 7.
  • 0: Emergencies

  • 1: Alert

  • 2: Critical

  • 3: Error

  • 4: Warning

  • 5: Notification

  • 6: Informational

  • 7: Debugging

The value of level is the enumerated type:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

order by module

Displays alarms in the order of the modules they belong to.

NOTE:
  • Alarms in the alarm buffer are classified and displayed by the modules they belong to.
  • Modules are displayed by the time that the module's first alarm is generated in the alarm buffer in descending order.
  • Alarms in each module are displayed by the time they are generated in descending order.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display trapbuffer command displays the information of recent traps. If the number of traps in the trap buffer is smaller than value, traps of the actual number are displayed.

Example

# Display all traps in the trap buffer.

<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 04:35:48+08:00 HUAWEI LINE/5/VTYUSERLOGOUT:OID 1.3.6.1.4.1.2011.5.
25.207.2.4 A user logout. (UserIndex=34, UserName=VTY, UserIP=10.135.18.143, Use
rChannel=VTY0)                                                                  
#Sep 19 2012 04:20:54+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.143, UserC
hannel=VTY0)                                                                    
#Sep 19 2012 04:08:03+08:00 HUAWEI LINE/5/VTYUSERLOGOUT:OID 1.3.6.1.4.1.2011.5.
25.207.2.4 A user logout. (UserIndex=34, UserName=VTY, UserIP=10.135.18.143, Use
rChannel=VTY0)                                                                  
#Sep 19 2012 03:54:27+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.143, UserC
hannel=VTY0)                                                                    
#Sep 19 2012 03:54:18+08:00 HUAWEI LINE/5/VTYUSERLOGINFAIL:OID 1.3.6.1.4.1.2011
.5.25.207.2.3 A user login fail. (UserIndex=34, UserName=VTY, UserIP=10.135.18.1
43, UserChannel=VTY0)                                                           
#Sep 19 2012 02:51:03+08:00 HUAWEI LINE/5/VTYUSERLOGOUT:OID 1.3.6.1.4.1.2011.5.
25.207.2.4 A user logout. (UserIndex=34, UserName=VTY, UserIP=10.135.18.57, User
Channel=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 alarms in the order of the modules they belong to.
<HUAWEI> display trapbuffer order by module
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 : 79

#Nov 11 2010 11:51:24 HUAWEI LINE/5/VTYUSERLOGIN:OID 1.3.6.1.4.1.2011.5.25.207.2.2 A user login. (UserIndex=36, UserName=**, Us
erIP=10.135.19.152, UserChannel=VTY2)                                                                                               
#Nov 10 2010 18:54:06 HUAWEI LINE/5/VTYUSERLOGIN:OID 1.3.6.1.4.1.2011.5.25.207.2.2 A user login. (UserIndex=35, UserName=**, Us
erIP=10.135.186.212, UserChannel=VTY1)                                                                                              
#Nov 10 2010 12:07:44 HUAWEI LINE/5/VTYUSERLOGIN:OID 1.3.6.1.4.1.2011.5.25.207.2.2 A user login. (UserIndex=34, UserName=**, Us
erIP=10.135.19.157, UserChannel=VTY0)                                                                                               
#Nov 10 2010 11:19:23 HUAWEI LINE/5/VTYUSERLOGOUT:OID 1.3.6.1.4.1.2011.5.25.207.2.4 A user logout. (UserIndex=34, UserName=**, 
UserIP=10.134.27.157, UserChannel=VTY0)                                                                                             
#Nov 10 2010 10:48:57 HUAWEI LINE/5/VTYUSERLOGIN:OID 1.3.6.1.4.1.2011.5.25.207.2.2 A user login. (UserIndex=34, UserName=**, Us
erIP=10.134.27.157, UserChannel=VTY0)                                                                                               
#Nov 10 2010 10:48:48 HUAWEI LINE/5/VTYUSERLOGOUT:OID 1.3.6.1.4.1.2011.5.25.207.2.4 A user logout. (UserIndex=34, UserName=**, 
UserIP=10.134.27.157, UserChannel=VTY0)                                                                                             
#Nov 10 2010 10:38:23 HUAWEI LINE/5/VTYUSERLOGIN:OID 1.3.6.1.4.1.2011.5.25.207.2.2 A user login. (UserIndex=34, UserName=**, Us
erIP=10.134.27.157, UserChannel=VTY0)
Table 1 Description of the display trapbuffer command output

Item

Description

Trapping buffer configuration and contents

Whether the device is enabled to output traps to the trap buffer:
  • enabled
  • disabled

To enable the device to output traps to the trap buffer, run the info-center trapbuffer command.

Allowed max buffer size

Maximum size of the trap buffer.

Actual buffer size

Actual size of the trap buffer.

To set the size of the trap buffer, run the info-center trapbuffer size command.

Channel number

Number of the channel used to send traps to the trap buffer.

To set the channel number, run the info-center channel command.

Channel name

Name of the channel used to send traps to the trap buffer.

To set the channel name, run the info-center channel name command.

Dropped messages

Number of dropped messages.

Overwritten messages

Number of overwritten messages.

Current messages

Number of current messages.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >