Nethence Newdoc Olddoc Lab Your IP BBDock  

Warning: those guides are mostly obsolete, please have a look at the new documentation.


Setting up vSphere CLi 6.0 32-bit on RHEL6.7 32-bit
Fetch vSphere CLI for RHEL.
vSphere CLI 5.1
vSphere CLI 5.5 update 2
vSphere CLI 6.0
Using 6.0 in this guide
rpm -Uvh
#rpm -Uvh
rpm -q openssl openssl-devel perl-Crypt-SSLeay gcc perl-CPAN perl-Archive-Zip perl-Class-MethodMaker perl-SOAP-Lite perl-XML-SAX perl-XML-NamespaceSupport perl-XML-LibXML perl-Data-Dump uuid-perl libuuid-devel uuid-devel | grep ^Package
rpm -q libuuid libuuid-devel uuid uuid-devel uuid-perl | grep ^Package
Install the CLI,
tar xzf VMware-vSphere-CLI-5.1.0-780721.i386.tar.gz
#tar xzf VMware-vSphere-CLI-6.0.0-2503617.x86_64.tar.gz
cd vmware-vsphere-cli-distrib/
now run,
You now have to play and search what's available either as RHEL package or at For example I need this,
MIME::Base64 3.14 or newer
yum search mime-base64
yum search perl | grep -i mime-base64
==> no mime-base64 package
then go to and search for mime::base64,
tar xzf...
cd ...
perl Makefile.PL
make install
and re-install vmware until there is no error left.
Note. to uninstall,
Ready to go
List all VMs on an ESX server,
vmware-cmd --server ESXI_HOST_FQDN -U -P 'password' -l
==> works
Note. no need to enable ssh on the vihost (the esxi)
Note the adding the FQDN helped when contacting one of the ESXis of the farm, otherwise I had the SOAP timeout too.
List all VM registered on the vCenter,
vmware-cmd --server VCENTER_HOST_FQDN --vihost ESXI_HOST_FQDN -U -P 'password' -l
==> doesn't work I get,
SOAP request error - possibly a protocol issue: 500 read timeout
Quoting vmware doc,
--server Target ESXi or vCenter Server system.
--vihost When you run vmware-cmd with the -H option pointing to a vCenter Server system, use --vihost to specify the ESXi host to run the command against.
Installation de VMWare Vsphere Remote CLI 5.1 sur Centos/RHEL 6.4 (64 bits):
vSphere CLI for vSphere 5.5:
VMware vSphere CLI 5.5 Update 2:
VMware vSphere CLI 6.0:
How to install perl modules (i.e. with cpan):
vmware-cmd Overview:
How to Install VMware vSphere SDK for Perl 5.1:
How to install VMWare ESXi CLI on CentOS 6.0?:

(obsolete, see the new doc)