VMware Perl SDK
Installation of VMware Perl SDK (not needed in LPAR2RRD v7.90+)
In case of older versions follow this:
Download Linux VMware Perl SDK in
tar.gz format from the VMware site.
It requires free registration at VMware.
Does not matter if you are on AIX or Linux, if 32bit or 64bit package, just a few Perl libraries is used from it
Use always the latest SDK 7.x
Download link:
VMware vSphere Perl SDK 7.0U2
You can use LPAR2RRD site download if VMware site does not work:
VMware-vSphere-Perl-SDK-7.0.0-17698549.x86_64.tar.gz
Installation of VMware SDK from the UI
You can use this method only on the Virtual Appliance.
Select previously downloaded Linux VMware Perl SDK, and upload it.
If you an error "Server version unavailable" durring connection test then check the troubleshooting section below.
Installation of VMware SDK manually
- Install script, download VMware-vSphere-Perl-SDK-7.0.0-17698549.i386.tar.gz into /tmp
# su - lpar2rrd
cd /home/lpar2rrd/lpar2rrd
./bin/vmware_install.sh /tmp
/tmp/VMware-vSphere-Perl-SDK-7.0.0-17698549.i386.tar.gz found
Extracting selected package to /home/lpar2rrd/lpar2rrd/vmware-vsphere-cli-distrib ...
Installing selected libraries and apps to /home/lpar2rrd/lpar2rrd/vmware-lib ...
...
Continue by define VMware hosts and their credentials
UI: menu ➡ VMware ➡ Configure ➡ Add credentials
-
Test of vCenter connection (the last cmd must print vCenter time):
Use double quotes around username and password only in this test
cd /home/lpar2rrd/lpar2rrd
. etc/lpar2rrd.cfg
$PERL vmware-lib/apps/connect.pl --version
vSphere SDK for Perl version: 7.0.0
Script 'connect.pl' version: 1.0
$PERL vmware-lib/apps/connect.pl --server <vCenter host> --username "lpar2rrd@your_domain" --password "XXXXX"
Connection Successful
Server Time : 2016-02-25T16:28:44.086369Z