Using Putty, try running the following command at the bash prompt: vmware-cmd -l
This will list something like this:
************
/vmfs/volumes/########-########-####-############/MyVM1/MyVM1.vmx
/vmfs/volumes/########-########-####-############/MyVM2/MyVM2.vmx
...and so on
************
If you want to print it to a text file, just type: vmware-cmd -l > /my/desired/path/Host1VMs.txt
Then use something like WinSCP to grab the text file.
If you're looking at information about the host itself, datastores, etc, try running the command: esxcfg-info -h to get a list of switches, then run those into a text file.
There are many other esxcfg-?????? commands you can run, just Google it up.
I've never bothered printing out lists of VM's (I'm running about 30 VM's per host and have 4 hosts), because with HA/DRS enabled on agressive, the machines don't stick around too long to make it worth while. But, maybe you have a better reason.
That assumes the user isn't on ESXi. Just gotta mention, I've heard rumors from a reliable source that version 5 (due out in about a year) will remove the console all together. No SSH option at all.
If you're looking for some software VKernel has some inventory software that is fairly inexpensive and gives some really nice detail of your VM's including hardware. Pretty much everything you'll need. If you're looking for just a one time thing, download the trial and get your info.
While you can SSH to an ESXi host, the commands are limited. The use of tools will now be the main way to communicate with the hypervisor. RVTools is certainly a great tool. There are also a plethora of powershell scripts on the net to accomplish all sorts of tasks. Also look for PowerGUI and VESI. And VMware offers the vMA appliance that has the RemoteCLI and Perl SDK all set up. Unless things have gone really south for a host, there should be no reason to SSH to it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.