To do… Use the command… RemarksEnable the switch to sendtraps to NMSsnmp-agent trap enable [ configuration |flash | standard [ authentication | coldstart| linkdown | linkup | warmstart ]* | system ]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.Follow these steps to configure extended trap function:To do… Use the command… RemarksEnter system view system-view —Configure the extended trapfunctionsnmp-agent trap ifmib linkextendedOptionalBy default, the linkUp/linkDowntrap adopts the standard formatdefined in IF-MIB. For details, referto RFC 1213.Enabling Logging for Network ManagementFollow these steps to enable logging for network management:To do… Use the command… RemarksEnter system view system-view —52-5