1-6To do… Use the command… RemarksEnter system view system-view —Enable the device to sendTrap messages to NMSsnmp-agent trap enable [ configuration |flash | standard [ authentication | coldstart| linkdown | linkup | warmstart ]* | system | ]Enter port viewor interface view interface interface-type interface-numberEnable the portor interface tosend Trapmessagesenable snmp trap updownEnablethe port tosend TrapmessagesQuit to systemview quitOptionalBy default, a portis enabled to sendall types of Traps.Set the destination for Trapmessagessnmp-agent target-host trap addressudp-domain { ip-address } [ udp-portport-number ] params securitynamesecurity-string [ v1 | v2c | v3 {authentication| privacy } ]RequiredSet the source address forTrap messagessnmp-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 Trapmessages snmp-agent trap life secondsOptional120 seconds bydefault.Configuring Extended TrapThe extended Trap includes the following.z “Interface description” and “interface type” are added into the linkUp/linkDown Trap message.When receiving this extended Trap message, NMS can immediately determine which interface onthe device fails according to the interface description and type.z In all Trap messages sent from the information center to the log server, a MIB object name is addedafter the OID field of the MIB object. The name is for your better understanding of the MIB object.Follow these steps to configure extended Trap:To do… Use the command… RemarksEnter system view system-view —Configure extended Trap snmp-agent trap ifmib linkextendedOptionalBy default, the linkUp/linkDownTrap message adopts thestandard format defined inIF-MIB. For details, refer toRFC 1213.