Displaying and maintaining snmp – H3C Technologies H3C MSR 50 User Manual

Page 21

Advertising
background image

Step Command

Remarks

23.

Enter system view.

system-view

N/A

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 ] ]

If the trap destination is a host. The
ip-address argument must be the IP

address of the host.

24.

Configure a target host.

The vpn-instance keyword is

applicable in an IPv4 network.

Optional.

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

interface-number.subnumber }

25.

Configure the source address
for traps.

By default, SNMP chooses the IP
address of an interface to be the

source IP address of traps.

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.

26.

Extend the standard

linkUp/linkDown traps.

snmp-agent trap if-mib link
extended

Optional.
The default trap queue size is 100.

27.

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

When the trap queue is full, the
oldest traps are automatically

deleted for new traps.

Optional.

28.

Configure the trap holding

time.

The default setting is 120 seconds.

snmp-agent trap life 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 [ | { begin |
exclude | include } regular-expression ]

Display SNMP agent statistics.

Available in any view.

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

Display the local engine ID.

Available in any view.

8

Advertising