Snmp-Agent Trap Enable - HP E4510-48G Command Reference Manual

4510g series
Table of Contents

Advertisement

snmp-agent trap enable

Syntax
snmp-agent trap enable [ configuration | flash | standard [ authentication | coldstart | linkdown |
linkup | warmstart ]* | system ]
undo snmp-agent trap enable [ configuration | flash | standard [ authentication | coldstart |
linkdown | linkup | warmstart ]* | system ]
View
System view
Default Level
3: Manage level
Parameters
configuration: Enables the sending of configuration traps.
flash: Enables the sending of FLASH-related traps.
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 3Com-SYS-MAN-MIB (a private MIB) traps.
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 of other modules is enabled.
Only after the trap function is enabled can each module generate corresponding traps.
Note that:
To enable an interface to generate Linkup/Linkdown traps when its state changes, you need to enable
the linkUp/linkDown trap function on the interface and globally. Use the enable snmp trap updown
command to enable this function on an interface, and use the snmp-agent trap enable [ standard
[ linkdown | linkup ] * ] command to enable this function globally.
Related commands: snmp-agent target-host, 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
10-22

Advertisement

Table of Contents
loading

Table of Contents