< Home

snmp-agent trap enable feature-name asmngtrap

Function

snmp-agent trap enable feature-name asmngtrap command enables the trap function for the ASMNGTRAP module.

undo snmp-agent trap enable feature-name asmngtrap command disables the trap function for the ASMNGTRAP module.

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

This command can only be executed on a parent switch.

Format

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

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

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for a specified event.

  • hwasaddofflinenotify: the trap for the event that an AS is added offline.
  • hwasboardadd: the trap for the event that an AS slot is added.
  • hwasboarddelete: the trap for the event that an AS slot is deleted.
  • hwasboardplugin: the trap for the event that a new member joins an AS stack system.
  • hwasboardplugout: the trap for the event that a member leaves an AS stack system.
  • hwascomboporttypechange: the trap for the event that the AS interface type changes.
  • hwasdelofflinenotify: the trap for the event that an AS is deleted offline.
  • hwasfaultnotify: the trap for the event that an AS goes offline.
  • hwasfullnotify: the trap for the event that the number of ASs reaches the maximum value.
  • hwasinblacklist: the trap for the event that an AS is in the blacklist.
  • hwasmodelnotmatchnotify: the trap for the event that the actual AS model does not match the configured one.
  • hwasnameconflictnotify: the trap for the event that the AS name conflicts.
  • hwasnormalnotify: the trap for the event that an AS goes online.
  • hwasonlinefailnotify: the trap for the event that an AS fails to go online.
  • hwasportstatechangetodownnotify: the trap for the event that an AS port goes Down.
  • hwasportstatechangetoupnotify: the trap for the event that an AS port goes Up.
  • hwasslotidinvalidnotify: the trap for the event that an AS slot ID is invalid.
  • hwasslotmodelnotmatchnotify: the trap for the event that the model of a new device in the AS stack system differs from the configured model.
  • hwassysmacswitchcfgerrnotify: the trap for the event that the MAC address switching mode of the AS stack system is not set to non-switching.
  • hwasunconfirmed: the trap for the event that an AS fails authentication.
  • hwasversionnotmatchnotify: the trap for the event that the AS version does not match.
  • hwunimngmodelnotmatchnotify: the trap for the event that an AS has a different SVF enabling status than the parent.
  • hwasslotonlinefailnotify: the trap for the event that some member switches in a stack fail to go online when this stack is an AS.

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 hwasaddofflinenotify trap of the ASMNGTRAP module.

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