< Home

clear configuration snmp-agent trap enable

Function

The clear configuration snmp-agent trap enable command deletes alarm configurations related to one or all functions in a batch and restores the default alarm functions.

Format

clear configuration snmp-agent trap enable [ feature-name feature-name ]

Parameters

Parameter Description Value
feature-name feature-name Deletes configurations of the trap function of a feature.

The value is a string of 1 to 256 case-insensitive characters, spaces not supported.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After a feature trap function is enabled or disabled using the snmp-agent trap enable feature-name trap-name command, the trap functions of all features are enabled using the snmp-agent trap enable command, or the trap functions of all features are disabled using the snmp-agent trap disable command. To delete the configurations, run the clear configuration snmp-agent trap enable command.

Configuration Impact

  • When the trap function is enabled or disabled globally, running the clear configuration snmp-agent trap enable feature-name feature-name command deletes configurations of the trap function of the feature specified by feature-name and restores the status of the trap function to be the same as that of the global trap function.
  • When the global trap function is in the default state, running the clear configuration snmp-agent trap enable feature-name feature-name command deletes configurations of the trap function of the feature specified by feature-name and restores the status of the trap function to be the default state.
  • Running the clear configuration snmp-agent trap enable command deletes configurations of the trap functions of all features and restores all feature alarm functions to the default state.

Example

# Delete configurations of the trap functions of all features.

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