ESXi Command-Line – Part 1
ESXi has some commands with esxcfg prefix for doing some advanced tasks on shell. Of course, you can do the tasks by ESXCLI commands but the esxcfg commands are useful. Let’s review some of them:
esxcfg-advcfg
You can use this command to configure or show system advanced settings in ESXi
Note: You can use “esxcli system settings advanced” instead of this command.
esxcfg-dumppart
When using the ESXi Shell, you can configure your system to save core dumps to a local partition or to use the ESXi Dump Collector and save core dumps to a prespecified local or remote partition.
You can use “esxcli coredump partition” instead of this command.
esxcfg-info
This command using for find some information about hardware and software in ESXi, there is no other command and there is no alternative for this command in ESXCLI.
esxcfg-swiscsi and esxcfg-hwiscsi
These commands using for configuring iSCSi on ESXi, you can use “esxcli iscsi” instead of these commands.
esxcfg-scsidevs
This command is using for configure SCSI devices and also you can use “esxcli storage” instead of this.
esxcfg-module
This command supports manipulation of the VMkernel loadable modules and device drivers. You can use “system module” command in ESXCLI.
esxcfg-mpath
supports listing information about Fibre Channel or iSCSI LUNs and changing a path’s state. You can use “storage core” in ESXCLI instead of this command.
esxcfg-nas
You can use “storage nfs” instead of this command.
esxcfg-nics
Use this command for managing physical nics on ESXi, also you can use “network nic” instead of this.
esxcfg-rescan
Using for storage rescan and has equivalent command: “storage core“.
esxcfg-vmknic
Using for adds, deletes, and modifies VMkernel network interfaces. Also you can use “network ip interface‘
esxcfg-volume
Managing LVM and snapshot. You can use “storage vmfs” and “storage filesystem” instead of this.
esxcfg-vswitch
Using for managing virtual switches and has alternative in ESXCLI: network vswitch standard
ESXCLI has no support for distributed switches.
You can download complete reference via this link: Command-Line Reference
[quotes_and_tips]