12-High Availability Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command References-Release1828P04-6W18212-High Availability Command Reference
02-Ethernet OAM Commands
Title Size Download
02-Ethernet OAM Commands 129.38 KB

display oam

Syntax

display oam { local | remote } [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

local: Displays the Ethernet OAM connection information of the local end.

remote: Displays the Ethernet OAM connection information of the remote end.

interface interface-type interface-number: Specifies a port by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display oam to display the information about an Ethernet OAM connection, including connection status, information contained in Ethernet OAM packet header, and Ethernet OAM packet statistics.

If you do not specify the interface keyword, this command displays the information about all the Ethernet OAM connections.

Examples

# Display the local Ethernet OAM connection information.

<Sysname> display oam local

Port        : GigabitEthernet4/0/1

Link Status : Up

EnableStatus              : Enable

Local_oam_mode            : Active      Local_pdu              : ANY

Local_mux_action          : FWD         Local_par_action       : DISCARD

Port        : GigabitEthernet4/0/2

Link Status : Down

EnableStatus              : Enable

Local_oam_mode            : Active      Local_pdu              : LF_INFO

Local_mux_action          : FWD         Local_par_action       : FWD

Table 1 Command output

Field

Description

Port

Port index.

Link Status

Link status (up or down).

EnableStatus

Ethernet OAM state (enabled or disabled).

Local_oam_mode

Local Ethernet OAM mode:

·     Active, indicating the port is operating in the active Ethernet OAM mode.

·     Passive, indicating the port is operating in the passive Ethernet OAM mode.

Local_pdu

The way in which the local end processes Ethernet OAMPDUs:

·     RX_INFO, indicating the port only receives Information OAMPDUs and does not send any Ethernet OAMPDUs.

·     LF_INFO, indicating the port only sends the Information OAMPDUs without Information TLV triplets and with their link error flag bits being set.

·     INFO, indicating the port sends and receives only Information OAMPDUs.

·     ANY, indicating the port sends and receives Ethernet OAMPDUs of any type.

Local_mux_action

Operating mode of the local transmitter:

·     FWD, indicating the port can send any packets.

·     DISCARD, indicating the port only sends Ethernet OAMPDUs.

Local_par_action

Operating mode of the local receiver:

·     FWD, indicating the port can receive any packets.

·     DISCARD, indicating the port only receives Ethernet OAMPDUs.

·     LB, indicating the local receiver is in loopback state. In this case, all the packets other than Ethernet OAMPDUs received on the local receiver are returned to their sources along the ways they come.

 

# Display the information about the Ethernet OAM connection established on the local port GigabitEthernet 4/0/1.

<Sysname> display oam local interface gigabitethernet 4/0/1

Port        : GigabitEthernet4/0/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 2 Command output

Field

Description

Port

Port index.

Link Status

Link status.

EnableStatus

Ethernet OAM state (enabled or disabled).

Local_oam_mode

Local Ethernet OAM mode.

Local_pdu

The way in which Ethernet OAMPDUs of different types are processed locally.

Local_mux_action

Local sending mode.

Local_par_action

Local receiving mode.

OAMLocalFlagsField

Local flags inserted in the local flag fields of the Ethernet OAMPDUs sent.

Link Fault

Indicates whether Ethernet OAM link error events occurred. A value of 0 indicates no Ethernet OAM error event occurs; a value of 1 indicates Ethernet 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:

·     COMPLETE for completed.

·     Others for uncompleted.

Remote Evaluating

Indicates whether the remote-to-local configuration negotiation is complete:

·     COMPLETE for completed.

·     Others for uncompleted.

Packets statistic

Statistics on Ethernet OAMPDUs sent and received.

OAMPDU

Total number of the Ethernet 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 the peer Ethernet OAM connection information.

<Sysname> display oam remote

Port        :GigabitEthernet4/0/1

Link Status :Up

Information of the latest received OAM packet:

OAMRemoteMACAddress       : 000f-e274-b04a

OAMRemotePDUConfiguration : 1500

Remote_mux_action         : FWD         Remote_par_action      : FWD

Table 3 Command output

Field

Description

Port

Port index.

Link Status

Link status.

Information of the latest received OAM packet

Information about the latest received Ethernet OAMPDU.

OAMRemoteMACAddress

MAC address of the Ethernet OAM peer.

OAMRemotePDUConfiguration

Maximum Ethernet OAMPDU size allowed.

Remote_mux_action

Peer sending mode.

Remote_par_action

Peer receiving mode.

 

# Display the Ethernet OAM information of the peer port GigabitEthernet 4/0/1.

<Sysname> display oam remote interface gigabitethernet 4/0/1

Port        : GigabitEthernet4/0/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 4 Command output

Field

Description

Port

Port index.

Link Status

Link status.

Information of the latest received OAM packet

Information about the latest received Ethernet OAMPDU.

OAMRemoteMACAddress

MAC address of the Ethernet OAM peer.

OAMRemotePDUConfiguration

Maximum Ethernet OAMPDU size allowed.

OAMRemoteState

State of the Ethernet OAM peer.

Remote_mux_action

Peer sending mode.

Remote_par_action

Peer receiving mode.

OAMRemoteConfiguration

Configuration of the peer Ethernet OAM entity.

OAM Mode

Ethernet OAM mode.

Unidirectional Support

Indicates whether unidirectional transmission is supported (YES or NO).

Loopback Support

Indicates whether Ethernet OAM remote loopback is supported (YES or NO).

Link Events

Indicates whether Ethernet 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 Ethernet OAM flag fields in OAM packets.

Link Fault

Indicates whether a link fault is present: 0 for no and 1 for yes.

Dying Gasp

Indicate whether a fatal fault is present: 0 for no and 1 for yes.

Critical Event

Indicate whether a critical fault is present: 0 for no and 1 for yes.

Local Evaluating

Indicates whether the local-to-remote configuration negotiation is complete:

·     COMPLETE for completed.

·     Others for uncompleted.

Remote Evaluating

Indicates whether the remote-to-local configuration negotiation is complete:

·     COMPLETE for completed.

·     Others for uncompleted.

 

display oam configuration

Syntax

display oam configuration [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display oam configuration to display global Ethernet OAM configuration, including the periods and thresholds for Ethernet OAM link error event detection.

Related commands: 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, oam timer hello, and oam timer keepalive.

Examples

# Display global Ethernet 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

 

Configuration of the timer :

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

Hello timer(in ms)                                :     1000

Keepalive timer(in ms)                            :     5000

Table 5 Command output

Field

Description

Configuration of the link event window/threshold

Detection intervals and triggering thresholds configured for link events.

Errored-symbol Event period (in seconds)

Errored symbol event detection interval, which defaults to one second.

Errored-symbol Event threshold

Errored symbol event triggering threshold, which defaults to 1.

Errored-frame Event period (in seconds)

Errored frame event detection interval, which defaults to one second.

Errored-frame Event threshold

Errored frame event triggering threshold, which defaults to 1.

Errored-frame-period Event period (in ms)

Errored frame period event detection interval, which defaults to 1000 milliseconds.

Errored-frame-period Event threshold

Errored frame period event triggering threshold, which defaults to 1.

Errored-frame-seconds Event period (in seconds)

Errored frame seconds event detection interval, which defaults to 60 seconds.

Errored-frame-seconds Event threshold

Errored frame seconds event triggering threshold, which defaults to 1.

Configuration of the timer

Ethernet OAM connection detection timers.

Hello timer(in ms)

Ethernet OAM handshake packet transmission interval, the value of which defaults to 1000 milliseconds.

Keepalive timer(in ms)

Ethernet OAM connection timeout timer, the value of which defaults to 5000 milliseconds.

 

display oam critical-event

Syntax

display oam critical-event [ interface interface-type interface-number] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

interface interface-type interface-number: Specifies a port by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display oam critical-event to display the statistics on critical Ethernet OAM link events occurred on a port.

If you do not specify the interface keyword, this command displays the statistics on the critical Ethernet OAM link events occurred on all the ports of the switch.

Examples

# Display the statistics on critical Ethernet OAM link events occurred on all the ports.

<Sysname> display oam critical-event

Port        : GigabitEthernet4/0/1

Link Status : Up

Event statistic :

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

Link Fault    :0    Dying Gasp    : 0    Critical Event    : 0

Table 6 Command output

Field

Description

Port

Port index.

Link Status

Link status.

Event statistic

Statistics on critical Ethernet OAM link events.

Link Fault

Indicates whether a link fault is present: 0 for no and 1 for yes.

Dying Gasp

Indicate whether a fatal fault is present: 0 for no and 1 for yes.

Critical Event

Indicate whether a critical fault is present: 0 for no and 1 for yes.

 

display oam link-event

Syntax

display oam link-event { local | remote } [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

local: Displays the statistics on the local port.

remote: Displays the statistics on the peer port.

interface interface-type interface-number: Specifies a port by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display oam link-event to display the statistics on Ethernet OAM link error events occurred on a local port or a peer port. Ethernet OAM link error events include errored symbol events, errored frame events, errored frame period events, and errored frame seconds events.

If you do not specify the interface keyword, this command displays the statistics on the Ethernet OAM link error events occurred on all the local/peer ports.

Related commands: display oam configuration and reset oam.

Examples

# Display the statistics on Ethernet OAM link error events occurred on all the local ports.

<Sysname> display oam link-event local

Port        : GigabitEthernet4/0/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 7 Command output

Field

Description

Port

Port index.

Link Status

Link status.

OAMLocalErrFrameEvent

Information about local errored frame events:

·     Event Time StampTime when an errored frame event occurred (in 100 milliseconds).

·     Errored Frame WindowError frame detection interval (in 100 milliseconds).

·     Errored Frame ThresholdError threshold that triggers an errored frame event.

·     Errored FrameNumber of detected error frames over the specific detection interval.

·     Error Running TotalTotal number of error frames.

·     Event Running TotalTotal number of errored frame events that have occurred.

OAMLocalErrFramePeriodEvent

Information about local errored frame period events:

·     Event Time StampTime when an errored frame event occurred (in 100 milliseconds).

·     Errored Frame WindowMaximum number of 64-byte frames that can be transmitted through an Ethernet port over the configured error frame period detection interval. The format is: bandwidth * period / (64 * 8 * 1000), where bandwidth is the port bandwidth (in bps) and "period" is the configured period (in milliseconds).

·     Errored Frame ThresholdError threshold that triggers an error frame period event.

·     Errored FrameNumber of detected error frames over a detection interval.

·     Error Running TotalTotal number of error frames that have detected.

·     Event Running TotalTotal number of error frame period events.

OAMLocalErrFrameSecsSummaryEvent :

Information about local errored frame seconds events:

·     Event Time StampTime when an error frame seconds event occurred (in terms of 100 milliseconds).

·     Errored Frame Second Summary WindowError frame second detection interval (in 100 milliseconds).

·     Errored Frame Second Summary ThresholdError threshold that triggers an error frame seconds event.

·     Errored Frame Second SummaryNumber of detected error frame seconds over a detection interval.

·     Error Running TotalTotal number of error frame seconds.

·     Event Running TotalTotal number of error frame seconds events that have occurred.

 

# Display Ethernet OAM link event statistics of the remote ends of all the ports.

<Sysname> display oam link-event remote

Port : GigabitEthernet4/0/1

Link Status :Up

OAMRemoteErrFrameEvent : (ms = milliseconds)

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

Event Time Stamp          : 5789        Errored Frame Window   : 10(100ms)

Errored Frame Threshold   : 1           Errored Frame         : 3

Error Running Total       : 35          Event Running Total   : 17

Table 8 Command output

Field

Description

Port

Port index.

Link Status

Link status.

OAMLocalErrFrameEvent

Information about remote errored frame events:

·     Event Time StampTime when an errored frame event occurred (in 100 milliseconds).

·     Errored Frame WindowError frame detection interval (in 100 milliseconds).

·     Errored Frame ThresholdError threshold that triggers an errored frame event.

·     Errored FrameNumber of detected error frames over the specific detection interval.

·     Error Running TotalTotal number of error frames.

·     Event Running TotalTotal number of errored frame events that have occurred.

 

oam enable

Syntax

oam enable

undo oam enable

View

Layer 2 Ethernet port view

Default level

2: System level

Parameters

None

Description

Use oam enable to enable Ethernet OAM on the Ethernet port.

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

By default, Ethernet OAM is disabled on all Ethernet ports.

Related commands: oam mode.

Examples

# Enable OAM on port GigabitEthernet 4/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

[Sysname-GigabitEthernet4/0/1] oam enable

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: Specifies the errored frame event detection interval in the range of 1 to 60 (in seconds).

Description

Use oam errored-frame period to set the errored frame event detection interval.

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

By default, the errored frame event detection interval is one second.

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

Examples

# Set the errored frame event detection interval to 10 seconds.

<Sysname> system-view

[Sysname] oam errored-frame period 10

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: Specifies the errored frame event triggering threshold in the range of 0 to 4294967295.

Description

Use oam errored-frame threshold to set the errored frame event triggering threshold.

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

By default, the errored frame event triggering threshold is 1.

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

Examples

# Set the errored frame event triggering threshold to 100.

<Sysname> system-view

[Sysname] oam errored-frame threshold 100

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: Specifies the errored frame period event detection interval in the range of 100 to 60000 (in milliseconds).

Description

Use oam errored-frame-period period to set the errored frame period event detection interval.

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

By default, the errored frame period event detection interval is 1000 milliseconds.

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

Examples

# Set the errored frame period event detection interval to 10 seconds, that is, 10000 milliseconds.

<Sysname> system-view

[Sysname] oam errored-frame-period period 10000

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: Specifies the errored frame period event triggering threshold in the range of 0 to 4294967295.

Description

Use oam errored-frame-period threshold to set the errored frame period event triggering threshold.

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

By default, the errored frame period event triggering threshold is 1.

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

Examples

# Set the errored frame period event triggering threshold to 100.

<Sysname> system-view

[Sysname] oam errored-frame-period threshold 100

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: Specifies the errored frame seconds event detection interval in the range of 10 to 900 (in seconds).

Description

Use oam errored-frame-seconds period to set the errored frame seconds event detection interval.

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

By default, the errored frame seconds event detection interval is 60 seconds.

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

Examples

# Set the errored frame seconds event detection interval to 100 seconds.

<Sysname> system-view

[Sysname] oam errored-frame-seconds period 100

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: Specifies the errored frame seconds event triggering threshold in the range of 0 to 900.

Description

Use oam errored-frame-seconds threshold to set the errored frame seconds event triggering threshold.

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

By default, the errored frame seconds event triggering threshold is 1.

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

Examples

# Set the errored frame seconds event triggering threshold to 100.

<Sysname> system-view

[Sysname] oam errored-frame-seconds threshold 100

oam loopback

Syntax

oam loopback

undo oam loopback

View

Layer 2 Ethernet port view

Default level

2: System level

Parameters

None

Description

Use oam loopback to enable Ethernet OAM remote loopback on the specified Ethernet port.

Use undo oam loopback to disable Ethernet OAM remote loopback on the specified Ethernet port.

By default, Ethernet OAM remote loopback is disabled on the Ethernet port.

Ethernet OAM remote loopback is available only after the Ethernet OAM connection is established and can be performed only by the Ethernet OAM entities operating in active Ethernet OAM mode.

Related commands: oam enable, oam loopback interface (system view), oam loopback interface (user view), and oam mode.

Examples

# Configure the active Ethernet OAM mode and enable Ethernet OAM on GigabitEthernet 4/0/1, and then enable Ethernet OAM remote loopback on GigabitEthernet 4/0/1 in Layer 2 Ethernet port view.

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

[Sysname-GigabitEthernet4/0/1] oam mode active

[Sysname-GigabitEthernet4/0/1] oam enable

[Sysname-GigabitEthernet4/0/1] oam loopback

oam loopback interface (system view)

Syntax

oam loopback interface interface-type interface-number

undo oam loopback interface interface-type interface-number

View

System view

Default level

2: System level

Parameters

interface-type interface-number: Specifies a port by its type and number.

Description

Use oam loopback interface to enable Ethernet OAM remote loopback on an Ethernet port in system view.

Use undo oam loopback interface to disable Ethernet OAM remote loopback on an Ethernet port in system view.

By default, Ethernet OAM remote loopback is disabled on an Ethernet port.

Ethernet OAM remote loopback is available only after the Ethernet OAM connection is established and can be performed only by the Ethernet OAM entities operating in active Ethernet OAM mode.

Related commands: oam enable, oam loopback, oam loopback interface (user view), and oam mode.

Examples

# Configure the active Ethernet OAM mode and enable Ethernet OAM on GigabitEthernet 4/0/1, and then enable Ethernet OAM remote loopback on GigabitEthernet 4/0/1 in system view.

<Sysname> system-view

[Sysname] interface GigabitEthernet4/0/1

[Sysname-GigabitEthernet4/0/1] oam mode active

[Sysname-GigabitEthernet4/0/1] oam enable

[Sysname-GigabitEthernet4/0/1] quit

[Sysname]oam loopback interface GigabitEthernet4/0/1

oam loopback interface (user view)

Syntax

oam loopback interface interface-type interface-number

undo oam loopback interface interface-type interface-number

View

User view

Default level

1: Monitor level

Parameters

interface-type interface-number: Specifies a port by its type and number.

Description

Use oam loopback interface to enable Ethernet OAM remote loopback on an Ethernet port in user view.

Use undo oam loopback interface to disable Ethernet OAM remote loopback on an Ethernet port in user view.

By default, Ethernet OAM remote loopback is disabled on an Ethernet port.

Ethernet OAM remote loopback is available only after the Ethernet OAM connection is established and can be performed only by the Ethernet OAM entities operating in active Ethernet OAM mode.

Related commands: oam enable, oam loopback, oam loopback interface (system view), and oam mode.

Examples

# Configure the active Ethernet OAM mode and enable Ethernet OAM on GigabitEthernet 4/0/1, and then enable Ethernet OAM remote loopback on GigabitEthernet 4/0/1 in user view.

<Sysname> system-view

[Sysname] interface GigabitEthernet4/0/1

[Sysname-GigabitEthernet4/0/1] oam mode active

[Sysname-GigabitEthernet4/0/1] oam enable

[Sysname-GigabitEthernet4/0/1] return

<Sysname> oam loopback interface GigabitEthernet4/0/1

oam loopback reject-request

Syntax

oam loopback reject-request

undo oam loopback reject-request

View

Layer 2 Ethernet port view

Default level

2: System level

Parameters

None

Description

Use oam loopback reject-request to configure a port to reject the Ethernet OAM remote loopback request from a remote port.

Use undo oam loopback reject-request to restore the default.

By default, a port does not reject the Ethernet OAM remote loopback request from a remote port.

Examples

# Configure GigabitEthernet 3/0/1 to reject the Ethernet OAM remote loopback request from a remote port.

<Sysname> system-view

[Sysname] interface gigabitethernet 3/0/1

[Sysname-GigabitEthernet3/0/1] oam loopback reject-request

oam mode

Syntax

oam mode { active | passive }

undo oam mode

View

Layer 2 Ethernet interface view

Default level

2: System level

Parameters

active: Specifies the active Ethernet OAM mode.

passive: Specifies the passive Ethernet OAM mode.

Description

Use oam mode to set the Ethernet OAM mode for an Ethernet port.

Use undo oam mode to restore the default.

By default, an Ethernet OAM-enabled Ethernet port is operating in the active Ethernet OAM mode.

To change the Ethernet OAM mode of an Ethernet OAM-enabled Ethernet port, you need to disable Ethernet OAM on the port first.

Related commands: oam enable.

Examples

# Configure GigabitEthernet 4/0/1 to operate in the active Ethernet OAM mode.

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

[Sysname-gigabitethernet 4/0/1] undo oam enable

[Sysname-GigabitEthernet4/0/1] oam mode passive

oam timer hello

Syntax

oam timer hello interval

undo oam timer hello

View

System view

Default level

2: System level

Parameters

interval: Ethernet OAM handshake packet transmission interval, in milliseconds. The value of this argument must be a multiple of 100.

Description

Use oam timer hello to configure the Ethernet OAM handshake packet transmission interval.

Use undo oam timer hello to restore the default.

By default, the Ethernet OAM handshake packet transmission interval is 1000 milliseconds.

After the timeout timer for an Ethernet OAM connection expires, the local OAM entity ages out its connection with the peer OAM entity, causing the OAM connection to be disconnected. Therefore, H3C recommends that you set the connection timeout timer at least five times the handshake packet transmission interval, ensuring the stability of Ethernet OAM connections.

Related commands: oam timer keepalive and display oam configuration.

Examples

# Set the Ethernet OAM handshake packet transmission interval to 600 milliseconds (assume that the Ethernet OAM connection timeout timer is 5000 milliseconds).

<Sysname> system-view

[Sysname] oam timer hello 600

oam timer keepalive

Syntax

oam timer keepalive interval

undo oam timer keepalive

View

System view

Default level

2: System level

Parameters

interval: Ethernet OAM connection timeout timer, in milliseconds. The value of this argument must be a multiple of 100.

Description

Use oam timer keepalive to configure the Ethernet OAM connection timeout timer.

Use undo oam timer keepalive to restore the default.

By default, the Ethernet OAM connection timeout timer is 5000 milliseconds.

After the timeout timer for an Ethernet OAM connection expires, the local OAM entity ages out its connection with the peer OAM entity, causing the OAM connection to be disconnected. Therefore, H3C recommends that you set the connection timeout timer at least five times the handshake packet transmission interval, ensuring the stability of Ethernet OAM connections.

Related commands: oam timer hello and display oam configuration.

Examples

# Set the Ethernet OAM connection timeout timer to 6000 milliseconds (assume that the Ethernet OAM handshake packet transmission interval is 1000 milliseconds).

<Sysname> system-view

[Sysname] oam timer keepalive

reset oam

Syntax

reset oam [ interface interface-type interface-number ]

View

User view

Default level

2: System level

Parameters

interface interface-type interface-number: Specifies a port by its type and number.

Description

Use reset oam to clear the statistics on Ethernet OAM packets and Ethernet OAM link error events of an Ethernet port.

If you do not specify the interface keyword, this command clears the statistics on Ethernet OAM packets and Ethernet OAM link error events of all the ports.

Examples

# Clear the statistics on Ethernet OAM packets and Ethernet OAM link error events of all the ports.

<Sysname> reset oam

  • 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
新华三官网