beautypg.com

Displaying and maintaining snmp – H3C Technologies H3C SR8800 User Manual

Page 112

background image

100

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Configure a target host.

snmp-agent target-host trap address
udp-domain { ip-address | ipv6
ipv6-address } [ udp-port port-number ]

[ vpn-instance vpn-instance-name ]

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

Optional.
The vpn-instance keyword is
applicable in an IPv4 network.
To send the traps to the NMS, this

command is required, and you
must specify ip-address as the IP

address of the NMS.

3.

Configure the source

address for traps.

snmp-agent trap source interface-type
{ interface-number |

interface-number.subnumber }

Optional.

4.

Extend the standard

linkUp/linkDown traps.

snmp-agent trap if-mib link extended

Optional.
By default, standard
linkUp/linkDown traps are used.

5.

Configure the trap

queue size.

snmp-agent trap queue-size size

Optional.
The default trap queue size is 100.

6.

Configure the trap

holding time.

snmp-agent trap life seconds

Optional.
120 seconds by default.

NOTE:

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.

When the trap queue is full, the oldest traps are automatically deleted for new traps.

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