Configuring Trap 743Configuring Trap Trap is the information that the managed device initiatively sends to the NMSwithout request. Trap is used to report some urgent and important events (e.g.,the managed device is rebooted).ConfigurationPrerequisitesComplete SNMP basic configuration.Configuration TasksAdd a new user for an SNMPgroupsnmp-agent usm-user v3user-name group-name[ authentication-mode { md5 | sha } auth-password[ privacy-mode des56priv-password ] ] [ aclacl-number ]RequiredSet the size of SNMP packetthat the Agent cansend/receivesnmp-agent packetmax-size byte-countOptionalBy default, it is 2,000 bytes.Set the device switch fabric ID snmp-agent local-switchfabricid switch fabricidOptionalBy default, the device switchfabric ID is “EnterpriseNumber + deviceinformation”.Create or update the viewinformationsnmp-agentmib-view { included |excluded } view-nameoid-treeOptionalBy default, the view name isViewDefault and OID is 1.Table 596 Configure SNMP basic functions (SNMP V3)Operation Command DescriptionTable 597 Configure TrapOperation Command DescriptionEnter system view system-view -Enable the device to send Trap packets snmp-agent trap enable[ bgp [ backwardtransition| established ]* |configuration | flash | ospf[ process-id ] [ ospf-trap-list ] |standard [ authentication |coldstart | linkdown |linkup | warmstart ]* |system | vrrp [ authfailure |newmaster ] ]OptionalBy default,the port orthe interfaceis enabled tosend Trappackets.Enable the portto send TrappacketsEnter port view or interfaceviewinterface interface-typeinterface-numberEnable the port or interfaceto send Trap packetsenable snmp trap updownQuit to system view quit