Skip to content

opx show interface

Amy Buck edited this page Jan 9, 2019 · 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

Option Description
-h,--help Displays help text
--port <port-list> Front-panel Ethernet interface(s) to display; a <port-list> is a comma-separated list of one 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 <from> to <to> inclusive. Examples:
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 Displays a summary table, with each interface on a single line

OUTPUT

Output Description
Interface index Interface index assigned to the interface
Enabled Indicates if the interface is administratively enabled
MAC address Ethernet MAC address assigned to the interface
MTU Current maximum transmission unit (MTU) of the interface
FEC Current forward error correction (FEC) setting of the interface
Autonegotiation Current link auto-negotiation setting of the interface
Speed Configured link speed of the interface; shown only if auto-negotiation is off
Duplex Configured link duplex of the interface; shown only if auto-negotiation is off
Operational status Current operational status (such as link status) of the interface
Supported autonegotiation Supported modes of auto-negotiation of the interface
Supported speed List of the link speeds supported by the interface
Current speed Current link speed of the interface; shown only if operational status is up
Current duplex 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

REPORT BUGS

To report any OPX software bugs, see Report bugs.

SEE ALSO

opx-config-interface

Clone this wiki locally