EasyManua.ls Logo

HP 5820X Switch - Configuring Trap Parameters

HP 5820X Switch
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
103
To do… Use the command… Remarks
1. Enter interface view.
interface interface-type interface-number
2. Enable the trap
function of interface
state changes.
enable snmp trap updown
Optional.
Enabled by default.
CAUTION:
To enable an interface to send linkUp/linkDown traps when its state changes, enable the trap
function on an interface and globally. To enable the trap function on an interface, use the enable
snmp trap updown command. To enable this function globally, use the snmp-agent trap enable
[ standard [ linkdown | linkup ] * ] command.
To make each module generate corresponding traps, enable the trap function with the snmp-agent
trap enable command. The generation of traps by a module may also depend on the configuration
of the module. For more information, see related descriptions of the modules.
Configuring trap parameters
Configuration prerequisites
Before you configure trap parameters:
Basic SNMP configurations are completed. These configurations include version configuration.
Community name is needed when SNMPv1 and v2c are adopted; username and MIB view are
needed if SNMPv3 is adopted. Configuration of these parameters must be the same with that on the
NMS.
A connection has been established between the device and the NMS, and they can operate each
other.
Configuration procedure
When traps are sent to the SNMP module, the SNMP module saves the traps in the trap queue. You can
set the size of the queue and the holding time of the traps in the queue, and send the traps to the
specified destination host, usually the NMS.
To configure trap parameters:
To do… Use the command… Remarks
1. Enter system view.
system-view
2. Configure target host attribute
for traps.
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
Optional.

Table of Contents

Related product manuals