snmp-agent trap enable port bad-bytes

Function

The snmp-agent trap enable port bad-bytes command enables the alarm function in case the number of bytes of error packets exceeds an alarm threshold.

The snmp-agent trap disable port bad-bytes command disables such an alarm function.

The undo snmp-agent trap disable port bad-bytes command enables the alarm function in case the number of bytes of error packets exceeds an alarm threshold.

By default, no such alarm function is configured.

Format

snmp-agent trap { enable | disable } port bad-bytes

undo snmp-agent trap disable port bad-bytes

Parameters

Parameter Description Value
enable

Enable.

-

disable

Disable.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
interface-mgr write

Usage Guidelines

Usage Scenario

If an interface receives a large number of bytes of error packets, the link is in a poor condition, affecting service transmission. In this situation, you can run the snmp-agent trap enable port bad-bytes command to configure the alarm function and run the trap-threshold bad-bytes command in the interface view to configure an alarm threshold and detection interval on an interface. The system then detects the number of bytes of error packets that the interface receives at the configured interval. If the number of bytes of error packets exceeds the configured alarm threshold, the system generates an alarm and sends it to the NMS, prompting the administrator to perform maintenance on the interface and troubleshoot the fault. When the number of bytes of error packets falls below the alarm threshold, the system generates a clear alarm and sends it to the NMS, notifying the administrator that the alarm has been cleared.

Configuration Impact

If the snmp-agent trap disable port bad-bytes command is run, the device does not report alarm information to the NMS.

Follow-up Procedure

Run the trap-threshold bad-bytes command in the interface view to configure an alarm threshold and detection interval on an interface.

In VS mode, this command is supported only by the admin VS.

Example

# Enable the alarm function in case the number of bytes of error packets exceeds an alarm threshold.
<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable port bad-bytes
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >