< Home

snmp-agent trap enable feature-name srmtrap

Function

snmp-agent trap enable feature-name srmtrap command enables the trap function for the SRMTRAP module.

undo snmp-agent trap enable feature-name srmtrap command disables the trap function for the SRMTRAP module.

By default, the trap function is enabled for the SPMTRAP module.

Format

snmp-agent trap enable feature-name srmtrap [ trap-name trap-name ]

undo snmp-agent trap enable feature-name srmtrap [ trap-name trap-name ]

Parameters

Parameter

Description

Value

trap-name trap-name

Specifies the trap for an event of the SRMTRAP module.

  • hwbiasexceedmajor: The bias current exceeds the upper threshold.
  • hwbiasexceedmajor: The bias current falls below the lower threshold.
  • hwbiasresume: The bias current restores to the normal range.
  • hwclpdcheckfault: CPLD check fails.
  • hwclpdcheckfaultresume: CPLD check succeeds.
  • hwcpicoreclockfault: CPI kernel clock becomes faulty.
  • hwcpicoreclockfaultresume: CPI kernel clock recovers from a fault.
  • hweepromcheckfault: EEPROM check fails.
  • hweepromcheckfaultresume: EEPROM check succeeds.
  • hwentityheartbeattrap: The device sends a heartbeat notification.
  • hwfanfault: A fan module becomes faulty.
  • hwfanfaultresume: A fan module recovers from a fault.
  • hwfanoffline: A fan module is unavailable.
  • hwfanonline: A fan module becomes available.
  • hwfpgacheckfault: FPGA check fails.
  • hwfpgacheckfaultresume: FPGA check succeeds.
  • hwi2cfault: An I2C fault occurs.
  • hwi2cfaultresume: An I2C fault is rectified.
  • hwlanswitchfault: An LSW chip becomes faulty.
  • hwlanswitchfaultresume: An LSW chip recovers from a fault.
  • hwlightfault: An indicator becomes faulty.
  • hwlightfaultresume: An indicator recovers from a fault.
  • hwopticalpowerabnormal: The optical module power is out of the normal range.
  • hwopticalpowerresume: The optical module power restores to the normal range.
  • hwpcifault: A PCI fault occurs.
  • hwpcifaultresume: A PCI fault is rectified.
  • hwphychipabnormal: A PHY chip is faulty.
  • hwphyfault: A PHY fault occurs.
  • hwphyfaultresume: A PHY fault is rectified.
  • hwpoechipfault: A PoE chip is faulty.
  • hwpoechipresume: A PoE chip recovers from a fault.
  • hwpoefault: The PoE function is unavailable.
  • hwpoefaultresume: A PoE function becomes available.
  • hwportphysicalautonegotiateclear: Port auto-negotiation succeeds.
  • hwportphysicalautonegotiatefail: Port auto-negotiation fails.
  • hwportphysicalethfullduplexclea: A port is in full-duplex mode.
  • hwportphysicalethhalfduplexalarm: A port is in half-duplex mode.
  • hwportphysicalporttypechange: The port type changes.
  • hwpowerabsent: A power module is unavailable.
  • hwpowerabsentresume: A power module becomes available.
  • hwpowerfault: A power module is faulty.
  • hwphyfaultresume: A power module recovers from a fault.
  • hwrtcfault: A real-time clock (RTC) is faulty.
  • hwrtcfaultresume: A real-time clock (RTC) recovers from a fault.
  • hwrxpowerexceedmajor: The Rx power exceeds the upper threshold.
  • hwrxpowerexceedminor: The Rx power falls below the lower threshold.
  • hwrxpowerresume: The Rx power restores to the normal range.
  • hwsubcardplugin: A subcard is installed.
  • hwsubcardpullout: A subcard is removed.
  • hwtempchipexcption: A temperature sensor chip is faulty.
  • hwtempchipexcptionresume: A temperature sensor chip recovers from a fault.
  • hwtempfallingalarm: The device temperature is too low.
  • hwtempfallingresume: The device temperature restores to the normal range.
  • hwtemprisingalarm: The device temperature is too high.
  • hwtemprisingresume: The device temperature restores to the normal range.
  • hwtxpowerexceedmajor: The Tx power exceeds the upper threshold.
  • hwtxpowerexceedminor: The Tx power falls below the lower threshold.
  • hwtxpowerresume: The Tx power restores to the normal range.
  • hwusbfault: A USB flash drive is faulty.
  • hwusbfaultresume: A USB flash drive recovers from a fault.
  • hwusbplugin: A USB flash drive is installed.
  • hwusbplugout: A USB flash drive is removed.
  • hwusbpowerfault: A USB 5 V power module is faulty.
  • hwusbpowerfaultresume: A USB 5 V power module recovers from a fault.
  • hwwriteflasherror: An error occurs when data is written to the flash memory.
  • hwwriteflasherrorresume: An error that occurs when data is written to the flash memory is resolved.
  • hwxauirefclockfault: An XAUIREF clock is faulty.
  • hwxauirefclockfaultresume: An XAUIREF clock recovers from a fault.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

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

Example

# Enable the hwclpdcheckfault trap of the SRMTRAP module.

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