Displaying and maintaining snmp – H3C Technologies H3C WX5500E Series Access Controllers User Manual

Page 70

Advertising
background image

62

Step Command

Remarks

2.

Configure a target host.

snmp-agent target-host trap
address udp-domain ip-address
[ udp-port port-number ] [ dscp

dscp-value ] params securityname

security-string [ v1 | v2c | v3
[ authentication | privacy ] ]

N/A

3.

Configure the source address

for traps.

snmp-agent trap source
interface-type interface-number

Optional.
By default, SNMP chooses the IP

address of an interface to be the
source IP address of traps.

4.

Extend the standard
linkUp/linkDown traps.

snmp-agent trap if-mib link
extended

Optional.
By default, standard
linkUp/linkDown traps are used.
Extended linkUp/linkDown traps
add interface description and

interface type to standard
linkUp/linkDown traps. If the NMS

does not support extended SNMP

messages, use standard
linkUp/linkDown traps.

5.

Configure the trap queue size. snmp-agent trap queue-size size

Optional.
The default trap queue size is 100.
When the trap queue is full, the

oldest traps are automatically
deleted for new traps.

6.

Configure the trap holding
time.

snmp-agent trap life seconds

Optional.
The default setting is 120 seconds.
A trap is deleted when its holding
time expires.

Displaying and maintaining SNMP

Task

Command

Remarks

Display SNMP agent system
information, including the
contact, physical location, and

SNMP version.

display snmp-agent sys-info [ contact | location
| version ]* [ | { begin | exclude | include }

regular-expression ]

Available in any view.

Display SNMP agent statistics.

display snmp-agent statistics [ | { begin |
exclude | include } regular-expression ]

Available in any view.

Display the local engine ID.

display snmp-agent local-engineid [ | { begin |
exclude | include } regular-expression ]

Available in any view.

Display SNMP group
information.

display snmp-agent group [ group-name ] [ |
{ begin | exclude | include } regular-expression ] Available in any view.

Display basic information
about the trap queue.

display snmp-agent trap queue [ | { begin |
exclude | include } regular-expression ]

Available in any view.

Advertising