H3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume
11-Ethernet OAM Commands
Title Size Download
11-Ethernet OAM Commands 121.43 KB

Chapter 1  Ethernet OAM Configuration Commands

1.1  Ethernet OAM Configuration Commands

1.1.1  debugging oam ethernet critical-event

Syntax

debugging oam ethernet critical-event [ interface interface-type interface-number ]

undo debugging oam ethernet critical-event [ interface interface-type interface-number ]

View

User view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

Description

Use the debugging oam ethernet critical-event command to enable debugging for an OAM critical link event. When the OAM critical link event is received, this command displays related debugging information.

Use the undo debugging oam ethernet critical-event to disable debugging for an OAM critical link event.

If you do not specify a port type and port number, this command displays the debugging information of critical link events on all the ports of the switch. If you specify a port type and port number, this command displays the debugging information of critical link events on the specified port.

You can see the debugging information only after you enable debugging of the terminal.
Related commands: terminal debugging.

Examples

# Enable debugging for an OAM critical link event.

<H3C> debugging oam ethernet critical-event interface Ethernet 1/1/1

*0.272586 H3C ETHOAM/8/ENT:

OAM Port Ethernet 1/1/1: OAM Link Fault event occurred.

1.1.2  debugging oam ethernet error

Syntax

debugging oam ethernet error [ interface interface-type interface-number ]

undo debugging oam ethernet error [ interface interface-type interface-number ]

View

User view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

Description

Use the debugging oam ethernet error command to enable debugging for an OAM error. When an error occurs in the process of processing OAM packets, this command displays related debugging information.

Use the undo debugging oam ethernet error to disable debugging for an OAM error.

If you do not specify a port type and port number, this command displays the debugging information of OAM errors on all the ports of the switch.

If you specify a port type and port number, this command displays the debugging information of OAM errors on the specified port.

You can see the debugging information only after you enable debugging of the terminal.
Related commands: terminal debugging.

Examples

# Enable debugging for an OAM error.

<H3C> debugging oam ethernet error interface Ethernet 1/1/1

*0.274536 H3C ETHOAM/8/PktLocalTLVErrRX:

OAM Port Ethernet 1/1/1: no local-TLV or local-TLV error in packet received.

1.1.3  debugging oam ethernet fsm

Syntax

debugging oam ethernet fsm [ interface interface-type interface-number ]

undo debugging oam ethernet fsm [ interface interface-type interface-number ]

View

User view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

Description

Use the debugging oam ethernet fsm command to enable debugging of an OAM state machine. When an OAM state transition occurs, this command displays related debugging information.

Use the undo debugging oam ethernet fsm to disable debugging of an OAM state machine.

If you do not specify a port type and port number, this command displays the state information of all the ports.

If you specify a port type and port number, this command displays the state information of the specified port.

You can see the debugging information only after you enable debugging of the terminal.
Related commands: terminal debugging.

Examples

# Enable debugging of an OAM state machine.

<H3C> debugging oam ethernet fsm interface Ethernet 1/1/1

*0.85557786 H3C ETHOAM/8/Transfer:

OAM Port Ethernet1/1/1:Discovery state transfers from state FAULT to stat

e ACTIVE_SEND_LOCAL.

1.1.4  debugging oam ethernet link-event

Syntax

debugging oam ethernet link-event [ interface interface-type interface-number ]

undo debugging oam ethernet link-event [ interface interface-type interface-number ]

View

User view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

Description

Use the debugging oam ethernet link-event command to enable debugging for an OAM link event. When an OAM link event is received, the command displays related debugging information.

Use the undo debugging oam ethernet link-event to disable debugging for an OAM link event.

If you do not specify a port type and port number, this command displays the debugging information of link events on all the ports of the switch.

If you specify a port type and port number, this command displays the debugging information of link events on the specified port.

You can see the debugging information only after you enable debugging of the terminal.
Related commands: terminal debugging.

Examples

# Enable debugging for an OAM link events.

<H3C> debugging oam ethernet link-event interface Ethernet 1/1/1

*0.272606 H3C ETHOAM/8/ENT:

OAM Port Ethernet 1/1/1: OAM Errored Symbol Period Event occurred.

1.1.5  debugging oam ethernet packet

Syntax

debugging oam ethernet packet [ send | receive ] [ interface interface-type interface-number ]

undo debugging oam ethernet packet [ send | receive ] [ interface interface-type interface-number ]

View

User view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

send: Displays the debugging information of a sent packet.

receive: Displays the debugging information of a received packet.

Description

Use the debugging oam ethernet packet command to enable debugging for an OAM packet. When an OAM packet is received, this command displays related debugging information.

Use the undo debugging oam ethernet packet to disable debugging for an OAM packet.

If you do not specify a port type and port number, this command displays the debugging information of OAM packets on all the ports of the switch.

If you specify a port type and a port number, this command displays the debugging information of OAM packets on the specified port.

Examples

# Enable debugging for an OAM packet.

<H3C> debugging oam ethernet packet interface Ethernet 1/1/1

*0.13784506 H3C ETHOAM/8/Pkt:

Send OAM Packet via port Ethernet1/1/1

03 00 50 00 01 10 01 00 00 00 01 05 dc 00 0f e2

00 00 00 00 02 10 01 00 00 00 01 05 dc 00 0f e2

00 00 00 00 00 00 00 00 00 00 00 00 00 00

Pkt length: 46

 

*0.13784710 H3C ETHOAM/8/Pkt:

Receive OAM Packet via port Ethernet1/1/1

03 00 50 00 01 10 01 00 00 00 01 05 dc 00 0f e2

00 00 00 00 02 10 01 00 00 00 01 05 dc 00 0f e2

00 00 00 00 00 00 00 00 00 00 00 00 00 00

Pkt length: 46

1.1.6  display oam ethernet

Syntax

display oam ethernet { local | remote } [ interface interface-type interface-number ]

View

Any view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

local: Displays local information.

remote: Displays remote information.

Description

Use the display oam ethernet command to display related information of an OAM connection, such as connection state, information contained in an OAM packet header, and the statistics information of OAM packets.

If you do not specify a port type and a port number, this command displays the information of OAM connections on all the ports of the switch. If you specify a port type and a port number, this command displays the information of the OAM connection on the specified port.

Examples

# Display the local information of an OAM connection.

<H3C> display oam ethernet local

OAM hello timer       :  1000(ms)

OAM keepalive timer   :  5000(ms)

Port :Ethernet1/1/1

Link Status :Up

EnableStatus              : Enable

Local_oam_mode            : Active      Local_pdu              : ANY

Table 1-1 Description on the fields of the display oam ethernet local command

Field

Description

OAM hello timer

OAM handshake interval

OAM keepalive timer

OAM link timeout time

Port :Ethernet1/1/1

Port Ethernet1/1/1

Link Status

Link state

EnableStatus

Enabled state

Local_oam_mode

Local OAM mode

Local_pdu

The local endpoint can send OAMPDU of any type.

 

# Display the Ethernet OAM information about the local port GigabitEthernet 2/1/1.

<H3C> display oam ethernet local interface GigabitEthernet2/1/1

Port        : GigabitEthernet2/1/1

Link Status : Up

EnableStatus              : Enable

Local_oam_mode            : Active      Local_pdu              : INFO

Local_mux_action          : FWD         Local_par_action       : FWD

 

OAMLocalFlagsField :

--------------------------------------------------------------------------

Link Fault                : 0           Dying Gasp             : 0

Critical Event            : 0           Local Evaluating       : RESERVED

Remote Evaluating         : RESERVED

 

Packets statistic :

Packets                        Send                   Receive

--------------------------------------------------------------------------

OAMPDU                         337                    0

OAMInformation                 337                    0

OAMEventNotification           0                      --

OAMUniqueEventNotification     --                     0

OAMDuplicateEventNotification  --                     0

Table 1-2 Description on the fields of the display oam ethernet local interface command

Field

Description

Port

Port

Link Status

Link status

EnableStatus

Whether Ethernet OAM is enabled

Local_oam_mode

Local Ethernet OAM mode

Local_pdu

The type of OAMPDUs sent locally

Local_mux_aciton

The operating mode of the local sender

Local_par_aciton

The operating mode of the local receiver

OAMLocalFlagsField

The local flag field carried in an Ethernet OAMPDU

Link Fault

Indicates whether a Link fault event occurs: a value of 0 indicates no link fault event occurs, while 1 indicates a link fault event occurs.

Dying Gasp

Indicates whether a Dying gasp event occurs: a value of 0 indicates no dying gasp event occurs, while 1 indicates a dying gasp event occurs.

Critical Event

Indicates whether a Critical event occurs: a value of 0 indicates no Critical event occurs, while 1 indicates a Critical event occurs.

Local Evaluating

Indicates whether the local negotiation for the remote configuration is completed.

Remote Evaluating

Indicates whether the remote negotiation for the local configuration is completed

Packets statistic

Statistics on the OAM packets received/sent

OAMPDU

Ethernet OAM protocol data unit

OAMInformation

Ethernet OAM information packet

OAMEventNotification

Ethernet OAM event notification packet

OAMUniqueEventNotification

Ethernet OAM event notification packet sent or received only once

OAMDuplicateEventNotification

Ethernet OAM event notification packet sent or received for multiple times

 

# Display the Ethernet OAM information about the remote end.

<H3C> display oam ethernet remote

Port        : GigabitEthernet1/1/1

Link Status : Up

Information of the latest received OAM packet:

OAMRemoteMACAddress       : 00e0-fc4f-fb9f

OAMRemotePDUConfiguration : 1500

Table 1-3 Description on the fields of the display oam ethernet remote command

Field

Description

Port

Port

Link Status

Link status

Information of the latest received OAM packet

Information about the latest received OAM packet

OAMRemoteMACAddress

MAC address of the remote Ethernet OAM end

OAMRemotePDUConfiguration

The maximum OAM packet size allowed

 

# Display the Ethernet OAM information about the remote port GigabitEthernet 2/1/1.

<H3C> display oam ethernet remote interface GigabitEthernet 2/1/1

Port        : GigabitEthernet2/1/1

Link Status : Up

Information of the latest received OAM packet:

OAMRemoteMACAddress       : 00e0-fc4f-fb9f

OAMRemotePDUConfiguration : 1500

 

OAMRemoteState :

--------------------------------------------------------------------------

Remote_mux_action         : FWD         Remote_par_action      : FWD

OAMRemoteConfiguration :

--------------------------------------------------------------------------

OAM Mode                  : Active      Unidirectional Support : NO

Loopback Support          : YES         Link Events            : YES

Variable Retrieval        : YES

 

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 ethernet remote interface command

Field

Description

Port

Port

Link Status

Link status

Information of the latest received OAM packet

Information of the latest received OAM packet

OAMRemoteMACAddress

MAC address of the remote Ethernet OAM end

OAMRemotePDUConfiguration

The maximum Ethernet OAM packet size allowed

OAMRemoteState

State of the remote Ethernet OAM entity

Remote_mux_aciton

Operating mode of the remote sender

Remote_par_aciton

Operating mode of the remote receiver

OAMRemoteConfiguration

Configuration of the remote Ethernet OAM entity

OAM Mode

Ethernet OAM mode

Unidirectional Support

Indicates whether unidirectional transmission is supported: a value of yes indicates that unidirectional transmission is supported, while no indicates that unidirectional transmission is not supported.

Loopback Support

Indicates whether loopback is supported: a value of yes indicates that loopback is supported, while no indicates that loopback is not supported.

Link Events

Indicates whether link events are supported: a value of yes indicates that link events are supported, while no indicates that link events are not supported.

Variable Retrieval

Indicates whether MIB variable retrieval is supported: a value of yes indicates that MIB variable retrieval is supported, while no indicates that MIB variable retrieval is not supported.

OAMRemoteFlagsField

Remote flag fields of an Ethernet OAM packet

Link Fault

Indicates whether a Link fault event occurs: a value of 0 indicates no link fault event occurs, while 1 indicates a link fault event occurs.

Dying Gasp

Indicates whether a Dying gasp event occurs: a value of 0 indicates no Dying gasp event occurs, while 1 indicates a Dying gasp event occurs.

Critical Event

Indicates whether a Critical event occurs: a value of 0 indicates no Critical event occurs, while 1 indicates a Critical event occurs.

Local Evaluating

Indicates whether the local negotiation for the remote configuration is completed.

Remote Evaluating

Indicates whether the remote negotiation for the local configuration is completed.

 

1.1.7  display oam ethernet configuration

Syntax

display oam ethernet configuration

View

Any view

Parameters

None

Description

Use the display oam ethernet configuration command to display global OAM configuration information, including various periods and thresholds.

Related commands: oam ethernet errored-symbol period, oam ethernet errored-frame period, oam ethernet errored-frame period, oam ethernet errored-frame threshold, oam ethernet errored-frame-period period, oam ethernet errored-frame-period threshold, oam ethernet errored-frame-seconds period, oam ethernet errored-frame-seconds threshold.

Examples

# Display the global configuration information of OAM.

<H3C> display oam ethernet configuration

Configuration of the link event window/threshold : (s = seconds, f = frames, ms = milliseconds)

--------------------------------------------------------------------------

Errored-symbol Event period           :         1(s)

Errored-symbol Event threshold        :         1(f)

Errored-frame Event period            :         1(s)

Errored-frame Event threshold         :         1(f)

Errored-frame-period Event period     :      1000(ms)

Errored-frame-period Event threshold  :         1(f)

Errored-frame-seconds Event period    :        60(s)

Errored-frame-seconds Event threshold :         1(s)

Table 1-5 Description on the fields of the display oam ethernet configuration command

Field

Description

Configuration of the errored symbol/frame event

Configuration of errored symbol and errored-frame event

window/threshold

Window/threshold

Errored-symbol Event period

Error signal event period, 1 second by default.

Errored-symbol Event threshold

Error signal event threshold, 1 by default.

Errored-frame Event period

Errored frame event period, 1 second by default.

Errored-frame Event threshold

Errored frame event threshold, 1 by default.

Errored-frame-period Event period

Errored frame period event period, 1000 milliseconds by default.

Errored-frame-period Event threshold

Errored frame period event threshold, 1 by default.

Errored-frame-seconds Event period

Errored frame seconds event period, 60 seconds by default.

Errored-frame-seconds Event threshold

Errored frame seconds event threshold, 1 by default.

 

1.1.8  display oam ethernet critical-event

Syntax

display oam ethernet critical-event [ interface interface-type interface-number ]

View

Any view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

Description

Use the display oam ethernet critical-event command to display the statistics information of critical link events after the establishment of the OAM connection.

If you do not specify a port, this command displays the statistics information of all the ports.

Examples

# Display the statistics information of critical link events.

<H3C> display oam ethernet critical-event

Port :Ethernet1/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 ethernet critical-event command

Field

Description

Port :Ethernet1/1/1

Port Ethernet1/1/1

Link Status

Link state

Event statistic

Statistics of critical link events

Link Fault

Number of link fault events

Dying Gasp

Number of Dying Gasp events

Critical Event

Number of critical events

 

1.1.9  display oam ethernet link-event

Syntax

display oam ethernet link-event { local | remote } [ interface interface-type interface-number ]

View

Any view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

local: Displays link events generated on a local port.

remote: Displays the statistics information of received remote link events.

Description

Use the display oam ethernet link-event command to display the statistics information of link events after the OAM sublayer is reset or the statistics information is cleared.

Link events include error signal event, errored-frame event, error signal period event, and errored frame seconds event.

If you do not specify a port type and a port number, this command displays the information of link events on all the ports of the switch.

If you specify a port type and a port number, this command displays the information of link events on the specified port.

Related commands: display oam ethernet configuration.

Examples

# Display the statistics on OAM link events.

<H3C> display oam ethernet link-event local

Port        : GigabitEthernet4/1/1

Link Status : Up

 

OAMLocalErrFrameEvent : (s = seconds, f = frames, t = times)

--------------------------------------------------------------------------

Event Time Stamp        :        315(s) Errored Frame Window :          1(s)

Errored Frame Threshold :          1(f) Errored Frame        :     112683(f)

Error Running Total     :    1396632(f) Event Running Total  :         11(t)

 

OAMLocalErrFramePeriodEvent : (s = seconds, f = frames, t = times)

--------------------------------------------------------------------------

Event Time Stamp        :        315(s) Errored Frame Window :      19531(f)

Errored Frame Threshold :          1(f) Errored Frame        :     262995(f)

Error Running Total     :    1396632(f) Event Running Total  :          5(t)

 

OAMLocalErrFrameSecsSummaryEvent : (s = seconds, f = frames, t = times)

--------------------------------------------------------------------------

Event Time Stamp        :        325(s) Err-Frm Second Window:         60(s)

Err-Frm Second Threshold:          1(s) Err-Frm Second       :         11(s)

Error Running Total     :         11(s) Event Running Total  :          1(t)

Table 1-7 Description on the fields of the display oam ethernet link-event local command

Field

Description

Port

Port GigabitEthernet 4/1/1

Link Status

Link state

OAMLocalErrFrameEvent

Information about the error signal events that occurred on the local port

Event Time Stamp

The time when the errored-frame event occurred

Errored Frame Window

Window size when the latest errored-frame event occurred

Errored Frame Threshold

Threshold when the latest errored-frame event occurred

Errored Frame

Number of times of errored frame events that occur in the specified period

Error Running Total

Number of times of errored frame events that occur in the specified period after the OAM sub-layer is reset or the statistics information is cleared.

Event Running Total

Number of times of error frame events that occur after the OAM sub-layer is reset or the statistics information is cleared.

OAMLocalErrFramePeriodEvent

Information about local errored frame period events

Event Time Stamp

Time when the errored frame period event occurred

Errored Frame Window

Window size when the latest errored-frame period event occurred

Errored Frame Threshold

Threshold when the latest errored-frame period event occurred, 1 by default.

Errored Frame

The number of times of errored-frame period events that occur within the specified period

Error Running Total

Number of times of errored frame period events that occur in the specified period after the OAM sub-layer is reset or the statistics information is cleared.

Event Running Total

Number of times of errored-frame period events that occur after the OAM sub-layer is reset or the statistics information is cleared.

OAMLocalErrFrameSecsSummaryEvent

Information about local errored frame seconds events

Event Time Stamp

Time when the latest errored frame second event occurs

Err-Frm Second Window

Window size when the latest errored-frame seconds event occurred

Err-Frm Second Threshold

Threshold when the latest errored-frame seconds event occurred

Err-Frm Second

Number of times of errored-frame seconds events that occur within the specified period

Error Running Total

Number of times of errored-frame events that occur after the OAM sub-layer is reset

Event Running Total

Number of times of errored frame seconds events that occur after the OAM sub-layer is reset.

 

1.1.10  display oam ethernet loopback status

Syntax

display oam ethernet loopback status

View

Any view

Parameters

None

Description

Use the display oam ethernet loopback status command to display the remote OAM loopback state.

Examples

# Display remote OAM loopback state.

<H3C> display oam ethernet loopback status

OAM Loopback Status:

  GigabitEthernet3/1/1    :   LB_DISABLE

  GigabitEthernet5/1/1    :   LB_CTL

  GigabitEthernet5/1/3    :   LB_UNDERCTL

  GigabitEthernet5/1/4    :   LB_En_DISCARD

  GigabitEthernet5/1/5    :   LB_DIS_DISCARD

Table 1-8 Description on the fields of the display oam ethernet loopback status command

Field

Description

OAM Loopback Status:

Displays remote OAM loopback state

GigabitEthernet3/1/1: LB_DISABLE

Displays port loopback state

LB_DISABLE

Disables OAM loopback

LB_En_DISCARD

The local endpoint is the loopback control endpoint. The local endpoint sends the command to enable loopback and is waiting for the acknowledgment from the remote endpoint.

LB_DIS_DISCARD

The local endpoint is the loopback control endpoint. The local endpoint sends the command to disable loopback and is waiting for the acknowledgment from the remote endpoint.

LB_CTL

The loopback is successful and the local endpoint is the loopback control endpoint.

LB_UNDERCTL

The loopback is successful and the local endpoint is the loopback controlled endpoint.

 

1.1.11  display oam ethernet remote variable interface

Syntax

display oam ethernet remote variable interface interface-type interface-number

View

Any view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

remote: Displays the variable value of the remote port connected to a specified port.

Description

Use the display oam ethernet remote variable command to display the values of the remote port variables after the establishment of the OAM connection.

These variables include FramesTransmitted, FramesreceivedOK, and so on.

Examples

# Display the variable values of the remote port.

<H3C> display oam ethernet remote variable interface Ethernet 4/1/1

Please wait............

      MIB                    Branch Leaf Width        Value

--------------------------------------------------------------------------

  FramesTransmitted            7    2    8   0x00 00 00 00 00 00 00 0c

  FramesreceivedOK             7    5    8   0x00 00 00 00 00 00 00 0e

  FrameCheckSequenceErrorS     7    6    8   0x00 00 00 00 00 00 00 00

  OctetsTransmittedOK          7    8    8   0x00 00 00 00 00 00 03 00

  FramesWithDeferredXmissions  7    9    8   0x00 00 00 00 00 00 00 00

  LateCollisions               7   10    8   0x00 00 00 00 00 00 00 00

  FramesAbortedDueToXSColls    7   11    8   0x00 00 00 00 00 00 00 00

  OctetsReceivedOK             7   14    8   0x00 00 00 00 00 00 03 80

  MulticastFramesXmittedOK     7   18    8   0x00 00 00 00 00 00 00 0c

  BroadcastFramesXmittedOK     7   19    8   0x00 00 00 00 00 00 00 00

  MulticastFramesReceivedOK    7   21    8   0x00 00 00 00 00 00 00 0e

  BroadcastFramesReceivedOK    7   22    8   0x00 00 00 00 00 00 00 00

  InRangeLengthErrors          7   23    8   0x00 00 00 00 00 00 00 00

Table 1-9 Description on the fields of the display oam ethernet remote-variable interface command

Field

Description

MIB

Variable name

Branch

Branch value corresponding to the variable

Leaf

Leaf value corresponding to the variable

Value

Specific value

width

Number of bytes that the value occupies

FramesTransmitted

Number of sent frames

FramesreceivedOK

Number of received correct frames

FrameCheckSequenceErrorS

Number of frame checksum errors

OctetsTransmittedOK

Length of the transmitted byte

FramesWithDeferredXmissions

Number of delayed frames due to collision

LateCollisions

Number of detected collisions in the process of transmitting frames

FramesAbortedDueToXSColls

Number of dropped frames due to too many collisions

OctetsReceivedOK

Length of the received byte

MulticastFramesXmittedOK

Number of transmitted multicast frames

BroadcastFramesXmittedOK

Number of transmitted broadcast frames

MulticastFramesReceivedOK

Number of received multicast frames

BroadcastFramesReceivedOK

Number of received broadcast frames

InRangeLengthErrors

Number of received frames of incorrect lengths

 

1.1.12  oam ethernet enable

Syntax

oam ethernet enable

undo oam ethernet enable

View

Ethernet port view

Parameters

None

Description

Use the oam ethernet enable command to enable OAM on the current Ethernet port.

Use the undo oam ethernet enable command to disable OAM on the current Ethernet port.

OAM is disabled by default.

After OAM is enabled, the current Ethernet port starts to establish OAM connection with the peer entity in the preset mode.

Related commands: oam ethernet mode.

Examples

# Enable OAM on the current port.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 1/1/1

[H3C-Ethernet1/1/1] oam ethernet enable

1.1.13  oam ethernet errored-frame period

Syntax

oam ethernet errored-frame period period-value

undo oam ethernet errored-frame period

View

System view

Parameters

period-value: Error frame detection interval in seconds, ranging from 1 to 60. The system default is one second.

Description

Use the oam ethernet errored-frame period command to set the error frame detection interval.

Use the undo oam ethernet errored-frame period command to restore the default value.

If 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 event is created.

After the OAM connection is established, the configured values take effect on all the Ethernet ports automatically.

Related commands: oam ethernet errored-frame threshold, display oam ethernet link-event, display oam ethernet configuration.

Examples

# Set the error frame detection interval to 10 seconds.

<H3C> system-view

[H3C] oam ethernet errored-frame period 10

1.1.14  oam ethernet errored-frame threshold

Syntax

oam ethernet errored-frame threshold threshold-value

undo oam ethernet errored-frame threshold

View

System view

Parameters

threshold-value: Error threshold for creating an error frame event. The value must be greater than or equal to 1. The system default is 1.

Description

Use the oam ethernet errored-frame threshold command to configure the error threshold for creating an error frame event.

Use the undo oam ethernet errored-frame threshold command to restore the default value.

If 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 event is created.

After the OAM connection is established, the configured values take effect on all the Ethernet ports automatically.

Related commands: oam ethernet errored-frame period, display oam ethernet link-event, display oam ethernet configuration.

Examples

# Configure the error threshold for creating an error frame event to 100.

<H3C> system-view

[H3C] oam ethernet errored-frame threshold 100

1.1.15  oam ethernet errored-frame-period period

Syntax

oam ethernet errored-frame-period period period-value

undo oam ethernet errored-frame-period period

View

System view

Parameters

period-value: Error frame period detection interval, ranging from 100 to 60000 (in milliseconds). The system default is 1000 milliseconds.

Description

Use the oam ethernet errored-frame-period period command to set the error frame period detection interval.

Use the undo oam ethernet errored-frame-period period command to restore the default value.

The system converts the configured interval to the maximum number of packets that a port can send over this interval, that is, the maximum number of packets sent serves as the interval.

If 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 is created.

After the OAM connection is established, the configured values take effect on all the Ethernet ports automatically.

Related commands: oam ethernet errored-frame-period threshold, display oam ethernet link-event, display oam ethernet configuration.

Examples

# Set the error frame period event to 10 seconds.

<H3C> system-view

[H3C] oam ethernet errored-frame-period period 10000

1.1.16  oam ethernet errored-frame-period threshold

Syntax

oam ethernet errored-frame-period threshold threshold-value

undo oam ethernet errored-frame-period threshold

View

System view

Parameters

threshold-value: Error threshold for creating an error frame period event. The value must be greater than or equal to 1. The system default is 1.

Description

Use the oam ethernet errored-frame-period threshold command to set the error threshold for creating an error frame period event.

Use the undo oam ethernet errored-frame-period threshold command to restore the default value.

If 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 is created. The default detection interval equals the maximum number of the minimum-length frames that can be received by the switch within 1000 milliseconds.

After the OAM connection is established, the configured values take effect on all the Ethernet ports automatically.

Related commands: oam ethernet errored-frame-period period, display oam ethernet link-event, display oam ethernet configuration.

Examples

# Set the error threshold for creating an error frame event to 100.

<H3C> system-view

[H3C] oam ethernet errored-frame-period threshold 100

1.1.17  oam ethernet errored-frame-seconds period

Syntax

oam ethernet errored-frame-seconds period period-value

undo oam ethernet errored-frame-seconds period

View

System view

Parameters

period-value: Error frame second detection interval, ranging from 10 to 900 (in seconds). The system default is 60 seconds.

Description

Use the oam ethernet errored-frame-seconds period command to set the error frame second detection interval.

Use the undo oam ethernet errored-frame-seconds period command to restore the default value.

Error frame seconds are the seconds within which error frames are detected.

If the number of error frame seconds detected on a port over a detection interval is equal to or greater than the error threshold, an error frame second event is created.

After the OAM connection is established, the configured values take effect on all the Ethernet ports automatically.

Related commands: oam ethernet errored-frame-seconds threshold, display oam ethernet link-event, display oam ethernet configuration.

Examples

# Configure the error frame second detection interval to 100 seconds.

<H3C> system-view

[H3C] oam ethernet errored-frame-seconds period 100

1.1.18  oam ethernet errored-frame-seconds threshold

Syntax

oam ethernet errored-frame-seconds threshold threshold-value

undo oam ethernet errored-frame-seconds threshold

View

System view

Parameters

threshold-value: Error threshold for creating an error frame second event, ranging from 1 to 900. The system default is 1.

Description

Use the oam ethernet errored-frame-seconds threshold command to set the error threshold for creating an error frame second event.

Use the undo oam ethernet errored-frame-seconds threshold command to restore the default value.

Error frame seconds are the seconds within which error frames are detected.

If the number of error frame seconds detected on a port over a detection interval is equal to or greater than the error threshold, an error frame second event is created.

After the OAM connection is established, the configured values take effect on all the Ethernet ports automatically.

Related commands: oam ethernet errored-frame-seconds period, display oam ethernet link-event, display oam ethernet configuration.

Examples

# Set the error threshold for creating an error frame second event to 100.

<H3C> system-view

[H3C] oam ethernet errored-frame-seconds threshold 100

1.1.19  oam ethernet errored-symbol period

Syntax

oam ethernet errored-symbol period period-value

undo oam ethernet errored-symbol period

View

System view

Parameters

period-value: Error signal detection interval, ranging from 1 to 60 (in seconds). The system default is one second.

Description

Use the oam ethernet errored-symbol period command to set the error signal detection interval.

Use the undo oam ethernet errored-symbol period command to restore the default value.

If the number of error signals detected on a port over a detection interval is equal to or greater than the error threshold, an error signal event is created.

After the OAM connection is established, the configured values take effect on all the Ethernet ports automatically.

Related commands: oam ethernet errored-symbol threshold, display oam ethernet link-event, display oam ethernet configuration.

Examples

# Configure the error signal detection interval to 10 seconds.

<H3C> system-view

[H3C] oam ethernet errored-symbol period 10

1.1.20  oam ethernet errored-symbol threshold

Syntax

oam ethernet errored-symbol threshold threshold-value

undo oam ethernet errored-symbol threshold

View

System view

Parameters

threshold-value: Error threshold for creating an error signal event. The value ranges from 1 to 4294967295. The system default is 1.

Description

Use the oam ethernet errored-symbol threshold command to configure the error threshold for creating an error signal event.

Use the undo oam ethernet errored-symbol threshold command to restore the default value.

If the number of error signals detected on a port over a detection interval is equal to or greater than the error threshold, an error signal event is created.

After the OAM connection is established, the configured values take effect on all the Ethernet ports automatically.

Related commands: oam ethernet errored-symbol period, display oam ethernet link-event, display oam ethernet configuration.

Examples

# Configure the error threshold for creating an error signal event to 100.

<H3C> system-view

[H3C] oam ethernet errored-symbol threshold 100

1.1.21  oam ethernet loopback

Syntax

oam ethernet loopback

undo oam ethernet loopback

View

Ethernet port view

Parameters

None

Description

Use the oam ethernet loopback command to trigger remote loopback control on an Ethernet port.

Use the undo oam ethernet loopback command to remove the configuration.

Once the oam ethernet loopback command is executed, the local endpoint sends the remote loopback command to the remote endpoint. OAM loopback of the local endpoint enters the LB_EN_DISCARD state. If remote loopback succeeds, the remote endpoint returns the acknowledgment message and enters the LB_UNDERCTL state. After receiving the acknowledgment message, the local endpoint enters the LB_CTL state. If loopback fails, the local endpoint enters the normal state and cancels loopback settings. The undo oam ethernet loopback command enables the local endpoint to send the command for canceling remote loopback. After remote loopback succeeds, the local endpoint and the remote endpoint enter the LB_DISABLE state.

You can perform remote loopback only after the establishment of the OAM connection. If the connection is interrupted during loopback, remote loopback will be cancelled automatically. The port enters the LB_DISABLE state.

Related commands: display oam ethernet loopback status.

Examples

# Enable remote loopback on the peer endpoint of Ethernet 1/1/1.

<H3C> system-view

[H3C] interface Ethernet 1/1/1

[H3C-Ethernet1/1/1] oam ethernet loopback

1.1.22  oam ethernet mode

Syntax

oam ethernet mode { active | passive }

undo oam ethernet mode

View

Ethernet port view

Parameters

active: Active mode

passive: Passive mode

Description

Use the oam ethernet mode command to set the OAM mode on the current Ethernet port.

Use the undo oam ethernet mode command to restore the default value, that is, active mode.

By default, OAM is set to the active mode.

The OAM connection cannot be established between two ports in the passive mode.

After the OAM function is enabled, that is, after the oam ethernet enable command is input, you are not allowed to change the OAM mode. If you need to change the OAM mode, you can disable the OAM function first, and then change the OAM mode.

Related commands: oam ethernet enable.

Examples

# Set the OAM mode of Ethernet 1/1/1 to the active mode.

<H3C> system-view

[H3C]interface Ethernet 1/1/1

[H3C-Ethernet1/1/1] oam ethernet mode active

[H3C-Ethernet1/1/1] oam ethernet enable

# Restore the OAM mode of Ethernet 1/1/1 to the default active mode.

<H3C> system-view

[H3C]interface Ethernet 1/1/1

[H3C-Ethernet1/1/1] oam ethernet mode passive

[H3C-Ethernet1/1/1] undo oam ethernet mode

1.1.23  oam ethernet timer hello

Syntax

oam ethernet timer hello interval

undo oam ethernet timer hello

View

System view

Parameters

interval: Interval of sending Ethernet OAM hello PDUs (in milliseconds). This argument ranges from 500 to 5000 and must be a multiple of 500.

Description

Use the oam ethernet timer hello command to set the interval of sending Ethernet OAM hello PDUs, which are used to maintain OAM connections.

Use the undo oam ethernet timer hello command to restore the interval of sending Ethernet OAM hello PDUs to the default value.

By default, the interval of sending Ethernet OAM hello PDUs is 1,000 ms.

Examples

# Set the interval of sending Ethernet OAM hello PDUs to 3000 milliseconds.

<H3C> system-view

[H3C] oam ethernet timer hello 3000

1.1.24  oam ethernet timer keepalive

Syntax

oam ethernet timer keepalive interval

undo oam ethernet timer keepalive

View

System view

Parameters

interval: Ethernet OAM link timeout time. This argument ranges from 500 to 25000 (in milliseconds) and must be a multiple of 500.

Description

Use the oam ethernet timer keepalive command to set the Ethernet OAM link timeout time.

Use the undo oam ethernet timer keepalive command to restore the Ethernet OAM link timeout time to the default value.

By default, the Ethernet OAM link timeout time is 5000 ms.

Examples

# Set the Ethernet OAM link timeout time to 2000 milliseconds.

<H3C> system-view

[H3C] oam ethernet timer keepalive 2000

 

&  Note:

After an Ethernet OAM link times out, the local end of the Ethernet OAM will age its connection to the remote OAM entity. Consequently, the OAM link disconnects. In normal conditions, you are recommended to set the timeout time to be longer than the interval of sending Ethernet OAM hello PDUs. Otherwise, a link may disconnect before Ethernet OAM hello PDUs are received, thus causing link instability.

 

1.1.25  reset oam ethernet

Syntax

reset oam ethernet [ interface interface-type interface-number ]

View

User view

Parameters

interface-type: Port type. The value is Ethernet or GigabitEthernet.

interface-number: Port number.

Description

Use the reset oam ethernet command to reset the statistics information of OAM packets and Link events, that is, to count the statistics information from 0.

If you do not specify a port type and a port number, this command resets the statistics information of OAM packets and Link events on all the ports of the switch.

If you specify a port type and a port number, this command resets the statistics information of OAM packets and Link events on the specified port.

Examples

# Clear the statistics information of OAM packets and Link events on all the ports.

<H3C> reset oam ethernet

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网