beautypg.com

Configuring the snmp agent to send traps to a host – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 45

background image

36

After you globally enable a trap function for a module, whether the module generates traps also depends

on the configuration of the module. For more information, see the sections for each module.
To enable the trap function:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable traps globally.

snmp-agent trap enable [ configuration | flash |
standard [ authentication | coldstart | linkdown |

linkup | warmstart ] * | system | wlan ]

Optional.
By default, all the traps
are enabled.

3.

Enter interface view.

interface interface-type interface-number N/A

4.

Enable link state
traps.

enable snmp trap updown

Optional.
By default, the link state

traps are enabled.

Configuring the SNMP agent to send traps to a host

The SNMP module buffers the traps received from a module in a trap queue. You can set the size of the

queue, the duration that the queue holds a trap, and trap target (destination) hosts, typically the NMS.
To successfully send traps, you must also perform the following tasks:

Complete the basic SNMP settings and check that they are the same as on the NMS. If SNMPv1 or
SNMPv2c is used, you must configure a community name. If SNMPv3 is used, you must configure

an SNMPv3 user and MIB view.

The device and the NMS can reach each other.

To configure the SNMP agent to send traps to a host:

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

3.

Configure the source
address for traps.

snmp-agent trap source interface-type
interface-number

Optional.

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.

This manual is related to the following products: