-
Notifications
You must be signed in to change notification settings - Fork 35
opx show lag
Amy Buck edited this page Jan 9, 2019
·
8 revisions
opx-show-lag
— Displays the current configuration and status of LAG(s).
opx-show-lag [-h,--help]
[--id <id>]
[--name <name>]
[--ifindex <ifindex>]
[--summary]
Option | Description |
---|---|
-h,--help |
Displays help text |
--id <id> |
Displays configuration and status information of the LAG having the given ID |
--name <name> |
Displays the configuration and status information of the LAG having the given name |
--ifindex <ifindex> |
Displays the configuration and status information of the LAG having the given ifindex |
--summary |
Displays a summary table, with each LAG on a single line |
Output | Description |
---|---|
LAG ID |
Displays the ID assigned to the LAG |
Name |
Displays the name assigned to the LAG |
Interface Index |
Displays the ifindex assigned to the LAG |
Physical Address |
Displays the Ethernet MAC address assigned to the LAG |
Number of Ports |
Displays the total number of member ports that the LAG contains |
Member Ports |
Displays list of ports part if the LAG |
Blocked Ports |
Displays the list of member ports of the LAG which are blocked (don't carry any traffic) |
Unblocked Ports |
Displays the list of member ports of the LAG which are unblocked (carry all traffic) |
Learning Mode |
Displays the MAC learning mode configured on the LAG |
MTU |
Displays the current maximum transmission unit (MTU) of the LAG |
Admin State |
Displays if the lag is administratively enabled |
Oper State |
Displays if the lag is operational |
If there is a syntax error in the given arguments, the exit status shall
be 2.
If there is any other error, the exit status shall be 1.
Otherwise, the exit status is 0.
$ opx-show-lag --name test2
test2
LAG ID: 2
Name: test2
Interface Index: 53
Physical Address: ec:f4:bb:fb:f7:55
Number of ports: 2
Member Ports: e101-004-0 e101-001-0
Blocked Ports: e101-001-0
Un-blocked Ports: e101-004-0
Learning Mode: disable
MTU: 1532
Admin State: down
Oper State: up
LAG Opaque Data: 01000000000000002c000000000000000100000000000000040000000000000000000000020000000000000008000000000000000200000000000200
$ opx-show-lag --summary
IFINDEX | NAME | MEMBER PORTS | ADMIN STATE | OPER STATE
--------------------------------------------------------------------
45 | bond0 | None | down | down
51 | test | e101-002-0 | down | up
53 | test2 | e101-004-0 e101-001-0 | down | up
To report any OPX software bugs, see Report bugs.
© 2019 OpenSwitch project. All information is contributed to and made available by OPX under the Creative Commons Attribution 4.0 International License (available at http://creativecommons.org/licenses/by/4.0/).
- Home
- System overview
- Software releases
- Hardware support
- FAQs
- Install
- Build
- Configure
- Develop
- Administer
- Troubleshoot
- Software compatibility
- Contribute
- DevOps
- Join