################################################################################ vminfo.pl yum install openssl098e yum -y install perl-XML-LibXML perl-Crypt-SSLeay perl-Class-MethodMaker gzip -dc VM*gz cd vmware-viperl-distrib ./vmware-install.pl /usr/sbin # # Get VM info from the OS without logging into Vsphere # # vminfo.pl # yum install openssl098e yum -y install perl-XML-LibXML perl-Crypt-SSLeay perl-Class-MethodMaker gzip -dc VM*gz (cd vmware-viperl-distrib; ./vmware-install.pl) #get info for a vmguest somehost:~myuser/bin/viperlkit -help #calls ./vminfo.pl and ./guestinfo.pl #note the username: must have "@MYDOMAIN.com" for the right login #creds, or use your AD stuff somehost ~myuser/bin/viperlkit -v \ -username myuser@MYDOMAIN.com \ -vmguest somehost \ -vspherehost somehost.MYDOMAIN.com #output for this particular VM. Note: you can see the vmtools status # #Enter your password: #=============================================================== #Using: # vspherehost: somehost.MYDOMAIN.com # vmguest: somehost # user: myuser@MYDOMAIN.com # # =============================================================== # runnning vminfo.pl # # # Information of Virtual Machine somehost # # Name: somehost # No. of CPU(s): 2 # Memory Size: 8192 # Virtual Disks: 13 # Template: 0 # vmPathName: [HDC_Prod1_SVC_001_VMAX]somehost/somehost.vmx # Guest OS: Red Hat Enterprise Linux 6 (64-bit) # guestId: rhel6_64Guest # Host name: somehost # IP Address: 10.10.1.1 # VMware Tools: VMware Tools running and the version is current # Cpu usage: 239 MHz # Host memory usage: 8162 MB # Guest memory usage: 491 MB # Overall Status: The entity is OK # # =============================================================== # runnning guestinfo.pl # # # # Guest Info for the Virtual Machine # 'somehost' under host SOMEHOSTNAME # # somehost guestFamily: linuxGuest # somehost guestFullName: Red Hat Enterprise # Linux 6 (64-bit) # somehost guestId: rhel6_64Guest # somehost guestState: running # somehost hostName: somehost # somehost ipAddress: 10.10.1.1 # somehost toolsStatus: VMware Tools is # running and the version is current. # somehost toolsVersion: 9350 # somehost Screen - Height: 768 # somehost Screen - Width: 1024 # somehost Disk[0]: Capacity 2113683456 # somehost Disk[0]: Path : / # somehost Disk[0]: freespace : 1529200640 # somehost Disk[1]: Capacity 528408576 # somehost Disk[1]: Path : /boot # somehost Disk[1]: freespace : 425402368 # somehost Disk[2]: Capacity 8455118848 # somehost Disk[2]: Path : /crash_dir # somehost Disk[2]: freespace : 5242236928 # somehost Disk[3]: Capacity 2113748992 # somehost Disk[3]: Path : /home # somehost Disk[3]: freespace : 1891139584 # somehost Disk[4]: Capacity 5284429824 # somehost Disk[4]: Path : /myinstall # somehost Disk[4]: freespace : 2159951872 # somehost Disk[5]: Capacity 407894122496 # somehost Disk[5]: Path : /mondoimages/dr # somehost Disk[5]: freespace : 243085668352 # somehost Disk[6]: Capacity 10568916992 # somehost Disk[6]: Path : /mondoimages/misc # somehost Disk[6]: freespace : 9950314496 # somehost Disk[7]: Capacity 680623128576 # somehost Disk[7]: Path : # /mondoimages/non-dr # somehost Disk[7]: freespace : 538489786368 # somehost Disk[8]: Capacity 2113748992 # somehost Disk[8]: Path : /opt # somehost Disk[8]: freespace : 1175322624 # somehost Disk[9]: Capacity 1056858112 # somehost Disk[9]: Path : /opt/IBMTWS # somehost Disk[9]: freespace : 1021947904 # somehost Disk[10]: Capacity 2113748992 # somehost Disk[10]: Path : /opt/IBMTWS/TWA # somehost Disk[10]: freespace : 2042814464 # somehost Disk[11]: Capacity 4227530752 # somehost Disk[11]: Path : # /opt/IBMTWS/TWA/TWS # somehost Disk[11]: freespace : 3558666240 # somehost Disk[12]: Capacity 10568916992 # somehost Disk[12]: Path : # /opt/IBMTWS/TWA/TWS/stdlist # somehost Disk[12]: freespace : 8085102592 # somehost Disk[13]: Capacity 2113748992 # somehost Disk[13]: Path : /tmp # somehost Disk[13]: freespace : 1931542528 # somehost Disk[14]: Capacity 115943849984 # somehost Disk[14]: Path : /unixteam # somehost Disk[14]: freespace : 13370527744 # somehost Disk[15]: Capacity 6341328896 # somehost Disk[15]: Path : /usr # somehost Disk[15]: freespace : 2965258240 # somehost Disk[16]: Capacity 3170648064 # somehost Disk[16]: Path : /var # somehost Disk[16]: freespace : 933597184 # somehost net[0] - connected : 1 # somehost net[0] - deviceConfigId : 4000 # somehost net[0] - macAddress : 00:50:56:8d:4a:4b # somehost net[0] - network : d3 6d 0c 50 c2 35 98 a5-f8 c0 8b 7a 33 69 4b d0 # somehost net[0] - ipAddress : 10.10.1.1 # somehost net[0] - ipAddress : fe80::250:56ff:fe8d:4a4b # # =============================================================== # somehost: #