1-6Configuring Trap-Related FunctionsConfiguring Basic Trap Functionstraps refer to those sent by managed devices to the NMS without request. They are used to report someurgent and important events (for example, the rebooting of managed devices).Note that basic SNMP configuration is performed before you configure basic trap function.Follow these steps to configure basic trap function:To do… Use the command… RemarksEnter system view system-view —Enable the switch to sendtraps to NMSsnmp-agent trap enable [ bgp[ backwardtransition | established ] * |configuration | flash | ospf [ process-id ][ ospf-trap-list ] | standard [ authentication |coldstart | linkdown | linkup | warmstart ]* |system | vrrp [ authfailure | newmaster ] ]Enter port view orinterface view interface interface-type interface-numberEnable the portor interface tosend trapsenable snmp trap updownEnablethe port tosend trapsQuit to systemview quitOptionalBy default, a portis enabled to sendall types of traps.Set the destination for trapssnmp-agent target-host trap addressudp-domain { ip-address } [ udp-portport-number ] params securitynamesecurity-string [ v1 | v2c | v3 [ authentication| privacy ] ]RequiredSet the source address fortrapssnmp-agent trap source interface-typeinterface-number OptionalSet the size of the queue usedto hold the traps to be sent tothe destination hostsnmp-agent trap queue-size size OptionalThe default is 100.Set the aging time for traps snmp-agent trap life secondsOptional120 seconds bydefault.Configuring Extended Trap FunctionThe extended trap function refers to adding “interface description” and “interface type” into thelinkUp/linkDown trap. When receiving this extended trap, NMS can immediately determine whichinterface on the device fails according to the interface description and type.