1-7To do… Use the command… RemarksEnable the trap functiongloballysnmp-agent trap enable[ acfp [ client | policy | rule |server ] | bfd | bgp |configuration | flash | mpls |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 ] ]OptionalBy default, only the trapfunction of the voice module isdisabled; and the trap functionof other modules is enabled.Enter interface view interface interface-typeinterface-number —Enable the trap function ofinterface state changes enable snmp trap updown OptionalEnabled by default.To enable an interface to send linkUp/linkDown traps when its state changes, you need to enable thetrap function of interface state changes on an interface and globally. Use the enable snmp trapupdown 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 ParametersConfiguration prerequisitesTo send traps to the NMS, you need to make the following preparations:z Basic SNMP configurations have been completed. These configurations include versionconfiguration: community name is needed when SNMPv1 and v2c are adopted; username and MIBview are needed if SNMPv3 is adopted.z A connection has been established between the device and the NMS, and they can operate eachother.Configuration procedureAfter traps are sent to the SNMP module, the SNMP module saves the traps in the trap queue. You canset the size of the queue and the holding time of the traps in the queue, and you can also send the trapsto the specified destination host (usually the NMS).Follow these steps to configure trap parameters: