Skip to content

opx show interface

Amy Buck edited this page Dec 31, 2018 · 13 revisions

COMMAND

opx-show-interface — Displays the current configuration and status of the front-panel Ethernet interface.

SYNOPSIS

opx-show-interface [-h,--help]
[--port <port-list>] 
[--summary]

OPTIONS

  • -h,--help — Print help text

  • --port <port-list> — Front panel Ethernet interface(s) to display. A is a comma-separated list of 1 one more ranges. Each range is either a single interface, or a pair of interfaces of the form <from..to>, which specifies all interfaces from to inclusive. Examples are:

    e101-001-0 - Expands to e101-001-0

    e101-001-0,e101-010-0 - Expands to e101-001-0,e101-010-0

    e101-001-0,e101-004-0..e101-006-0 - Expands to e101-001-0,e101-004-0,e101-005-0,e101-006-0

    If the port list is not specified, all Ethernet front-panel ports are shown.`

--summary

: Print a summary table, with each interface on a single line.


### OUTPUT

Interface index

: Displays the interface index assigned to the interface.

Enabled

: Displays if the interface is administratively enabled.

MAC address

: Displays the Ethernet MAC address assigned to the interface.

MTU

: Displays the current maximum transmission unit (MTU) of the interface.

FEC

: Displays the current forward error correction (FEC) setting of the interface.

Autonegotiation

: Display the current link autonegotiation setting of the interface.

Speed

: Displays the configured link speed of the interface; shown only if autonegotiation is off.

Duplex

: Displays the configured link duplex of the interface; shown only if autonegotiation is off.

Operational status

: Displays the current operational status (such as link status) of the interface.

Supported autonegotiation

: Displays the supported modes of autonegotiation of the interface.

Supported speed

: Displays a list of the link speeds supported by the interface.

Current speed

: Displays the current link speed of the interface; shown only if operational status is up.

Current duplex

: Displays the current link duplex of the interface; shown only if operational status is up.


### EXIT STATUS

If an invalid port list is specified, the exit status shall be 1.\
If there is a syntax error in the given arguments, the exit status shall
be 2.\
Otherwise, the exit status is 0.

### EXAMPLE

$ opx-show-interface --port e101-001-0 e101-001-0 Interface index: 11 Enabled: no MAC address: ec:f4:bb:fc:55:19 MTU: 1532 FEC: off Autonegotiation: on Operational status: down Supported autonegotiation: on and off Supported speed: 1G 10G 40G

$ opx-show-interface --summary Port | Enabled | Operational status | Supported speed

e101-001-0 | yes | up | 40G e101-002-0 | yes | up | 40G e101-003-1 | yes | up | 10G e101-003-2 | no | down | 10G e101-003-3 | no | down | 10G e101-003-4 | no | down | 10G e101-004-0 | no | down | 40G e101-005-0 | no | down | 40G e101-006-0 | no | down | 40G e101-007-0 | no | down | 40G e101-008-0 | no | down | 40G e101-009-0 | no | down | 40G e101-010-0 | no | down | 40G e101-011-0 | no | down | 40G e101-012-0 | no | down | 40G e101-013-0 | no | down | 40G e101-014-0 | no | down | 40G e101-015-0 | no | down | 40G e101-016-0 | no | down | 40G e101-017-0 | no | down | 40G e101-018-0 | no | down | 40G e101-019-0 | no | down | 40G e101-020-0 | no | down | 40G e101-021-0 | no | down | 40G e101-022-0 | no | down | 40G e101-023-0 | no | down | 40G e101-024-0 | no | down | 40G e101-025-0 | no | down | 40G e101-026-0 | no | down | 40G e101-027-0 | no | down | 40G e101-028-0 | no | down | 40G e101-029-0 | no | down | 40G e101-030-0 | no | down | 40G e101-031-0 | no | down | 40G e101-032-0 | no | down | 40G


### REPORTING BUGS

To report any OPX software bugs, see [Report bugs](https://github.com/open-switch/opx-docs/wiki/Report-bugs).

### SEE ALSO

[opx-config-interface](https://github.com/open-switch/opx-docs/wiki/opx-config-interface)
Clone this wiki locally