744 CHAPTER 68: SNMP CONFIGURATIONn The snmp-agent trap ifmib command is used to privately extend alinkup/linkdown trap packet and add two objects “ifDescr” (interface description)and “ifType” (interface type) to a trap packet. The two objects facilitate yourunderstanding and failure port location.Displaying SNMP After the above configuration is completed, execute the display command in anyview to view the running status of SNMP, and to verify the configuration.Set Trap target host address snmp-agent target-hosttrap addressudp-domain { ip-address }[ udp-port port-number ]params securitynamesecurity-string [ v1 | v2c |v3 {authentication |privacy } ]RequiredSet the source address to send Trap packets snmp-agent trap sourceinterface-typeinterface-numberOptionalSet the information queue length of Trappacket sent to destination hostsnmp-agent trapqueue-size sizeOptionalThe defaultvalue is 100.Set aging time for Trap packets snmp-agent trap lifesecondsOptionalThe defaultaging timefor Trappackets is120 seconds.Extend the bound variables in alinkup/linkdown trap packet, that is, add twoobjects “ifDescr” (interface description) and“ifType” (interface type)snmp-agent trap ifmib linkextendedOptionalBy default,the boundvariables in alinkup/linkdown packetare as thestandardformatdefined inIF-MIB.Table 597 Configure TrapOperation Command Description