13.2. EFM Commands

13.2.1. ethernet oam enable

Command Purpose

Use this command to enable Ethernet operations, maintenance, and administration (OAM) on an interface.

Use the no form of this command to disable OAM on an interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam enable

no ethernet oam enable

Command Mode

Interface Configuration

Default

The default status of Ethernet OAM is disabled.

Usage

This command is used to enable the Ethernet OAM module on a port.

Examples

The following example shows how to enable Ethernet OAM:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam enable

13.2.2. ethernet oam mode

Command Purpose

Use the command to configure Ethernet OAM mode on an interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam mode active

ethernet oam mode passive

no ethernet oam mode

Command Mode

Interface Configuration.

Default

The default Ethernet OAM mode for the DTE is passive.

Usage

This command is used to set the DTE to active mode or passive mode.

Examples

The following example shows how to set EFM mode:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam mode active
Switch(config-if)# ethernet oam mode passive

Related Commands

None

13.2.3. ethernet oam min-rate

Command Purpose

Use this command to set the OAMPDU timer. Use the no form of the command to reset to default value.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam min-rate *SECONDS*

no ethernet oam min-rate

Parameter

Parameter Description

Parameter Value

SECONDS

The number of seconds chosen for this timer.

1-10 seconds

Command Mode

Interface Configuration.

Default

The default value of the OAMPDU timer is 1 second.

Usage

Set the timer to emit at least one OAMPDU per second and ensure that the sublayer adheres to the maximum number of OAMPDUs per second. The minimum is 1 OAMPDU per second and the maximum is 10 OAMPDU per second.

Examples

The following example shows how to set the OAMPDU timer to 1:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam min-rate 1

Related Commands

show ethernet oam status

13.2.4. ethernet oam max-rate

Command Purpose

Use this command to set the OAMPDU maximum number of PDUS per second. Use the no form of the command to reset max-rate to the default value.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam max-rate *PDUS*

no ethernet oam max-rate

Parameter

Parameter Description

Parameter Value

PDUS

The maximum number of PDUs per second.

1-10

Command Mode

Interface Configuration.

Default

The default value of the max-rate is 10 PDUs per second.

Usage

This command is to ensure that the sublayer adheres to the maximum number of OAMPDUs per second. The minimum is 1 OAMPDU per second and the maximum is 10 OAMPDUs per second.

Examples

The following example shows how to set the OAMPDU maximum number to 10 per second:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam max-rate 10

Related Commands

show ethernet oam status

13.2.10. ethernet oam remote-loopback

Command Purpose

Use this command to configure remote loopback on an interface. This command can be used to enable or disable remote loopback and also configure the remote loopback timeout, which is the number of seconds the DTE will wait for the remote DTE to respond to the ethernet oam remote-loopback enable command. Use the no form of this command to remove remote-loopback support from the interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam remote-loopback {supported|timeout *SECS*}

no ethernet oam remote-loopback {supported|timeout}

Parameter

Parameter Description

Parameter Value

supported

Remote loopback can be initiated in the DTE

-

timeout SECS

The remote loopback timeout value in the range of 1~10

1-10 seconds

Command Mode

Interface Configuration

Default

The default state for the remote loopback is not supported. If a timeout is not configured, the local DTE remains in remote loopback state until the remote DTE responds or the user stops remote loopback administratively.

One switch supports 4 interfaces in “local Loopback” status at the same time.

Usage

None

Examples

The following example shows how to support remote-loopback on interface eth-0-1:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam remote-loopback supported

Related Commands

show ethernet oam status

13.2.11. ethernet oam remote-loopback start

Command Purpose

Use this command to start an Ethernet OAM remote-loopback mechanism.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam remote-loopback start interface *IFNAME*

Parameter

Parameter Description

Parameter Value

IFNAME

Name of the interface

Support physical ports

Command Mode

Privileged EXEC

Default

The default state of the remote loopback function is disabled.

Usage

This command is used to start a remote loopback mechanism.

Examples

The following example shows how to start an Ethernet OAM remote-loopback mechanism:

Switch# ethernet oam remote-loopback start interface eth-0-1

Related Commands

show ethernet oam state-machine

13.2.12. ethernet oam remote-loopback stop

Command Purpose

Use this command to stop an Ethernet OAM remote-loopback process.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam remote-loopback stop interface *IFNAME*

Parameter

Parameter Description

Parameter Value

IFNAME

Name of the interface

Support physical ports

Command Mode

Privileged EXEC

Default

Use this command to stop an Ethernet OAM remote loopback mechanism.

Usage

Use this command to stop an Ethernet OAM remote loopback mechanism.

Examples

The following example shows how to stop an Ethernet OAM remote-loopback process:

Switch# ethernet oam remote-loopback stop interface eth-0-9

Related Commands

show ethernet oam state-machine

13.2.13. ethernet oam timeout

Command Purpose

Use this command to reset the LOCAL_LOST_LINK_TIMER and start an Ethernet OAM discovery process. Use the no form of the command to reset to the default value.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam timeout *SECONDS*

no ethernet oam timeout

Parameter

Parameter Description

Parameter Value

SECONDS

The number of seconds chosen for the link-timer

2-30

Command Mode

Interface Configuration

Default

The default value of the timeout is 5 seconds.

Usage

This command is used to start a discovery process by resetting the LOCAL_LOST_LINK_TIMER.

Examples

The following example shows how to set the timeout to 5s:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam timeout 5

Related Commands

None

13.2.14. ethernet oam remote-failure

Command Purpose

Use this command to error-disable port when get remote failure item form peer. Use the no form of the command to unset the action.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ethernet oam remote-failure (link-fault|critical-event|dying-gasp) action error-disable-interface

no ethernet oam remote-failure (link-fault|critical-event|dying-gasp) action error-disable-interface

Parameter

Parameter Description

Parameter Value

link-fault

Critical Link Event

-

critical-event

Dying Gasp Event

-

dying-gasp

Link Fault Event

-

Command Mode

Interface Configuration

Default

None

Usage

This command is used to error-disable port when get remote failure item form peer.

Examples

The following example shows how to error-disable port when get remote failure item form peer on interface eth-0-1:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam remote-failure link-fault action error-disable-interface

Related Commands

None

13.2.15. show ethernet oam discovery

Command Purpose

Use this command to display the ethernet oam administrative and operation configuration for local and remote DTE.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

show ethernet oam discovery (interface *IFNAME*)

Parameter

Parameter Description

Parameter Value

interface IFNAME

Name of the interface

Support physical ports

Command Mode

Privileged EXEC

Default

None

Usage

The following sample output from this command displays ethernet oam administrative and operation configurations for local and remote DTE.

Examples

The following example shows how to display the ethernet oam administrative and operation configuration for local and remote DTE of interface eth-0-1:

Switch# show ethernet oam discovery interface eth-0-1

Related Commands

None

13.2.16. show Ethernet oam status

Command Purpose

Use this command to display the runtime settings of link-monitoring and general OAM operations for all interfaces or for a specific interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

show ethernet oam status (interface *IFNAME*)

Parameter

Parameter Description

Parameter Value

interface IFNAME

Name of the interface

Support physical ports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

The following example shows how to display the runtime settings of link-monitoring and general OAM operations of interface eth-0-1:

Switch# show ethernet oam status interface eth-0-1

Related Commands

None

13.2.17. show ethernet oam state-machine

Command Purpose

Use this command to display the state machine information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

show ethernet oam state-machine (interface *IFNAME*)

Parameter

Parameter Description

Parameter Value

interface IFNAME

Name of the interface

Support physical ports

Command Mode

Privileged EXEC

Default

None

Usage

The command displays the state of the interface.

Examples

The following example shows how to display the state machine information of eth-0-1:

Switch# show ethernet oam state-machine interface eth-0-1

Related Commands

None

13.2.18. show ethernet oam statistics

Command Purpose

Use this command to display the statistics information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

show ethernet oam statistics (interface *IFNAME*)

Parameter

Parameter Description

Parameter Value

interface IFNAME

Name of the interface

Support physical ports

Command Mode

Privileged EXEC

Default

None

Usage

The command displays the statistics of the interface.

Examples

The following example shows how to display the statistics information of eth-0-1:

Switch# show ethernet oam statistics interface eth-0-1

Related Commands

None