104
To do… Use the command… Remarks
4. Extend the standard
linkUp/linkDown traps
defined in RFC.
snmp-agent trap if-mib link
extended
Optional.
Standard linkUp/linkDown traps
defined in RFC are used by
default.
5. Configure the size of the trap
send queue.
snmp-agent trap queue-size size
Optional.
100 by default.
6. Configure the holding time of
the traps in the queue.
snmp-agent trap life seconds
Optional.
120 seconds by default.
NOTE:
• An extended linkUp/linkDown trap is the standard linkUp/linkDown trap—defined in RFC—
appended with interface description and interface type information. If the extended messa
es are not
supported on the NMS, disable this function to let the device send standard linkUp/linkDown traps.
• If the sending queue of traps is full, the system automatically deletes some oldest traps to receive new
traps.
• The system automatically deletes the traps whose holding time expires.
Displaying and maintaining SNMP
To do… Use the command… Remarks
Display SNMP agent system
information, including the contact,
location, and version of the
SNMP
display snmp-agent sys-info [ contact | location |
version ]* [ | { begin | exclude | include } regular-
expression ]
Display SNMP agent statistics
display snmp-agent statistics [ | { begin | exclude |
include } regular-expression ]
Display the SNMP agent engine
ID
display snmp-agent local-engineid [ | { begin |
exclude | include } regular-expression ]
Display SNMP agent group
information
display snmp-agent group [ group-name ] [ | { begin |
exclude | include } regular-expression ]
Display basic information of the
trap queue
display snmp-agent trap queue [ | { begin | exclude |
include } regular-expression ]
Display the modules that can send
traps and whether their trap
sending is enabled or not
display snmp-agent trap-list [ | { begin | exclude |
include } regular-expression ]
Display SNMPv3 agent user
information
display snmp-agent usm-user [ engineid engineid |
username user-name | group group-name ] * [ |
{ begin | exclude | include } regular-expression ]
Display SNMPv1 or v2c agent
community information
display snmp-agent community [ read | write ] [ |
{ begin | exclude | include } regular-expression ]
Display MIB view information for
an SNMP agent
display snmp-agent mib-view [ exclude | include |
viewname view-name ] [ | { begin | exclude |
include } regular-expression ]
Available in
any view