R3204P16-HP Load Balancing Module System Maintenance Command Reference-6PW101
63
standard: Standard traps.
• authentication: Enables the sending of authentication failure traps in the event of authentication
failure.
• coldstart: Sends coldstart traps when the device restarts.
• linkdown: Sends linkdown traps when the port is in a linkdown status. It should be configured
globally.
• linkup: Sends linkup traps when the port is in a linkup status. It should be configured globally.
• warmstart: Sends warmstart traps when the SNMP restarts.
system: Sends HP-SYS-MAN-MIB (a private MIB) traps.
vrrp: Enables traps for the VRRP module.
• authfailure: VRRP authentication failure traps.
• newmaster: VRRP newmaster traps, which are sent when the device becomes the master.
Description
Use the snmp-agent trap enable command to enable the trap function globally.
Use the undo snmp-agent trap enable command to disable the trap function globally.
By default, the trap function is enabled.
Only after the trap function is enabled can each module generate corresponding traps.
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.
To enable an interface to generate Linkup/Linkdown traps when its state changes, enable the
linkUp/linkDown trap function on the interface and globally. To enable this 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.
Related commands: snmp-agent target-host and enable snmp trap updown.
Examples
# Enable the device to send SNMP authentication failure packets to 10.1.1.1, using the community name
public.
<Sysname> system-view
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname
public
[Sysname] snmp-agent trap enable standard authentication
snmp-agent trap if-mib link extended
Syntax
snmp-agent trap if-mib link extended
undo snmp-agent trap if-mib link extended
View
System view