R3166-R3206-HP High-End Firewalls System Management and Maintenance Configuration Guide-6PW101

122
occupy large device memory affect device performance, it is recommended not to enable the trap
function for all modules but for the specific modules as needed.
With the trap function enabled on a module, the traps generated by the module will be sent to the
information center. The information center has seven information output destinations. By default, traps of
all modules are allowed to be output to the console, monitor terminal (monitor), loghost, and logfile;
traps of all modules and with level equal to or higher than warnings are allowed to be output to the
trapbuffer and SNMP module (snmpagent); and traps cannot be sent to the logbuffer. You can set
parameters for the information center based on the levels of the traps generated by each module, and
thus decide the output rules of traps (that is, whether traps are allowed to be output and the output
destinations). For more information about information center, see the chapter “Information center
configuration.
Follow these steps to enable the trap function:
To do… Use the command…
Remarks
Enter system view system-view
Enable the trap function
globally
snmp-agent trap enable [ 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.
Enter interface view interface interface-type interface-number
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 chan
g
es, you need to enable the trap
function of interface state changes on an interface and globally. Use the enable snmp trap updown
command to enable the trap function on an interface, and use the snmp-agent trap enable [ standard
[ linkdown | linkup ] * ] command to enable this function globally.
Configuring trap parameters
Configuration prerequisites
To send traps to the NMS, you need to 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.
A connection has been established between the device and the NMS, and they can operate each
other.