< Home

snmp-agent trap enable feature-name system

Function

The snmp-agent trap enable feature-name system command enables the trap function for the SYSTEM module.

The undo snmp-agent trap enable feature-name system command disables the trap function for the SYSTEM module.

Format

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

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

Parameters

Parameter Description Value

trap-name trap-name

Specifies the name of a trap.
  • hwpatchactiveovertimetrap: Indicates that the patch that is activated for 24 hours is not in the running state.
  • hwpatcherrortrap: Indicates that an error of the patch operation occurs.
  • hwpatchmalfunctioncomebacktrap: Indicates that the patch fault is restored.
  • hwsyscfgfileerrornotification: Indicates that the configuration file can not be loaded.
  • hwsysclockchangednotification: Indicates that the current local date and time of system are changed.
  • hwsysimageerrornotification: Indicates that the image error.
  • hwsysissunotification Indicates that ISSU finished or ISSU fault.
  • hwsysreloadnotification: Indicates that the system will reboot after the value of hwSysReloadAction is modified to reloadAtOnce.
  • hwsysslaveswitchfailnotification: Indicates that the slave switchover fails.
  • hwsysslaveswitchsuccessnotification: Indicates that the slave switchover succeeds.

The value is an enumerated value and must be set as prompted by the device.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the trap function is disabled for the SYSTEM module.

The command configuration ensures that the traps generated during the device operation are sent to the NMS. Otherwise, SYSTEM traps are not sent to the NMS.

Example

# Enables hwpatcherrortrap trap of SYSTEM module.

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