Configuring trap parameters, Configuration prerequisites – H3C Technologies H3C SecPath F1000-E User Manual
Page 158
8
To do…
Use the command…
Remarks
Enable the trap function globally
snmp-agent trap enable bfd
| bgp | configuration | flash |
ospf [ process-id ] [ ifauthfail |
ifcfgerror | ifrxbadpkt |
ifstatechange | iftxretransmit
| lsdbapproachoverflow |
lsdboverflow | maxagelsa |
nbrstatechange |
originatelsa | vifcfgerror |
virifauthfail | virifrxbadpkt |
virifstatechange |
viriftxretransmit |
virnbrstatechange ] * |
standard [ authentication |
coldstart | linkdown | linkup
| warmstart ] * | system |
vrrp [ authfailure |
newmaster ]
Optional
By default, only the trap function of
the voice module is disabled; and
the trap function of other modules
is enabled.
The bfd keyword is available only
on the H3C SecPath F5000-A5
firewall.
Enter interface view
interface interface-type
interface-number
Required
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
of interface state changes 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
To send traps to the NMS, make the following preparations:
•
Basic SNMP configurations have been 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.