1-7To 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:To do… Use the command… RemarksEnter system view system-view —Configure target host attributefor trapssnmp-agent target-host trapaddress udp-domainip-address [ udp-portport-number ] paramssecurityname security-string[ v1 | v2c | v3 [ authentication |privacy ] ]OptionalTo send the traps to the NMS,this command is required, andyou must specify ip-address asthe IP address of the NMS.Configure the source addressfor trapssnmp-agent trap sourceinterface-type interface-number OptionalExtend the standardlinkUp/linkDown traps definedin RFCsnmp-agent trap if-mib linkextendedOptionalStandard linkUp/linkDown trapsdefined in RFC are used bydefault.Configure the size of the trapsend queuesnmp-agent trap queue-sizesizeOptional100 by defaultConfigure the holding time ofthe traps in the queue snmp-agent trap life seconds Optional120 seconds by default