efa inventory device interface set-admin-state

Brings a physical port administratively up or down.

Syntax

efa inventory device interface set-admin-state --ip device-ip --if-type ethernet --if-name if-list --state { up | down }

Command Default

By default, all ports on the SLX are shut down.

Parameters

--ip device-ip
Specifies the IP address of the device.
--if-type ethernet
Specifies that the interface type is Ethernet.
--if-name if-list
Specifies a comma-separated list of interface names.
--state { up | down
Specifies a state of up or down.

Usage Guidelines

In SLX-OS, you can use the show interface ethernet command to see the status of the Ethernet interfaces on your device.

Examples

This example brings two ports into the up state.

# efa inventory device interface set-admin-state 
--ip 10.x.x.x --if-type eth --if-name 0/31,0/32 --state up

Admin-State Updated Successfully
+----+------+----------------+--------------+
| ID | Name | Interface Type | Admin Status |
+----+------+----------------+--------------+
| 51 | 0/32 | ethernet       | up           |
+----+------+----------------+--------------+
| 15 | 0/31 | ethernet       | up           |
+----+------+----------------+--------------+
Interface Details
--- Time Elapsed: 18.235185378s ---