vmware
Get vSphere Client
http://vsphereclient.vmware.com/vsphereclient/4/5/5/9/6/4/VMware-viclient-all-5.0.0-455964.exe (ESXi 5.0.0)
ESXi, enable SSH from the vSphere Client
- Select the host and click the Configuration tab.
- Click Security Profile in the Software panel.
- In the Services section, click Properties.
- Select SSH and click Options.
- Change the SSH options.
- To temporarily start or stop the service, click the Start or Stop button.
- To enable SSH permanently, click Start and stop with host. The change takes effect the next time you reboot the host.
- Click OK.
After you have enabled SSH, you can use an SSH client to log in to the ESXi Shell and run ESXi Shell commands. Accessing the ESXi Shell with SSH If SSH is enabled on your ESXi host, you can use an SSH client to run commands on that shell.
To access the ESXi Shell with SSH
- Open an SSH client.
- Specify the IP address or domain name of the ESXi host.
- Precise directions vary depending on the SSH client you use. See vendor documentation and support.
- Provide credentials when prompted.
ESXi Shell Commands
- esxtop # processes running
- python -V
- esxcli vm process list # list of running vms
Show hostname and kernel version
- uname -a
Show all existing VMs on ESXi
- vim-cmd vmsvc/getallvms
VM state
- vim-cmd vmsvc/power.getstate 470
- vim-cmd vmsvc/power.getstate VMId # VM state
power on the VM
- vim-cmd vmsvc/power.on VMId
check speed of write file of 1MB on vmfs volume
- time dd if=/dev/zero of=/vmfs/volumes/SANVOLNAME/test bs=1024 count=1024
List of network cards
- esxcli network nic list
Enable NIC
- esxcli network nic up -n vmnicX #
Disable NIC
- esxcli network nic down -n vmnicX #
Vsphere client error
Unable to connect to the MKS, on console.
Add to the file c:\windows\system32\drivers\etc\hosts the ip and host names of the ESXi servers,