The snmp-agent trap enable feature-name ifnet command enables the trap function for the IFNET module.
The undo snmp-agent trap enable feature-name ifnet command disables the trap function for the IFNET module.
By default, the trap function is disabled for the IFNET module.
snmp-agent trap enable feature-name ifnet [ trap-name { hwentityextcfmovercard | hwentityextcfmoverslot | hwextinterfacedelete | hwifflowdown | hwifflowup | hwifmonitorcrcerrorresume | hwifmonitorcrcerrorrising | hwifmonitorinputrateresume | hwifmonitorinputraterising | hwifmonitoroutputrateresume | hwifmonitoroutputraterising | hwifnamechange | hwifnamechangeresume | linkdown | linkup } ]
undo snmp-agent trap enable feature-name ifnet [ trap-name { hwentityextcfmovercard | hwentityextcfmoverslot | hwextinterfacedelete | hwifflowdown | hwifflowup | hwifmonitorcrcerrorresume | hwifmonitorcrcerrorrising | hwifmonitorinputrateresume | hwifmonitorinputraterising | hwifmonitoroutputrateresume | hwifmonitoroutputraterising | hwifnamechange | hwifnamechangeresume | linkdown | linkup } ]
Parameter |
Description |
Value |
|---|---|---|
| trap-name | Enables the traps of IFNET events of specified types. | - |
| hwentityextcfmovercard | Enables the trap function for configurations related to the interface sub-card. | - |
| hwentityextcfmoverslot | Enables the trap function for configurations related to the device. | - |
| hwextinterfacedelete | Enables the trap function for an interface deletion event. | - |
| hwifflowdown | Enables the trap function for the event that the status of traffic on an interface becomes Down. | - |
| hwifflowup | Enables the trap function for the event that the status of traffic on an interface becomes Up. | - |
| hwifmonitorcrcerrorresume | Enables the trap function for the event that the number of CRC error packets on an interface falls below the threshold. | - |
| hwifmonitorcrcerrorrising | Enables the trap function for the event that the number of CRC error packets on an interface exceeds the threshold. | - |
| hwifmonitorinputrateresume | Enables the trap function for the event that the rate of incoming traffic on an interface falls below the threshold. | - |
| hwifmonitorinputraterising | Enables the trap function for the event that the rate of incoming traffic on an interface exceeds the threshold. | - |
| hwifmonitoroutputrateresume | Enables the trap function for the event that the rate of outgoing traffic on an interface falls below the threshold. | - |
| hwifmonitoroutputraterising | Enables the trap function for the event that the rate of outgoing traffic on an interface exceeds the threshold. | - |
| hwifnamechange | Enables the trap function for the event that the device joins a stack and the interface number format is changed from slot ID/subcard ID/port number to stack member ID/slot ID/subcard ID/port number. | - |
| hwifnamechangeresume | Enables the trap function for the event that the device leaves a stack and the interface number format is changed from stack member ID/slot ID/subcard ID/port number to slot ID/subcard ID/port number. | - |
| linkdown | Enables the trap function for the event that the link layer protocol status becomes Down. | - |
| linkup | Enables the trap function for the event that the link layer protocol status becomes Up. | - |