< Home

snmp-agent trap disable

Function

The snmp-agent trap disable command disables all the enabled trap functions in the system.

The undo snmp-agent trap disable command restores all trap functions to their default status.

Format

snmp-agent trap disable

undo snmp-agent trap disable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the trap status of each module is consistent with that registered.

Usage Scenario

Application scenarios of the snmp-agent trap disable command and its related commands are as follows:
  • You can run the snmp-agent trap enable command to enable trap functions for all modules.
  • You can run the snmp-agent trap disable command to disable all trap functions.
  • You can run the snmp-agent trap enable feature-name command to enable trap functions for a specified module.
  • You can run the undo snmp-agent trap enable feature-name command to disable trap functions for a specified module.
  • You can run the snmp-agent trap enable feature-name trap-name command to enable a specified trap function for a specified module.
  • You can run the undo snmp-agent trap enable feature-name trap-name command to disable a specified trap function for a specified module.
  • You can run any one of the undo snmp-agent trap disable and undo snmp-agent trap enable commands to restore all trap functions to their default status.

Precautions

Example

# Disable all the enabled trap functions in the system.

<sysname> system-view
[sysname] snmp-agent trap disable
Warning: All switches of SNMP trap/notification will be closed. Continue? [Y/N]:y 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >