< Home

snmp-agent trap disable

Function

The snmp-agent trap disable command disables the trap function for all features.

The undo snmp-agent trap disable command restores the trap function for all features to the default status.

By default, the display snmp-agent trap all command can be used to view the status of the trap function for all features.

Format

snmp-agent trap disable

undo snmp-agent trap disable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To enable the trap function for all modules, run the snmp-agent trap enable command. To enable the trap function for a specified module, run the snmp-agent trap enable feature-name command.
  • To disable the trap function for all modules, run the snmp-agent trap disable command.

  • To restore the trap function for all features to the default status, run the undo snmp-agent trap disable or undo snmp-agent trap enable command.

To disable the trap function for a specified module, run the undo snmp-agent trap enable feature-name command.

Example

# Disable the trap function for all features.

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