< Home

snmp-agent trap enable feature-name ifnet

Function

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.

Format

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 } ]

Parameters

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. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can specify trap-name to enable the trap function for one or more events of the IFNET module.

Example

# Enable all traps of the IFNET module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name ifnet
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >