esxcfg-*

There is also another set of CLI commands that start with esxcfg-*. These commands are a little bit older, but still very useful. They can be used from the ESXi host's shell.

In the following example, you can see a duplicated CLI for the same output as esxcli. Yes, any CLI duplicates esxcli.

To see all the available commands, you can type esxcfg- ,followed by a double hit of the Tab button. You will be able to see all possible esxcfg- CLI commands:

[root@esxi-prod-1:~] esxcfg-
esxcfg-advcfg esxcfg-hwiscsi esxcfg-ipsec esxcfg-nas esxcfg-resgrp esxcfg-swiscsi esxcfg-vswitch esxcfg-dumppart esxcfg-info esxcfg-module esxcfg-nics esxcfg-route esxcfg-vmknic
esxcfg-fcoe esxcfg-init esxcfg-mpath esxcfg-rescan esxcfg-scsidevs esxcfg-volume

Using the esxcfg-vmknic –l command, you can find all vmk IP address, and the net stack in a more natural way than with esxcli:

Next, an excellent CLI to use is esxcfg-vswitch –l, which lists all vSwitches and vDSes:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.201.71