- Table of Contents
-
- H3C S9500 Command Manual-Release2132[V2.03]-01 IP Access Volume
- 00-1Cover
- 01-Ethernet Interface Commands
- 02-POS Interface Commands
- 03-GVRP Commands
- 04-Link Aggregation Commands
- 05-Port Mirroring Commands
- 06-RPR Commands
- 07-Ethernet OAM Commands
- 08-MSTP Commands
- 09-VLAN Commands
- 10-QinQ Commands
- 11-BPDU Tunneling Commands
- 12-Port Isolation Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Ethernet OAM Commands | 89.56 KB |
Table of Contents
Chapter 1 OAM Configuration Commands
1.1 OAM Configuration Commands
1.1.3 display oam configuration
1.1.4 display oam critical-event
1.1.7 oam errored-frame period
1.1.8 oam errored-frame threshold
1.1.9 oam errored-frame-period period
1.1.10 oam errored-frame-period threshold
1.1.11 oam errored-frame-seconds period
1.1.12 oam errored-frame-seconds threshold
1.1.13 oam errored-symbol period
1.1.14 oam errored-symbol threshold
Chapter 1 OAM Configuration Commands
1.1 OAM Configuration Commands
1.1.1 debugging oam
Syntax
debugging oam { all | critical-event | error | fsm | link-event | packet [ send | receive ] } [ interface interface-type interface-number ]
undo debugging oam { all | critical-event | error | fsm | link-event | packet [ send | receive ] } [ interface interface-type interface-number ]
View
User view
Default Level
2: System level
Parameters
all: Enables/disables all the OAM debugging functions.
critical-event: Enables the OAM critical link event debugging.
error: Enables/disables the OAM error debugging.
fsm: Enables/disables the OAM state machine debugging.
link-event: Enables/disables the OAM link event debugging.
packet: Enables/disables the OAM packet debugging.
send: Enables/disables debugging for sent packets.
receive: Enables/disables debugging for received packets.
interface-type interface-number: Specifies a port by its type and number.
Description
Use the debugging oam command to enable specific or all the OAM debugging functions.
Use the undo debugging oam command to disable specific or all the OAM debugging functions.
By default, all the OAM debugging functions are disabled.
Examples
# Enable all the OAM debugging functions on GigabitEthernet 1/1/3.
<Sysname> debugging oam all interface GigabitEthernet 1/1/3
1.1.2 display oam
Syntax
display oam { local | remote } [ interface interface-type interface-number ]
View
Any view
Default Level
2: System level
Parameters
local: Displays the local OAM connection information.
remote: Displays the peer OAM connection information.
interface-type: Port type.
interface-number: Port number.
Description
Use the display oam command to display the information about an OAM connection, including connection status, information contained in OAM packet header, and OAM packet statistics.
If you do not specify the interface keyword, this command displays the information about all the OAM connections.
Examples
# Display the local OAM connection information.
<Sysname> display oam local
Port : Ethernet4/1/1
Link Status : Up
EnableStatus : Enable
Local_oam_mode : Active Local_pdu : ANY
Local_mux_action : FWD Local_par_action : DISCARD
Port : Ethernet4/1/2
Link Status : Down
EnableStatus : Enable
Local_oam_mode : Active Local_pdu : LF_INFO
Local_mux_action : FWD Local_par_action : FWD
Table 1-1 Description on the fields of the display oam local command
Field |
Description |
Port |
Port index |
Link Status |
Link status |
EnableStatus |
OAM state (enabled or disabled) |
Local_oam_mode |
Local OAM mode, which can be: l Active, indicating the port operates in the active OAM mode l Passive, indicating the port operates in the passive OAM mode |
Local_pdu |
The way in which OAMPDUs of different types are processed locally. This field can be: l RX_INFO, indicating the port only receives Information OAMPDUs and does not send OAMPDUs. l LF_INFO, indicating the port only sends the Information OAMPDUs without Information TLV triplets and with their link error flag bits being set l INFO, indicating the port only sends and receives Information OAMPDUs l ANY, indicating the port sends and receives OAMPDUs of any types |
Local_mux_action |
Local sending mode, which can be: l FWD, indicating the port can send any packets l DISCARD, indicating the port only sends OAMPDUs |
Local_par_action |
Local receiving mode, which can be: l FWD, indicating the port can receive any packets l DISCARD, indicating the port only receives OAMPDUs l LB, indicating OAM loopback testing is enabled on the port. In this case, all the packets received are returned to their sources along the ways they come. |
# Display the information about the OAM connection established on the local port Ethernet 4/1/1.
<Sysname> display oam local interface ethernet 4/1/1
Port : Ethernet4/1/1
Link Status : Up
EnableStatus : Enable
Local_oam_mode : Active Local_pdu : ANY
Local_mux_action : FWD Local_par_action : FWD
OAMLocalFlagsField :
--------------------------------------------------------------------------
Link Fault : 0 Dying Gasp : 0
Critical Event : 0 Local Evaluating : COMPLETE
Remote Evaluating : COMPLETE
Packets statistic :
Packets Send Receive
--------------------------------------------------------------------------
OAMPDU 645 648
OAMInformation 645 648
OAMEventNotification 0 --
OAMUniqueEventNotification -- 0
OAMDuplicateEventNotification -- 0
Table 1-2 Description on the fields of the display oam local interface command
Field |
Description |
Port |
Port index |
Link Status |
Link status |
EnableStatus |
OAM state (enabled or disabled) |
Local_oam_mode |
Local OAM mode. Refer to Table 1-1 for more. |
Local_pdu |
The way in which OAMPDUs of different types are processed locally. Refer to Table 1-1 for more. |
Local_mux_action |
Local sending mode. Refer to Table 1-1 for more. |
Local_par_action |
Local receiving mode. Refer to Table 1-1 for more. |
OAMLocalFlagsField |
Local flags inserted in the local flag fields of the OAMPDUs sent |
Link Fault |
Indicates whether OAM link error events occurred. A value of 0 indicates no OAM error event occurs; a value of 1 indicates OAM error event occurrences. |
Dying Gasp |
Indicate whether Dying Gasp events occurred. A value of 0 indicates no Dying Gasp event occurs; a value of 1 indicates Dying Gasp event occurrences. |
Critical Event |
Indicates whether Critical Events occurred. A value of 0 indicates no Critical event occurs; a value of 1 indicates Critical event occurrences. |
Local Evaluating |
Indicates whether the local-to-remote configuration negotiation is complete. |
Remote Evaluating |
Indicates whether the remote-to-local configuration negotiation is complete. |
Packets statistic |
Statistics on OAM packets sent and received |
OAMPDU |
Total number of the OAMPDUs sent and received |
OAMInformation |
Number of the Information OAMPDUs sent and received |
OAMEventNotification |
Number of the Event notification OAMPDUs sent and received |
OAMUniqueEventNotification |
Number of the unduplicated Event notification OAMPDUs sent or received uniquely |
OAMDuplicateEventNotification |
Number of the duplicate Event notification OAMPDUs sent or received |
# Display about the peer OAM information.
<Sysname> display oam remote
Port :Ethernet4/1/1
Link Status :Up
Information of the latest received OAM packet:
OAMRemoteMACAddress : 00e0-fc00-3552
OAMRemotePDUConfiguration : 1500
Remote_mux_action : FWD Remote_par_action : FWD
Table 1-3 Description on the fields of the display oam remote command
Field |
Description |
Port |
Port index |
Link Status |
Link status |
Information of the latest received OAM packet |
Information about the latest received OAM packet |
OAMRemoteMACAddress |
MAC address of the OAM peer |
OAMRemotePDUConfiguration |
Maximum OAMPDU size allowed |
Remote_mux_action |
Peer sending mode. Refer to Table 1-1 for more. |
Remote_par_action |
Peer receiving mode. Refer to Table 1-1 for more. |
# Display the OAM information about the peer port Ethernet 4/1/1.
<Sysname> display oam remote interface ethernet 4/1/1
Port : Ethernet4/1/1
Link Status : Up
Information of the latest received OAM packet:
OAMRemoteMACAddress : 00e0-fd73-6502
OAMRemotePDUConfiguration : 1500
OAMRemoteState :
--------------------------------------------------------------------------
Remote_mux_action : FWD Remote_par_action : FWD
OAMRemoteConfiguration :
--------------------------------------------------------------------------
OAM Mode : Active Unidirectional Support : YES
Loopback Support : YES Link Events : YES
Variable Retrieval : NO
OAMRemoteFlagsField :
--------------------------------------------------------------------------
Link Fault : 0 Dying Gasp : 0
Critical Event : 0 Local Evaluating : COMPLETE
Remote Evaluating : COMPLETE
Table 1-4 Description on the fields of the display oam remote interface command
Field |
Description |
Port |
Port index |
Link Status |
Link status |
Information of the latest received OAM packet |
Information about the latest received OAM packet |
OAMRemoteMACAddress |
MAC address of the OAM peer |
OAMRemotePDUConfiguration |
Maximum OAMPDU size allowed |
OAMRemoteState |
State of the peer OAM peer |
Remote_mux_action |
Peer sending mode. Refer to Table 1-1 for more. |
Remote_par_action |
Peer receiving mode. Refer to Table 1-1 for more. |
OAMRemoteConfiguration |
Configuration of the peer OAM entity |
OAM Mode |
OAM mode |
Unidirectional Support |
Indicates whether unidirectional transmission is supported (YES or NO) |
Loopback Support |
Indicates whether OAM loopback testing is supported (YES or NO) |
Link Events |
Indicates whether OAM link error events are supported (YES or NO) |
Variable Retrieval |
Indicates whether MIB variable retrieval is supported (YES or NO) |
OAMRemoteFlagsField |
Values of the peer OAM flag fields in OAM packets |
Link Fault |
Indicates whether OAM link error events occurred. Refer to Table 1-2 for more. |
Dying Gasp |
Indicate whether Dying Gasp events occurred. Refer to Table 1-2 for more. |
Critical Event |
Indicate whether Critical events occurred. Refer to Table 1-2 for more. |
Local Evaluating |
Indicates whether the local-to-remote configuration negotiation is complete. |
Remote Evaluating |
Indicates whether the remote-to-local configuration negotiation is complete. |
& Note:
l Currently, the S9500 does not support the Dying Gasp or Critical Event function.
l If the sender operates in the FWD mode and the receiver in the DISCARD mode, this indicates that the local end serves as the controlling end of the remote loopback. If the sender operates in the DISCARD mode and the receiver in the LB mode, this indicates the local end serves as the controlled end of the remote loopback.
1.1.3 display oam configuration
Syntax
display oam configuration
View
Any view
Default Level
2: System level
Parameters
None
Description
Use the display oam configuration command to display global OAM global, including the periods and thresholds for OAM link error event detection.
Related commands: oam errored-symbol period, oam errored-symbol threshold, oam errored-frame period, oam errored-frame threshold, oam errored-frame-period period, oam errored-frame-period threshold, oam errored-frame-seconds period, oam errored-frame-seconds threshold.
Examples
# Display global OAM configuration.
<Sysname> display oam configuration
Configuration of the link event window/threshold :
--------------------------------------------------------------------------
Errored-symbol Event period(in seconds) : 1
Errored-symbol Event threshold : 1
Errored-frame Event period(in seconds) : 1
Errored-frame Event threshold : 1
Errored-frame-period Event period(in ms) : 1000
Errored-frame-period Event threshold : 1
Errored-frame-seconds Event period(in seconds) : 60
Errored-frame-seconds Event threshold : 1
Table 1-5 Description on the fields of the display oam configuration command
Field |
Description |
Configuration of the errored link event window/threshold |
Periods and thresholds for OAM link error event detection |
Errored-symbol Event period |
Error symbol detection interval, which defaults to one second. |
Errored-symbol Event threshold |
Error threshold that triggers an error symbol event, which defaults to 1. |
Errored-frame Event period |
Error frame detection interval, which defaults to one second. |
Errored-frame Event threshold |
Error threshold that triggers an error frame event, which defaults to 1. |
Errored-frame-period Event period |
Error frame period detection interval, which defaults to 1000 milliseconds. |
Errored-frame-period Event threshold |
Error threshold that triggers an error frame period event, which defaults to 1. |
Errored-frame-seconds Event period |
Error frame second detection interval, which defaults to 60 seconds. |
Errored-frame-seconds Event threshold |
Error threshold that triggers an error frame seconds event, which defaults to 1. |
1.1.4 display oam critical-event
Syntax
display oam critical-event [ interface interface-type interface-number]
View
Any view
Default Level
2: System level
Parameters
interface-type: Port type.
interface-number: Port number.
Description
Use the display oam critical-event command to display the statistics on critical OAM link events occurred on a port.
If you do not specify the interface keyword, this command displays the statistics on the critical OAM link events occurred on all the ports of the switch.
Examples
# Display the statistics on critical OAM link events that occurred on all the ports.
<Sysname> display oam critical-event
Port : Ethernet4/1/1
Link Status : Up
Event statistic :
-------------------------------------------------------------------------
Link Fault :0 Dying Gasp : 0 Critical Event : 0
Table 1-6 Description on the fields of the display oam critical-event command
Field |
Description |
Port |
Port index |
Link Status |
Link status |
Event statistic |
Statistics on critical OAM link events |
Link Fault |
Indicates whether OAM link error events occurred. Refer to Table 1-2 for more. |
Dying Gasp |
Indicates whether Dying Gasp events occurred. Refer to Table 1-2 for more. |
Critical Event |
Indicate whether Critical events occurred. Refer to Table 1-2 for more. |
1.1.5 display oam link-event
Syntax
display oam link-event { local | remote } [ interface interface-type interface-number ]
View
Any view
Default Level
2: System level
Parameters
local: Displays the statistics on the local OAM link error events.
remote: Displays the statistics on the peer OAM link error events.
interface-type: Port type.
interface-number: Port number.
Description
Use the display oam link-event command to display the statistics on OAM link error events occurred on a local port or a peer port. OAM link error events include error symbol events, error frame events, error frame period events, and error frame seconds events.
If you do not specify the interface keyword, this command displays the statistics on the OAM link error events occurred on all the local/peer ports.
Related commands: display oam configuration.
Examples
# Display the statistics on OAM link error events that occurred on all the local ports.
<Sysname> display oam link-event local
Port : Ethernet4/1/1
Link Status : Up
OAMLocalErrFrameEvent : (ms = milliseconds)
--------------------------------------------------------------------------
Event Time Stamp : 3539 Errored Frame Window : 10(100ms)
Errored Frame Threshold : 5 Errored Frame : 1488111
Error Running Total : 260908758 Event Running Total : 307
OAMLocalErrFramePeriodEvent :
--------------------------------------------------------------------------
Event Time Stamp : 3539 Errored Frame Window : 976500
Errored Frame Threshold : 1 Errored Frame : 1042054
Error Running Total : 260909151 Event Running Total : 471
OAMLocalErrFrameSecsSummaryEvent : (ms = milliseconds)
--------------------------------------------------------------------------
Event Time Stamp : 3389
Errored Frame Second Summary Window : 600(100ms)
Errored Frame Second Summary Threshold : 1
Errored Frame Second Summary : 60
Error Running Total : 292 Event Running Total : 5
Table 1-7 Description on the fields of the display oam link-event local command
Field |
Description |
Port |
Port index |
Link Status |
Link status |
OAMLocalErrFrameEvent : (ms = milliseconds) |
Information about the local error frame events. l Event Time Stamp: time when an error frame event occurs (in terms of 100 milliseconds). l Errored Frame Window: period for error frame event detection (in terms of 100 milliseconds). l Errored Frame Threshold: error threshold that triggers an error frame event. l Errored Frame: the number of error frames in the specific period. l Error Running Total: the total number of error frames. l Event Running Total: the total number of error frame events that have occurred. |
OAMLocalErrFramePeriodEvent |
Information about the local error frame period events: l Event Time Stamp: time when an error frame event occurs (in terms of 100 milliseconds). l Errored Frame Window: maximum number of 64-byte frames that can be transmitted through an Ethernet port in the period. This value is obtained by using the following expression: bandwidth * period / (64 * 8 * 1000), where “bandwidth” is the port bandwidth (in bps) and “period” is the configured period (in milliseconds). l Errored Frame Threshold: error threshold that triggers an error frame period event l Errored Frame: the number of error frames in a specific period. l Error Running Total: the total number of error frames that have occurred. l Event Running Total: the total number of error frame period events. |
OAMLocalErrFrameSecsSummaryEvent : (ms = milliseconds) |
Information about the local error frame seconds events l Event Time Stamp: time when a error frame seconds event occurs (in terms of 100 milliseconds). l Errored Frame Second Summary Window: error frame second detection interval (in terms of 100 milliseconds). l Errored Frame Second Summary Threshold: error threshold that triggers an error frame seconds event. l Errored Frame Second Summary: the number of error frame seconds in a specific period. l Error Running Total: the total number of error frame seconds. l Event Running Total: the total number of error frame seconds events that have occurred. |
1.1.6 oam enable
Syntax
oam enable
undo oam enable
View
Ethernet port view
Default Level
2: System level
Parameters
None
Description
Use the oam enable command to enable OAM on a Ethernet port.
Use the undo oam enable command to disable OAM.
By default, OAM is disabled on all ports.
After you enable OAM for an Ethernet port, the port try to establish an OAM connection to the peer in the predetermined mode.
Related commands: oam mode.
Examples
# Enable OAM on Ethernet 1/1.
<Sysname> system-view
[Sysname] interface ethernet 4/1/1
[Sysname-Ethernet4/1/1] oam enable
1.1.7 oam errored-frame period
Syntax
oam errored-frame period period-value
undo oam errored-frame period
View
System view
Default Level
2: System level
Parameters
period-value: Error frame detection interval in seconds, ranging from 1 to 60.
Description
Use the oam errored-frame period command to set the error frame detection interval.
Use the undo oam errored-frame period command to restore the default.
The default error frame detection interval is one second.
When the number of error frames detected on an Ethernet port over a detection interval reaches the error frame threshold, an error frame event occurs.
The error frame detection interval configuration takes effect on all the Ethernet ports that have an Ethernet OAM connection.
Related commands: oam errored-frame threshold, display oam link-event, and display oam configuration.
& Note:
For the LSB1GV48DB0 board on an S9500 series switch, gap may exist between the number of detected error frames and the actual number of error frames over a detection interval due to the detection frequency restriction.
Examples
# Set error frame detection interval to 10 seconds.
<Sysname> system-view
[Sysname] oam errored-frame period 10
1.1.8 oam errored-frame threshold
Syntax
oam errored-frame threshold threshold-value
undo oam errored-frame threshold
View
System view
Default Level
2: System level
Parameters
threshold-value: Error threshold in frames for creating an error frame event, ranging from 0 to 4,294,967,295.
Description
Use the oam errored-frame threshold command to configure the error threshold that triggers an error frame event.
Use the undo oam errored-frame threshold command to restore the default.
The default error threshold that triggers an error frame event is 1.
When the number of error frames detected on a port over a detection interval reaches the error frame threshold, an error frame event occurs.
The error frame threshold configuration takes effect on all the Ethernet ports that have an Ethernet OAM connection.
Related commands: oam errored-frame period, display oam link-event, display oam configuration.
Examples
# Configure the error threshold that triggers an error frame event to 100.
[Sysname] oam errored-frame threshold 100
1.1.9 oam errored-frame-period period
Syntax
oam errored-frame-period period period-value
undo oam errored-frame-period period
View
System view
Default Level
2: System level
Parameters
period-value: Error frame period detection interval, ranging from 100 to 60,000 (in milliseconds).
Description
Use the oam errored-frame-period period command to set the error frame period detection interval.
Use the undo oam errored-frame-period period command to restore the default.
The default error frame period detection interval is 1,000 milliseconds.
The system converts the configured interval to the maximum number of packets that a port can send over this interval with the following expression:
Max. number of packets = bandwidth × interval/(64 × 8 x 1000)
Where, bandwidth is the port bandwidth in bps and interval is the configured error frame period detection interval in milliseconds.
When the number of error frames detected on a port over a detection interval is equal to or greater than the error threshold, an error frame period event occurs.
The error frame period detection interval configuration takes effect on all the Ethernet ports that have an Ethernet OAM connection.
Related commands: oam errored-frame-period threshold, display oam link-event, and display oam configuration.
& Note:
For the LSB1GV48DB0 board on an S9500 series switch, you are recommended to set the error frame period detection interval to a value equal to or greater than 2000 ms, considering the restriction of the board on detection frequency.
Examples
# Set the error frame period detection interval to 10 seconds.
[Sysname] oam errored-frame-period period 10000
1.1.10 oam errored-frame-period threshold
Syntax
oam errored-frame-period threshold threshold-value
undo oam errored-frame-period threshold
View
System view
Default Level
2: System level
Parameters
threshold-value: Error threshold for creating an error frame period event, ranging from 0 to 4,294,967,295.
Description
Use the oam errored-frame-period threshold command to set the error threshold that triggers an error frame period event.
Use the undo oam errored-frame-period threshold command to restore the default.
The default error threshold that triggers an error frame period event is 1.
When the number of error frames detected on a port over a detection interval reaches the threshold, an error frame period event occurs.
The error frame threshold configuration takes effect on all the Ethernet ports that have an Ethernet OAM connection.
Related commands: oam errored-frame-period period, display oam link-event, and display oam configuration.
Examples
# Set the error threshold for creating an error frame period event to 100.
<Sysname> system-view
[Sysname] oam errored-frame-period threshold 100
1.1.11 oam errored-frame-seconds period
Syntax
oam errored-frame-seconds period period-value
undo oam errored-frame-seconds period
View
System view
Default Level
2: System level
Parameters
period-value: Error frame second detection interval, ranging from 10 to 900 (in seconds).
Description
Use the oam errored-frame-seconds period command to set the error frame second detection interval.
Use the undo oam errored-frame-seconds period command to restore the default.
The default error frame second detection interval is 60 seconds.
Error frame seconds are the seconds within which error frames are detected.
When the number of error frame seconds detected on a port over a detection interval reaches the error threshold, an error frame seconds event occurs.
The error frame second detection interval configuration takes effect on all the Ethernet ports that have an Ethernet OAM connection.
Related commands: oam errored-frame-seconds threshold, display oam link-event, display oam configuration.
& Note:
For the LSB1GV48DB0 board on an S9500 series switch, gap may exist between the number of detected error frame seconds and the actual number of error frame seconds over a detection interval due to the detection frequency restriction.
Examples
# Set the error frame second detection interval to 100 seconds.
<Sysname> system-view
[Sysname] oam errored-frame-seconds period 100
1.1.12 oam errored-frame-seconds threshold
Syntax
oam errored-frame-seconds threshold threshold-value
undo oam errored-frame-seconds threshold
View
System view
Default Level
2: System level
Parameters
threshold-value: Error threshold in number of seconds for creating an error frame seconds event, ranging from 0 to 900.
Description
Use the oam errored-frame-seconds threshold command to set the error threshold that triggers an error frame seconds event.
Use the undo oam errored-frame-seconds threshold command to restore the default.
Error frame seconds are the seconds within which error frames are detected.
When the number of error frame seconds detected on a port over a detection interval reaches the error threshold, an error frame seconds event occurs.
The error frame second threshold configuration takes effect on all the Ethernet ports that have an Ethernet OAM connection.
Related commands: oam errored-frame-seconds period, display oam link-event, display oam configuration.
Examples
# Set the error threshold that triggers an error frame second event to 100.
[Sysname] oam errored-frame-seconds threshold 100
1.1.13 oam errored-symbol period
Syntax
oam errored-symbol period period-value
undo oam errored-symbol period
View
System view
Default Level
2: System level
Parameters
period-value: Error symbol detection interval, ranging from 1 to 60 (in seconds).
Description
Use the oam errored-symbol period command to set the error symbol detection interval.
Use the undo oam errored-symbol period command to restore the default.
The default error symbol detection interval is one second.
When the number of error symbols detected on a port over a detection interval reaches the error threshold, an error symbol event occurs.
The error symbol detection interval configuration takes effect on all the Ethernet ports that have an Ethernet OAM connection.
Related commands: oam errored-symbol threshold, display oam link-event, display oam configuration.
Examples
# Set the error symbol detection interval to 10 seconds.
[Sysname] oam errored-symbol period 10
1.1.14 oam errored-symbol threshold
Syntax
oam errored-symbol threshold threshold-value
undo oam errored-symbol threshold
View
System view
Default Level
2: System level
Parameters
threshold-value: Error threshold in number of symbols for creating an error symbol event, ranging from 0 to 4,294,967,295.
Description
Use the oam errored-symbol threshold command to configure the error threshold that triggers an error symbol event.
Use the undo oam errored-symbol threshold command to restore the default.
The default error threshold that triggers an error symbol event is 1.
When the number of error symbols detected on a port over a detection interval reaches the error threshold, an error symbol event occurs.
The error symbol threshold configuration takes effect on all the Ethernet ports that have an Ethernet OAM connection.
Related commands: oam errored-symbol period, display oam link-event, and display oam configuration.
Examples
# Set the threshold that triggers an error symbol event to 100.
[Sysname] oam errored-symbol threshold 100
1.1.15 oam loopback
Syntax
oam loopback
undo oam loopback
View
Ethernet port view
Default Level
2: System level
Parameters
None
Description
Use the oam loopback command to enable remote loopback on an Ethernet port.
Use the undo oam loopback command to disable remote loopback.
By default, remote loopback is disabled.
Note that:
l Remote loopback is available only after the OAM connection is established.
l Remote loopback can be performed by OAM entities operating in the active OAM mode only.
l Remote loopback is available only when it is supported on both the local port and the peer port.
l Enabling remote loopback results in all the data communications being stopped. After remote loopback is disabled, all the ports involved will be shut down and then brought up.
l Remote loopback is disabled when you execute the undo oam enable command to disable OAM; when you execute the undo oam loopback command to disable remote loopback; or when the OAM connection is timed out.
Related commands: oam enable and oam mode.
& Note:
Currently, on an S9500 series switch, you can perform remote loopback only on Gigabit electrical interfaces.
Examples
# Enable remote loopback on GigabitEthernet 6/2/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface GigabitEthernet 6/2/1
[Sysname-GigabitEthernet6/2/1] oam mode active
[Sysname-GigabitEthernet6/2/1] oam enable
[Sysname-GigabitEthernet6/2/1] oam loopback
1.1.16 oam mode
Syntax
oam mode { active | passive }
View
Ethernet port view
Default Level
2: System level
Parameters
active: Specifies the active OAM mode.
passive: Specifies the passive OAM mode.
Description
Use the oam mode command to set the OAM operating mode for an Ethernet port. By default, an OAM-enabled Ethernet port operates in the active OAM mode.
Note that:
l No OAM connection can be established between two Ethernet ports operating in the passive OAM mode.
l For an OAM-enabled Ethernet port, the OAM operating mode cannot be changed. To do this, you need to disable OAM on the port first.
Related commands: oam enable.
Examples
# Configure Ethernet 4/1/1 to operate in the active OAM mode.
<Sysname> system-view
[Sysname] interface ethernet 4/1/1
[Sysname-Ethernet4/1/1] oam mode active
1.1.17 reset oam
Syntax
reset oam [ interface interface-type interface-number ]
View
User view
Default Level
2: System level
Parameters
interface-type: Port type.
interface-number: Port number.
Description
Use the reset oam command to clear the statistics on OAM packets and OAM link error events of an Ethernet port.
If you do not specify the interface keyword, this command clears the statistics on OAM packets and OAM link error events of all the ports.
Examples
# Clear the statistics on OAM packets and OAM link error events of all the ports.
<Sysname> reset oam
& Note:
The statistics cleared include the information OAMPDU statistics, event notification OAMPDU statistics, and the statistics about the event packets sent or received by OAM at a time or repeatedly.