vSphere 5 Command-Line Interfaces

VMware vSphere 5.0 Command-Line Interfaces vCLI ESXi Shell Commands

Enable ESXi Shell under “Troubleshooting Mode Options”
Ctrl-Alt-F1 to go the ESXi Shell
Ctrl-Alt-F2 back to the main screen

List NICs and their settings:
# esxcfg-nics -l

vSwitch Configuration, example vmnic2:
# esxcfg-vswitch –a vswitch102
# esxcfg-vswitch –L vmnic2 vswitch102
Note: vswitch102 can be something besides 102.

FCoE cli commands
Help, shows all options:
# esxcfg-fcoe -h

List FCoE-capable NICs with detail information
# esxcfg-fcoe -N

To Initiate FCoE adapter discovery:
# esxcfg-fcoe -d vmnicX (where X is the vmnic number).

Enable an FCoE-capable NIC if it’s disabled:
# esxcfg-fcoe -e vmnicX

Disbable an FCoE-capable NIC (reboot required):
# esxcfg-fcoe -D vmnicX

iSCIS options
To enable software iSCSI:
# esxcfg-swiscsi -e
other options: -d (Disable), q (Quaery), -s (scan)

To list all storage devices:
# esxcfg-scsidevs -l

esxcli
esxcli (option) (namspace+ cmd) (cmd option)

For example Network list:
esxcli network nic list

Available Namespaces:
fcoe
hardware
iscsi
network
storage
system
vm

Displays the latest versions of installed drivers:
# cat /proc/drivers

Lists loaded module:
# esxcfg-module -l