CX320 Switch Module V100R001 Command Reference 14

snmp-agent trap enable

snmp-agent trap enable

Function

The snmp-agent trap enable command enables the switch to send traps.

The undo snmp-agent trap enable command restores the default setting.

The default configuration of the snmp-agent trap enable command can be checked by the display snmp-agent trap all command.

Format

snmp-agent trap enable

undo snmp-agent trap enable

Parameters

None.

Views

System view

Default Level

3: Management level

Usage Guidelines

The snmp-agent trap enable command must be used together with the snmp-agent target-host inform command or snmp-agent target-host trap command.

To enable a device to send traps, you need to run at least the snmp-agent target-host inform command or snmp-agent target-host trap command on the device to specify the destination address of the traps.

Example

# Enable the switch to send traps.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable
Translation
Favorite
Download
Update Date:2025-07-01
Document ID:EDOC1000128405
Views:7711640
Downloads:2083
Average rating:4.75Points

Digital Signature File

digtal sigature tool