Usage Scenario
To view traps in the trap buffer, run the display trapbuffer command.
Precautions
If there are a large number of traps on the device, running the display trapbuffer command to display specified trap amount is recommended. Otherwise, the following problems may occur due to excessive traps:
The actual command output varies according to the device. The command output here is only an example.
<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 : Current messages : 187 Apr 23 2020 19:20:32 HUAWEI %%01STANDARD/6/linkup:CID=0x807a271c-OID=1.3.6.1.6.3.1.1.5.4;The interface status changes. (ifName=Ethernet0/1/1, AdminStatus=UP, OperStatus=UP, Reason=Interface physical link is Up.)
<HUAWEI> display trapbuffer size 3 Trapping buffer configuration and contents : enabled Allowed max buffer size : 1024 Channel number : 3 , Channel name : trapbuffer Actual buffer size : 256 Dropped messages : 0 Overwritten messages : 0 Current messages : 187 Apr 23 2020 19:20:32 HUAWEI %%01STANDARD/6/linkup:CID=0x807a271c-OID=1.3.6.1.6.3.1.1.5.4;The interface status changes. (ifName=Ethernet0/1/1, AdminStatus=UP, OperStatus=UP, Reason=Interface physical link is Up.) Apr 23 2020 19:20:32 HUAWEI %%01STANDARD/6/linkup:CID=0x807a271c-OID=1.3.6.1.6.3.1.1.5.4;The interface status changes. (ifName=Ethernet0/1/1.125, AdminStatus=UP, OperStatus=UP, Reason=Interface physical link is Up.) Apr 23 2020 19:20:32 HUAWEI %%01STANDARD/6/linkup:CID=0x807a271c-OID=1.3.6.1.6.3.1.1.5.4;The interface status changes. (ifName=Ethernet0/1/1.124, AdminStatus=UP, OperStatus=UP, Reason=Interface physical link is Up.)
Item | Description |
---|---|
Trapping buffer configuration and contents | Status of the trap buffer:
|
Allowed max buffer size | Maximum size of the trap buffer. |
Actual buffer size | Used size of the trap buffer. |
Channel number | Channel number. |
Channel name | Channel name. |
Dropped messages | Number of dropped messages. |
Overwritten messages | Number of overwritten messages. |
Current messages | Number of existing messages. |