JavaScript must be enabled in order for you to see "WP Copy Data Protect" effect. However, it seems JavaScript is either disabled or not supported by your browser. To see full result of "WP Copy Data Protector", enable JavaScript by changing your browser options, then try again.

Manage the VMs from the ESXi 6.0 through the command line

It’s time to post a rubbish! I want to control the VMs from the ESXi without the vSphere Client, so you can access the host through the method of ssh.But how to achieve this mission? Let’s keep reading:
1) Check the current version about the ESXi
#vmware -vl
VMware ESXi 6.0.0 build-2494585
VMware ESXi 6.0.0 GA

2) Review the related the command about vim-cmd w/ vmsvc
#vim-cmd vmsvc/
Commands available under vmsvc/:
acquiremksticket get.snapshotinfo
acquireticket get.spaceNeededForConsolidation
connect get.summary
convert.toTemplate get.tasklist
convert.toVm getallvms
createdummyvm gethostconstraints
destroy login
device.connection logout
device.connusbdev message
device.ctlradd power.getstate
device.ctlrremove power.hibernate
device.diskadd power.on
device.diskaddexisting power.reboot
device.diskremove power.reset
device.getdevices power.shutdown
device.toolsSyncSet power.suspend
device.vmiadd power.suspendResume
device.vmiremove queryftcompat
devices.createnic reload
get.capability setscreenres
get.config snapshot.create
get.config.cpuidmask snapshot.dumpoption
get.configoption snapshot.get
get.datastores snapshot.remove
get.disabledmethods snapshot.removeall
get.environment snapshot.revert
get.filelayout snapshot.setoption
get.filelayoutex tools.cancelinstall
get.guest tools.install
get.guestheartbeatStatus tools.upgrade
get.managedentitystatus unregister
get.networks upgrade

3) Execute the action about the VMs you want to control
#vim-cmd vmsvc/getallvms -> Get ID about all VMs
#vim-cmd vmsvc/power.getstate <VM's ID> -> Get the power status about the VM
#vim-cmd vmsvc/power.on <VM's ID> -> Power on the VM you want to use
#vim-cmd vmsvc/power.getstate <VM's ID> -> Check again

◎、Above information is the process about managing the VMs from the ESXi 6.0 through the command line, and I refered the KB from the VMware official website.You can google more detail operation about vim-cmd if you have the interesting. That’s all for today, bye!

  1. Hi Dora,
    So, what’s the difference between "esxcli software install -v" and "esxcli software install -d" ?

    • Hi Almond Tea
      Well~, the parameter of v is verbose, so for the file type that is vib.On the other hand, d is for the file type that is zip.
      Hope above information that are helpful for you.

  2. Hi Dora,
    Thank you for the explanation. That really helps me a lot. Now I know how to use this command. thank you again.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This site is protected by WP-CopyRightPro