
41
Default level
1: Monitor level
Parameters
reverse
: Displays trap entries chronologically, with the most recent entry at the top. If this keyword is not
specified, trap entries will be displayed chronologically, with the oldest entry at the top.
size
buffersize
: Displays the specified number of the latest trap messages in a trap buffer, where
buffersize
represents the number of the latest trap messages in a trap buffer, which ranges from 1 to
1,024.
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.
include
: Displays all lines that match the specified regular expression.
regular-expression
: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the
display trapbuffer
command to display the state and the trap information recorded.
Absence of the
size
buffersize
argument indicates that all trap information is displayed.
Examples
# Display the state of the trap buffer and the trap information recorded. (The output of this command
depends on the operations executed on the device.)
<Sysname> 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 : 9
#Jan 7 08:03:27:421 2011 Sysname IFNET/4/INTERFACE UPDOWN:
Trap 1.3.6.1.6.3.1.1.5.4<linkUp>: Interface 983041 is Up, ifAdminStatus is 1,
ifOperStatus is 1
Table 15
Output description
Field Description
Trapping buffer configuration and contents
Indicates the current state of the trap buffer and its contents,
which could be enabled or disabled.
Allowed max buffer size
The maximum buffer size allowed
Actual buffer size
The actual buffer size
Channel number
The channel number of the trap buffer, which defaults to 3.
channel name
The channel name of the trap buffer, which defaults to
trapbuffer.