- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Error code detection commands | 222.87 KB |
Contents
crc-error bit-error-ratio algorithm-parameter
crc-error bit-error-ratio transfer-protocol
display ifmonitor background-traffic interface
link-quality crc-error bit-error-ratio
port ifmonitor crc-error bit-error-ratio
reset crc-error bit-error-ratio status interface
snmp-agent trap enable ifmonitor
Error code detection commands
crc-error bit-error-ratio algorithm-parameter
Use crc-error bit-error-ratio algorithm-parameter to configure the bit error ratio calculation factors for an interface.
Use undo crc-error bit-error-ratio algorithm-parameter to restore the default.
Syntax
crc-error bit-error-ratio algorithm-parameter high-factor high-factor-value low-factor low-factor-value
undo crc-error bit-error-ratio algorithm-parameter
Default
The calculation factor is 50 for both the upper bit error ratio and lower bit error ratio.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Predefined user roles
network-admin
Parameters
high-factor high-factor-value: Specifies the upper bit error ratio calculation factor in the range of 1 to 99.
low-factor low-factor-value: Specifies the lower bit error ratio calculation factor in the range of 1 to 99.
Usage guidelines
With error code detection enabled, the device periodically samples and checks the packets sent and received by an interface and performs the following operations:
· When the interface is in lower bit error ratio status, the device uses the upper bit error ratio calculation factor to calculate a result. Then, the device compares the calculation result with the upper bit error ratio threshold to determine whether the interface is in upper bit error ratio status.
· When the interface is in upper bit error ratio status, the device uses the lower bit error ratio calculation factor to calculate a result. Then, the device compares the calculation result with the lower bit error ratio threshold to determine whether the interface is in lower bit error ratio status.
You can use this command to adjust the bit error ratio calculation factors to adjust the timeliness and reliability of the calculation results. A smaller calculation factor means a higher timeliness and lower reliability.
This command takes effect only when the link-quality crc-error bit-error-ratio or port ifmonitor crc-error bit-error-ratio command is executed.
Examples
# On Ten-GigabitEthernet 0/0/6, set the upper bit error ratio calculation factor to 10 and lower bit error ratio to 50.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] crc-error bit-error-ratio algorithm-parameter high-factor 10 low-factor 50
This command will affect the bit-error detection. Please make sure all parameters are confirmed. Continue? [Y/N]:y
Related commands
link-quality crc-error bit-error-ratio
port ifmonitor crc-error bit-error-ratio
crc-error bit-error-ratio transfer-protocol
Use crc-error bit-error-ratio transfer-protocol to specify the protocol for transferring error code detection information.
Use undo crc-error bit-error-ratio transfer-protocol to restore the default.
Syntax
crc-error bit-error-ratio transfer-protocol { bfd | lldp }
undo crc-error bit-error-ratio transfer-protocol
Default
BFD is used for transferring error code detection information.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Predefined user roles
network-admin
Parameters
bfd: Specifies BFD for transferring error code detection information.
lldp: Specifies LLDP for transferring error code detection information.
Usage guidelines
When an error code failure occurs on an interface, the error code status of the interface must be sent to the peer device. The device supports using BFD or LLDP for transferring the error code status of interfaces. When the device is connected to a third-party device, you can use this command to select a protocol for transferring error code information, so that the peer device can recognize the error code information.
To use LLDP for transferring error code detection information, make sure LLDP is enabled and LLDP operates in nearest bridge agent mode. For more information about LLDP, see LLDP configuration in Layer 2—LAN Switching Configuration Guide.
Examples
# Configure Ten-GigabitEthernet 0/0/6 to use LLDP for transferring error code detection information.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] crc-error bit-error-ratio transfer-protocol lldp
This command takes effect only after LLDP is enabled both globally and on the interface.
display ifmonitor
Use display ifmonitor to display alarm information of an interface.
Syntax
display ifmonitor interface interface-type interface-number
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
Examples
# Display alarm information of Ten-GigabitEthernet 0/0/6.
<Sysname> display ifmonitor interface ten-gigabitethernet 0/0/6
Ten-GigabitEthernet0/0/6:
CRC error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Value(ratio) : 10
Interval : 10 s
Trigger at : Never
Input error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
Output error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
SDH error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : Never
SDH-B1 error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
SDH-B2 error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
# Display alarm information of Ten-GigabitEthernet0/0/6 to identify whether error codes trigger LSP switchover on the interface.
<Sysname> display ifmonitor interface ten-gigabitethernet 0/0/6
Ten-GigabitEthernet0/0/6:
CRC error(bit-error-ratio):
Trigger action : LSP
High threshold : 1E-3
Low threshold : 1E-4
Value : 0E-0
Trigger at : [H]2013-05-01 11:16:00
Input error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
Output error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
SDH error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : Never
SDH-B1 error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
SDH-B2 error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
# Display alarm information of Ten-GigabitEthernet 0/0/6 to identify whether error codes trigger section layer service protection on the interface.
<Sysname> display ifmonitor interface ten-gigabitethernet 0/0/6
Ten-GigabitEthernet0/0/6:
CRC error(bit-error-ratio):
Trigger action : Section
High threshold : 1E-3
Low threshold : 1E-4
Value : 0E-0
Trigger at : Never
Input error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
Output error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
SDH error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : Never
SDH-B1 error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
SDH-B2 error:
Trap enable : Y
Trigger down : N
Alarm status : N
High threshold : 1000
Low threshold : 100
Interval : 10 s
Value : 0
Trigger at : [L]2013-05-01 11:16:00
Table 1 Command output
Field |
Description |
Trap enable |
Whether the alarm function is enabled: · Y—Enabled. · N—Disabled. |
Trigger down |
Whether the interface is set to down when the trap threshold is reached: · Y—Sets the interface to down. · N—Does not set the interface to down. |
Trigger action |
Action triggered by error codes: · Link quality—Adjusts the link cost according to the link quality. · LSP—Triggers LSP switchover. · Section—Triggers section layer service protection. |
Alarm status |
Alarm status: · Y—The interface is in alarm status. · N—The interface is not in alarm status. |
High threshold |
Upper alarm threshold or bit error ratio threshold. |
Low threshold |
Lower alarm threshold or bit error ratio threshold. |
Interval |
Statistics collection and comparison interval in seconds. |
Value |
When an error packet alarm is triggered, this field displays the number of error packets within the most recent interval. When a bit error is triggered, this field displays the bit error ratio within the most recent interval. |
Value(ratio) |
When an error packet alarm is triggered, this field indicates the ratio of error packets within the most recent interval. |
Trigger at |
Most recent time when the alarm threshold or bit error ratio threshold was triggered: · [L]YYYY/MM/DD HH:MM:SS—Most recent time when the lower alarm threshold or bit error ratio threshold was triggered. · [H]YYYY/MM/DD HH:MM:SS—Most recent time when the upper alarm threshold or bit error ratio threshold was triggered. · Never—No alarm threshold or bit error ratio threshold has been triggered. |
display ifmonitor background-traffic interface
Use display ifmonitor background-traffic interface to display the background traffic information of interfaces.
Syntax
display ifmonitor background-traffic interface [ interface-type [ interface-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
Usage guidelines
If you do not specify an interface type, this command displays background traffic information about all interfaces.
If you specify an interface type but do not specify an interface number, this command displays background traffic information about all interfaces of the specified type.
If you specify both an interface type and an interface number, this command displays background traffic information about the specified interface.
Examples
# Display background traffic information about all interfaces.
<Sysname> display ifmonitor background-traffic interface
Total number of interfaces sending background traffic:0
Interface State Sending Rate (Mbps) Last start
Last stop
XGE0/0/6 Disabled N 0 -
-
Table 2 Command output
Field |
Description |
Interface |
Abbreviated interface name. |
State |
State of the background traffic sending function: · Disabled. · Enabled. |
Sending |
Whether the interface is sending the background traffic: · Y—The interface is sending background traffic. · N—The interface is not sending background traffic. |
Rate (Mbps) |
Rate (Mbps) at which the interface is sending the background traffic. |
Last start |
Last time when the interface started sending the background traffic. If the interface has never sent background traffic, this field displays a hyphen (-). |
Last stop |
Last time when the interface stopped sending the background traffic. If the interface has never sent background traffic, this field displays Stop hyphen (-). |
ifmonitor crc-error
Use ifmonitor crc-error to configure global CRC error packet alarm parameters.
Use undo ifmonitor crc-error to restore the default.
Syntax
ifmonitor crc-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo ifmonitor crc-error slot slot-number
Default
The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for CRC error packet alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for CRC error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for CRC error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for CRC error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming CRC error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming CRC error packets exceeds the upper threshold on the interface.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the CRC error packet alarm function enabled, when the number of incoming CRC error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming CRC error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the CRC error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for CRC error packet alarms.
<Sysname> system-view
[Sysname] ifmonitor crc-error high-threshold 5000 low-threshold 400 interval 6
Related commands
snmp-agent trap enable ifmonitor
ifmonitor giant
Use ifmonitor giant to configure global giant packet alarm parameters.
Use undo ifmonitor giant to restore the default.
Syntax
ifmonitor giant slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo ifmonitor giant slot slot-number
Default
The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for giant packet alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for giant packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for giant packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for giant packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming giant packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming giant packets exceeds the upper threshold on the interface.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the giant packet alarm function enabled, when the number of incoming giant packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming giant packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the giant packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5, lower threshold to 4, and statistics collection and comparison interval to 6 seconds for giant packet alarms.
<Sysname> system-view
[Sysname] ifmonitor giant high-threshold 5 low-threshold 4 interval 6
Related commands
port ifmonitor giant
snmp-agent trap enable ifmonitor
ifmonitor input-error
Use ifmonitor input-error to configure global input error packet alarm parameters.
Use undo ifmonitor input-error to restore the default.
Syntax
ifmonitor input-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo ifmonitor input-error slot slot-number
Default
The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for input error packet alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for input error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for input error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for input error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of input error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of input error packets exceeds the upper threshold on the interface.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the input error packet alarm function enabled, when the number of input error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of input error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the input error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for input error packet alarms.
<Sysname> system-view
[Sysname] ifmonitor input-error high-threshold 5000 low-threshold 400 interval 6
Related commands
snmp-agent trap enable ifmonitor
ifmonitor input-usage
Use ifmonitor input-usage to configure global input bandwidth usage alarm parameters.
Use undo ifmonitor input-usage to restore the default.
Syntax
ifmonitor input-usage slot slot-number high-threshold high-value low-threshold low-value
undo ifmonitor input-usage slot slot-number
Default
The upper threshold is 90, and the lower threshold is 80.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for input bandwidth usage alarms, in the range of 1 to 100.
low-threshold low-value: Specifies the lower threshold for input bandwidth usage alarms, in the range of 1 to 100.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the input bandwidth usage alarm function enabled, when the input bandwidth usage on an interface in normal state within the most recent statistics polling interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the input bandwidth usage on an interface in the alarm state within the most recent statistics polling interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
The statistics polling interval varies by device model:
· On a device that does not support the flow-interval command, the statistics polling interval is 5 minutes.
· On a device that supports the flow-interval command, you can use the flow-interval command to set the statistics polling interval.
You can configure the input bandwidth usage alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the input bandwidth usage alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 95 and lower threshold to 80 for input bandwidth usage alarms.
<Sysname> system-view
[Sysname] ifmonitor input-usage high-threshold 95 low-threshold 80
Related commands
flow-interval
snmp-agent trap enable ifmonitor
ifmonitor output-error
Use ifmonitor output-error to configure global output error packet alarm parameters.
Use undo ifmonitor output-error to restore the default.
Syntax
ifmonitor output-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo ifmonitor output-error slot slot-number
Default
The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for output error packet alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for output error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for output error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for output error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of output error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of output error packets exceeds the upper threshold on the interface.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the output error packet alarm function enabled, when the number of output error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of output error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the output error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for output error packet alarms.
<Sysname> system-view
[Sysname] ifmonitor output-error high-threshold 5000 low-threshold 400 interval 6
Related commands
snmp-agent trap enable ifmonitor
ifmonitor output-usage
Use ifmonitor output-usage to configure global output bandwidth usage alarm parameters.
Use undo ifmonitor output-usage to restore the default.
Syntax
ifmonitor output-usage slot slot-number high-threshold high-value low-threshold low-value
undo ifmonitor output-usage slot slot-number
Default
The upper threshold is 90, and the lower threshold is 80.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for output bandwidth usage alarms, in the range of 1 to 100.
low-threshold low-value: Specifies the lower threshold for output bandwidth usage alarms, in the range of 1 to 100.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the output bandwidth usage alarm function enabled, when the output bandwidth usage on an interface in normal state within the most recent statistics polling interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the output bandwidth usage on an interface in the alarm state within the most recent statistics polling interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
The statistics polling interval varies by device model:
· On a device that does not support the flow-interval command, the statistics polling interval is 5 minutes.
· On a device that supports the flow-interval command, you can use the flow-interval command to set the statistics polling interval.
You can configure the output bandwidth usage alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the output bandwidth usage alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 95 and lower threshold to 80 for output bandwidth usage alarms.
<Sysname> system-view
[Sysname] ifmonitor output-usage high-threshold 80 low-threshold 60
Related commands
flow-interval
snmp-agent trap enable ifmonitor
ifmonitor runt
Use ifmonitor runt to configure global runt packet alarm parameters.
Use undo ifmonitor runt to restore the default.
Syntax
ifmonitor runt slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo ifmonitor runt slot slot-number
Default
The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for runt packet alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for runt packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for runt packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for runt packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming runt packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming runt packets exceeds the upper threshold on the interface.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the runt packet alarm function enabled, when the number of incoming runt packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming runt packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the runt packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5, lower threshold to 4, and statistics collection and comparison interval to 6 seconds for runt packet alarms.
<Sysname> system-view
[Sysname] ifmonitor runt slot 5 high-threshold 5 low-threshold 4 interval 6
Related commands
port ifmonitor runt
snmp-agent trap enable ifmonitor
ifmonitor rx-pause
Use ifmonitor rx-pause to configure global received pause frame alarm parameters.
Use undo ifmonitor rx-pause to restore the default.
Syntax
ifmonitor rx-pause slot slot-number high-threshold high-value low-threshold low-value interval interval
undo ifmonitor rx-pause slot slot-number
Default
The upper threshold is 500, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for received pause frame alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for received pause frame alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for received pause frame alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for received pause frames, in the range of 1 to 65535 seconds.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the received pause frame alarm function enabled, when the number of received pause frames on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of received pause frames on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the received pause frame alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the received pause frame alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 30, lower threshold to 20, and statistics collection and comparison interval to 4 seconds for received pause frame alarms.
<Sysname> system-view
[Sysname] ifmonitor rx-pause high-threshold 30 low-threshold 20 interval 4
Related commands
snmp-agent trap enable ifmonitor
ifmonitor sdh-b1-error
Use ifmonitor sdh-b1-error to configure global SDH-B1 error packet alarm parameters.
Use undo ifmonitor sdh-b1-error to restore the default.
Syntax
ifmonitor sdh-b1-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo ifmonitor sdh-b1-error slot slot-number
Default
The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for SDH-B1 error packet alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for SDH-B1 error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for SDH-B1 error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for SDH-B1 error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming SDH-B1 error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming SDH-B1 error packets exceeds the upper threshold on the interface.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the SDH-B1 error packet alarm function enabled, when the number of incoming SDH-B1 error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming SDH-B1 error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the SDH-B1 error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the SDH-B1 error packet alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 65, lower threshold to 25, and statistics collection and comparison interval to 20 seconds for SDH-B1 error packet alarms.
<Sysname> system-view
[Sysname] ifmonitor sdh-b1-error high-threshold 65 low-threshold 25 interval 20
Related commands
snmp-agent trap enable ifmonitor
ifmonitor sdh-b2-error
Use ifmonitor sdh-b2-error to configure global SDH-B2 error packet alarm parameters.
Use undo ifmonitor sdh-b2-error to restore the default.
Syntax
ifmonitor sdh-b2-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo ifmonitor sdh-b2-error slot slot-number
Default
The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for SDH-B2 error packet alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for SDH-B2 error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for SDH-B2 error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for SDH-B2 error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming SDH-B2 error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming SDH-B2 error packets exceeds the upper threshold on the interface.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the SDH-B2 error packet alarm function enabled, when the number of incoming SDH-B2 error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming SDH-B2 error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the SDH-B2 error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the SDH-B2 error packet alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 6, lower threshold to 5, and statistics collection and comparison interval to 2 seconds for SDH-B2 error packet alarms.
<Sysname> system-view
[Sysname] ifmonitor sdh-b2-error high-threshold 6 low-threshold 5 interval 2
Related commands
snmp-agent trap enable ifmonitor
ifmonitor sdh-error
Use ifmonitor sdh-error to configure global SDH error packet alarm parameters.
Use undo ifmonitor sdh-error to restore the default.
Syntax
ifmonitor sdh-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo ifmonitor sdh-error slot slot-number
Default
The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for SDH error packet alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for SDH error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for SDH error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for SDH error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming SDH error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming SDH error packets exceeds the upper threshold on the interface.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the SDH error packet alarm function enabled, when the number of incoming SDH error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming SDH error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the SDH error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the SDH error packet alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 35, lower threshold to 20, and statistics collection and comparison interval to 8 seconds for SDH error packet alarms.
<Sysname> system-view
[Sysname] ifmonitor sdh-error high-threshold 35 low-threshold 20 interval 8
Related commands
snmp-agent trap enable ifmonitor
ifmonitor tx-pause
Use ifmonitor tx-pause to configure global sent pause frame alarm parameters.
Use undo ifmonitor tx-pause to restore the default.
Syntax
ifmonitor tx-pause slot slot-number high-threshold high-value low-threshold low-value interval interval
undo ifmonitor tx-pause slot slot-number
Default
The upper threshold is 500, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for sent pause frame alarms.
Views
System view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for sent pause frame alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for sent pause frame alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for sent pause frames, in the range of 1 to 65535 seconds.
slot slot-number: Specifies a card by its slot number.
Usage guidelines
With the sent pause frame alarm function enabled, when the number of sent pause frames on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of sent pause frames on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the sent pause frame alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the sent pause frame alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 20, lower threshold to 10, and statistics collection and comparison interval to 5 seconds for sent pause frame alarms.
<Sysname> system-view
[Sysname] ifmonitor tx-pause high-threshold 20 low-threshold 10 interval 5
Related commands
snmp-agent trap enable ifmonitor
link-quality crc-error bit-error-ratio
Use link-quality crc-error bit-error-ratio to configure link quality detection parameters.
Use undo link-quality to restore the default.
Syntax
link-quality crc-error bit-error-ratio high-threshold high-value-coefficient high-value-power low-threshold low-value-coefficient low-value-power
undo link-quality
Default
No link quality detection parameters are set.
Views
Layer 3 Ethernet interface view
Layer 3 aggregate interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value-coefficient high-value-power: Specifies the upper bit error ratio threshold, which is calculated by using the formula xE-y. The high-value-coefficient argument specifies the coefficient (x in xE-y) in the range of 1 to 9. The high-value-power argument specifies the power (y in xE-y) in the range of 1 to 7.
low-threshold low-value-coefficient low-value-power: Specifies the lower bit error ratio threshold, which is calculated by using the formula xE-y. The high-value-coefficient argument specifies the coefficient (x in xE-y) in the range of 1 to 9. The high-value-power argument specifies the power (y in xE-y) in the range of 1 to 7.
Usage guidelines
With this command executed on an interface, the device periodically samples, calculates, and detects the packets received on the interface.
· If the bit error ratio exceeds the upper threshold, an error code failure occurs on the interface. Then, the link quality of the interface becomes LOW, and an error code event is reported. In this case, IGP (for example, OSPF and IS-IS) increases the cost for the link and recalculates the routes, so that IGP does not preferentially select the link and keeps off error code failures.
· If the bit error ratio drops below the lower threshold, the error code failure is cleared on the interface. Then, the link quality of the interface restores to GOOD, and an error code clearing event is reported. In this case, IGP restores the cost value for the interface and recalculates the routes, so that IGP can preferentially select the link again.
The bit error ratio is calculated by using the formula xE-y, where E=10.
When an error code failure occurs on a Layer 3 Ethernet interface that is not assigned to any aggregation group, LSP switchover is also triggered in addition to link cost adjustment and IGP route recalculation.
Make sure the lower threshold is no greater than the upper threshold.
This command and the port ifmonitor crc-error or port ifmonitor crc-error bit-error-ratio command are mutually exclusive.
Examples
# Set the link quality detection parameters for Ten-GigabitEthernet 0/0/6 as follows:
· For the upper bit error ratio threshold, set the coefficient to 1 and the power to 3.
· For the lower bit error ratio threshold, set the coefficient to 1 and the power to 6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] link-quality crc-error bit-error-ratio high-threshold 1 3 low-threshold 1 6
Related commands
port ifmonitor crc-error (Interface Command Reference)
port ifmonitor crc-error bit-error-ratio
port ifmonitor crc-error
Use port ifmonitor crc-error to configure CRC error packet alarm parameters for an interface.
Use undo port ifmonitor crc-error to restore the default.
Syntax
port ifmonitor crc-error [ ratio ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo port ifmonitor crc-error
Default
An interface uses the global CRC error packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
ratio: Specifies the alarm thresholds in percentage. If you do not specify this keyword, you configure the alarm thresholds in absolute value.
high-threshold high-value: Specifies the upper threshold for CRC error packet alarms. If you specify the ratio keyword, the value range is 1 to 100. If you do not specify the ratio keyword, the value range is 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for CRC error packet alarms. If you specify the ratio keyword, the value range is 1 to 100. If you do not specify the ratio keyword, the value range is 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for CRC error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming CRC error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming CRC error packets exceeds the upper threshold on the interface.
Usage guidelines
With the CRC error packet alarm function enabled, when the number of incoming CRC error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming CRC error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the CRC error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for CRC error packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor crc-error high-threshold 5000 low-threshold 400 interval 6
Related commands
snmp-agent trap enable ifmonitor
port ifmonitor crc-error bit-error-ratio
Use port ifmonitor crc-error bit-error-ratio to set the error code detection parameters for an interface.
Use undo port ifmonitor crc-error to restore the default.
Syntax
port ifmonitor crc-error bit-error-ratio high-threshold high-value-coefficient high-value-power low-threshold low-value-coefficient low-value-power { trigger-lsp | trigger-section }
undo port ifmonitor crc-error
Default
No error code detection parameters are set for an interface.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value-coefficient high-value-power: Specifies the upper bit error ratio threshold, which is calculated by using the formula xE-y. The high-value-coefficient argument specifies the coefficient (x in xE-y) in the range of 1 to 9. The high-value-power argument specifies the power (y in xE-y) in the range of 1 to 5.
low-threshold low-value-coefficient low-value-power: Specifies the lower bit error ratio threshold, which is calculated by using the formula xE-y. The high-value-coefficient argument specifies the coefficient (x in xE-y) in the range of 1 to 9. The high-value-power argument specifies the power (y in xE-y) in the range of 1 to 6.
trigger-lsp: Enables error code failures to trigger LSP switchover. Layer 2 Ethernet interfaces and Layer 2 aggregate interfaces do not support this keyword.
trigger-section: Enables error code failures to trigger section layer service protection.
Usage guidelines
With the trigger-lsp keyword specified, an error code failure occurring on an interface is reported to the upper-layer service module to switch traffic from the primary LSP to the secondary LSP. After the error code failure is cleared, traffic is switched back to the primary LSP.
With the trigger-section keyword specified, an error code failure occurring on an interface is reported to the interface management module to set the link layer protocol status of the interface to DOWN(Bit-error down). Then, the upper-layer service module associated with the interface triggers section layer service protection. After the error code failure is cleared, the link layer protocol status of the interface restores to UP and the upper-layer service module cancels section layer service protection.
The bit error ratio is calculated by using the formula xE-y, where E=10.
The requirements for the bit error ratio vary by device and service. Set the bit error ratio thresholds according to the network planning and device requirements.
This command and the link-quality command are mutually exclusive.
If you execute this command and the port ifmonitor crc-error command multiple times, the most recent configuration takes effect.
Examples
# Set the error code detection parameters for Ten-GigabitEthernet 0/0/6 as follows:
· For the upper bit error ratio threshold, set the coefficient to 1 and the power to 4.
· For the lower bit error ratio threshold, set the coefficient to 1 and the power to 5.
· Enable error code failures to trigger section layer service protection.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor crc-error bit-error-ratio high-threshold 1 4 low-threshold 1 5 trigger-section
Related commands
link-quality
port ifmonitor crc-error (Interface Command Reference)
port ifmonitor giant
Use port ifmonitor giant to configure giant packet alarm parameters for an interface.
Use undo port ifmonitor giant to restore the default.
Syntax
port ifmonitor giant high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo port ifmonitor giant
Default
An interface uses the global giant packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for giant packet alarms, in the range of 1 to 4294967295.
low-threshold low-value: Specifies the lower threshold for giant packet alarms, in the range of 1 to 4294967295.
interval interval: Specifies the statistics collection and comparison interval for giant packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming giant packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming giant packets exceeds the upper threshold on the interface.
Usage guidelines
With the giant packet alarm function enabled, when the number of incoming giant packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming giant packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the giant packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5, lower threshold to 4, and statistics collection and comparison interval to 6 seconds for giant packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor giant high-threshold 5 low-threshold 4 interval 6
Related commands
ifmonitor giant
snmp-agent trap enable ifmonitor
port ifmonitor input-error
Use port ifmonitor input-error to configure input error packet alarm parameters for an interface.
Use undo port ifmonitor input-error to restore the default.
Syntax
port ifmonitor input-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo port ifmonitor input-error
Default
An interface uses the global input error packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for input error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for input error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for input error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of input error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of input error packets exceeds the upper threshold on the interface.
Usage guidelines
With the input error packet alarm function enabled, when the number of input error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of input error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the input error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for input error packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor input-error high-threshold 5000 low-threshold 400 interval 6
Related commands
snmp-agent trap enable ifmonitor
port ifmonitor input-usage
Use port ifmonitor input-usage to configure input bandwidth usage alarm parameters.
Use undo port ifmonitor input-usage to restore the default.
Syntax
port ifmonitor input-usage high-threshold high-value low-threshold low-value
undo port ifmonitor input-usage
Default
An interface uses the global input bandwidth usage alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for input bandwidth usage alarms, in the range of 1 to 100.
low-threshold low-value: Specifies the lower threshold for input bandwidth usage alarms, in the range of 1 to 100.
Usage guidelines
With the input bandwidth usage alarm function enabled, when the input bandwidth usage on an interface in normal state within the most recent statistics polling interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the input bandwidth usage on an interface in the alarm state within the most recent statistics polling interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
The statistics polling interval varies by device model:
· On a device that does not support the flow-interval command, the statistics polling interval is 5 minutes.
· On a device that supports the flow-interval command, you can use the flow-interval command to set the statistics polling interval.
You can configure the input bandwidth usage alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the input bandwidth usage alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 80 and lower threshold to 60 for input bandwidth usage alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor input-usage high-threshold 80 low-threshold 60
Related commands
flow-interval
snmp-agent trap enable ifmonitor
port ifmonitor output-error
Use port ifmonitor output-error to configure output error packet alarm parameters for an interface.
Use undo port ifmonitor output-error to restore the default.
Syntax
port ifmonitor output-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo port ifmonitor output-error
Default
An interface uses the global output error packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for output error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for output error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for output error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of output error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of output error packets exceeds the upper threshold on the interface.
Usage guidelines
With the output error packet alarm function enabled, when the number of output error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of output error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the output error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for output error packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor output-error high-threshold 5000 low-threshold 400 interval 6
Related commands
snmp-agent trap enable ifmonitor
port ifmonitor output-usage
Use port ifmonitor output-usage to configure output bandwidth usage alarm parameters.
Use undo port ifmonitor output-usage to restore the default.
Syntax
port ifmonitor output-usage high-threshold high-value low-threshold low-value
undo port ifmonitor output-usage
Default
An interface uses the global output bandwidth usage alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for output bandwidth usage alarms, in the range of 1 to 100.
low-threshold low-value: Specifies the lower threshold for output bandwidth usage alarms, in the range of 1 to 100.
Usage guidelines
With the output bandwidth usage alarm function enabled, when the output bandwidth usage on an interface in normal state within the most recent statistics polling interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the output bandwidth usage on an interface in the alarm state within the most recent statistics polling interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
The statistics polling interval varies by device model:
· On a device that does not support the flow-interval command, the statistics polling interval is 5 minutes.
· On a device that supports the flow-interval command, you can use the flow-interval command to set the statistics polling interval.
You can configure the output bandwidth usage alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the output bandwidth usage alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 9 and lower threshold to 7 for output bandwidth usage alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor output-usage high-threshold 9 low-threshold 7
Related commands
flow-interval
snmp-agent trap enable ifmonitor
port ifmonitor runt
Use port ifmonitor runt to configure runt packet alarm parameters for an interface.
Use undo port ifmonitor runt to restore the default.
Syntax
port ifmonitor runt high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo port ifmonitor runt
Default
An interface uses the global runt packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for runt packet alarms, in the range of 1 to 4294967295.
low-threshold low-value: Specifies the lower threshold for runt packet alarms, in the range of 1 to 4294967295.
interval interval: Specifies the statistics collection and comparison interval for runt packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming runt packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming runt packets exceeds the upper threshold on the interface.
Usage guidelines
With the runt packet alarm function enabled, when the number of incoming runt packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming runt packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the runt packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 5, lower threshold to 4, and statistics collection and comparison interval to 6 seconds for runt packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor runt high-threshold 5 low-threshold 4 interval 6
Related commands
ifmonitor runt
snmp-agent trap enable ifmonitor
port ifmonitor rx-pause
Use port ifmonitor rx-pause to configure received pause frame packet alarm parameters for an interface.
Use undo port ifmonitor rx-pause to restore the default.
Syntax
port ifmonitor rx-pause high-threshold high-value low-threshold low-value interval interval
undo port ifmonitor rx-pause
Default
An interface uses the global received pause frame packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for received pause frame packet alarms, in the range of 1 to 4294967295.
low-threshold low-value: Specifies the lower threshold for received pause frame packet alarms, in the range of 1 to 4294967295.
interval interval: Specifies the statistics collection and comparison interval for received pause frame packets, in the range of 1 to 65535 seconds.
Usage guidelines
With the received pause frame packet alarm function enabled, when the number of received pause frame packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of received pause frame packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the received pause frame packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the received pause frame alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 90, lower threshold to 50, and statistics collection and comparison interval to 5 seconds for received pause frame packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor rx-pause high-threshold 90 low-threshold 50 interval 5
Related commands
snmp-agent trap enable ifmonitor
port ifmonitor sdh-b1-error
Use port ifmonitor sdh-b1-error to configure SDH-B1 error packet alarm parameters for an interface.
Use undo port ifmonitor sdh-b1-error to restore the default.
Syntax
port ifmonitor sdh-b1-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo port ifmonitor sdh-b1-error
Default
An interface uses the global SDH-B1 error packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for SDH-B1 error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for SDH-B1 error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for SDH-B1 error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming SDH-B1 error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming SDH-B1 error packets exceeds the upper threshold on the interface.
Usage guidelines
With the SDH-B1 error packet alarm function enabled, when the number of incoming SDH-B1 error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming SDH-B1 error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the SDH-B1 error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the SDH-B1 error packet alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 20, lower threshold to 10, and statistics collection and comparison interval to 10 seconds for SDH-B1 error packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor sdh-b1-error high-threshold 20 low-threshold 10 interval 10
Related commands
snmp-agent trap enable ifmonitor
port ifmonitor sdh-b2-error
Use port ifmonitor sdh-b2-error to configure SDH-B2 error packet alarm parameters for an interface.
Use undo port ifmonitor sdh-b2-error to restore the default.
Syntax
port ifmonitor sdh-b2-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo port ifmonitor sdh-b2-error
Default
An interface uses the global SDH-B2 error packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for SDH-B2 error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for SDH-B2 error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for SDH-B2 error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming SDH-B2 error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming SDH-B2 error packets exceeds the upper threshold on the interface.
Usage guidelines
With the SDH-B2 error packet alarm function enabled, when the number of incoming SDH-B2 error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming SDH-B2 error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the SDH-B2 error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the SDH-B2 error packet alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 10, lower threshold to 8, and statistics collection and comparison interval to 3 seconds for SDH-B2 error packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor sdh-b2-error high-threshold 10 low-threshold 8 interval 3
Related commands
snmp-agent trap enable ifmonitor
port ifmonitor sdh-error
Use port ifmonitor sdh-error to configure SDH error packet alarm parameters for an interface.
Use undo port ifmonitor sdh-error to restore the default.
Syntax
port ifmonitor sdh-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]
undo port ifmonitor sdh-error
Default
An interface uses the global SDH error packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for SDH error packet alarms, in the range of 1 to 4294967295 packets.
low-threshold low-value: Specifies the lower threshold for SDH error packet alarms, in the range of 1 to 4294967295 packets.
interval interval: Specifies the statistics collection and comparison interval for SDH error packets, in the range of 1 to 65535 seconds.
shutdown: Shuts down an interface when the number of incoming SDH error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming SDH error packets exceeds the upper threshold on the interface.
Usage guidelines
With the SDH error packet alarm function enabled, when the number of incoming SDH error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming SDH error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the SDH error packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the SDH error packet alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 50, lower threshold to 30, and statistics collection and comparison interval to 10 seconds for SDH error packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor sdh-error high-threshold 50 low-threshold 30 interval 10
Related commands
snmp-agent trap enable ifmonitor
port ifmonitor tx-pause
Use port ifmonitor tx-pause to configure sent pause frame packet alarm parameters for an interface.
Use undo port ifmonitor tx-pause to restore the default.
Syntax
port ifmonitor tx-pause high-threshold high-value low-threshold low-value interval interval
undo port ifmonitor tx-pause
Default
An interface uses the global sent pause frame packet alarm parameters.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
high-threshold high-value: Specifies the upper threshold for sent pause frame packet alarms, in the range of 1 to 4294967295.
low-threshold low-value: Specifies the lower threshold for sent pause frame packet alarms, in the range of 1 to 4294967295.
interval interval: Specifies the statistics collection and comparison interval for sent pause frame packets, in the range of 1 to 65535 seconds.
Usage guidelines
With the sent pause frame packet alarm function enabled, when the number of sent pause frame packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of sent pause frame packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.
You can configure the sent pause frame packet alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface. (Devices that do not support the slot keyword.)
· The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface. (Devices that support the slot keyword.)
· For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.
For this command to take effect, you must use the snmp-agent trap enable ifmonitor command to enable the sent pause frame alarm function.
When you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the upper threshold to 50, lower threshold to 40, and statistics collection and comparison interval to 8 seconds for sent pause frame packet alarms on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] port ifmonitor tx-pause high-threshold 50 low-threshold 40 interval 8
Related commands
snmp-agent trap enable ifmonitor
reset crc-error bit-error-ratio status interface
Use reset crc-error bit-error-ratio status interface to clear the bit error ratio status for interfaces.
Syntax
reset crc-error bit-error-ratio status interface [ interface-type [ interface-number ] ]
Views
User view
Predefined user roles
network-admin
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
Usage guidelines
When an interface is in upper bit error ratio status, this command clears the bit error ratio and releases the upper bit error ratio status for the interface. Then, the interface restores to normal status.
When an interface is in lower bit error ratio status, this command clears the lower bit error ratio status and bit error ratio for the interface.
When an interface is in normal status, this command clears only the bit error ratio for the interface.
If you specify neither interface-type nor interface-number, this command clears the bit error ratio status for all interfaces.
If you specify interface-type but not interface-number, this command clears the bit error ratio status for interfaces of the specified type.
Examples
# Clear the bit error ratio status for Ten-GigabitEthernet 0/0/6.
<Sysname> reset crc-error bit-error-ratio status interface ten-gigabitethernet 0/0/6
Related commands
link-quality crc-error bit-error-ratio
port ifmonitor crc-error bit-error-ratio
snmp-agent trap enable ifmonitor
Use snmp-agent trap enable ifmonitor to enable interface alarm functions.
Use undo snmp-agent trap enable ifmonitor to disable interface alarm functions.
Syntax
snmp-agent trap enable ifmonitor [ crc-error | giant | input-error | input-usage | output-error | output-usage | runt | rx-pause | sdh-b1-error | sdh-b2-error | sdh-error | tx-pause ] *
undo snmp-agent trap enable ifmonitor [ crc-error | giant | input-error | input-usage | output-error | output-usage | runt | rx-pause | sdh-b1-error | sdh-b2-error | sdh-error | tx-pause ] *
Default
Interface alarm functions are enabled.
Views
System view
Predefined user roles
network-admin
Parameters
crc-error: Enables the CRC error packet alarm function for interfaces.
giant: Enables the giant packet alarm function for interfaces.
input-error: Enables the input error packet alarm function for interfaces.
input-usage: Enables the input bandwidth usage alarm function for interfaces.
output-error: Enables the output error packet alarm function for interfaces.
output-usage: Enables the output bandwidth usage alarm function for interfaces.
runt: Enables the runt packet alarm function for interfaces.
rx-pause: Enables the received pause frame alarm function for interfaces.
sdh-b1-error: Enables the SDH-B1 error packet alarm function for interfaces.
sdh-b2-error: Enables the SDH-B2 error packet alarm function for interfaces.
sdh-error: Enables the SDH error packet alarm function for interfaces.
tx-pause: Enables the sent pause frame alarm function for interfaces.
Examples
# Enable the CRC error packet alarm function for interfaces.
<Sysname> system-view
[Sysname] snmp-agent trap enable ifmonitor crc-error