CLI command

ESXi 6.x CLI Commands 

ESXi build and version numbers

# esxcli system version get

 hostname, domain and FQDN for the host.

# esxcli system hostname get

date and time of when ESXi was installed

# esxcli system stats installtime get

# esxcli system account list

used to manage devices and available options are create

# esxcli device

displays all CPUID fields for a given CPU.

# esxcli hardware cpu cpuid raw

 storage related activities

# esxcli storage 

# esxcli system clock get

# esxcli system clock set

#/etc/init.d/hostd restart

#/etc/init.d/vpxa restart

#esxcli network ip interface set -e false -i vmk0; esxcli network ip interface set -e true -i vmk0

# services.sh restart

Disable ESXi firewall

# esxcli network firewall set --enabled false

# esxcli network firewall set --enabled true     [ enable]

Services that will be restarted can be seen if you run ‘chkconfig -io’:

# chkconfig -io

running ‘chkconfig –list

# chkconfig --list

 set the correct firewall rules for the httpClient:

# esxcli network firewall ruleset set -e true -r httpClient

ds