HowTo List Virtual Machines using Python and CIM Part 1
Good morning my fellow Admins, Engineers, Scripters, Programmers, etc..... YOU GET THE IDEA :). For the past week, I have been learning all about the CIM and WBEM API. Since I am working alot more then I have ever have with VMware. I am trying to automate as much as possible with out using Perl. Now please do not think I am hating on Perl, it is not that at all, it is just the fact that I love Python, thats all! That being said here is the 1st part in a 2 part series on Listing Virtual Machines using Pywbem in Python. I the 1st part I will show you how to list Virtual Machines and data related to those VMs. Example Below...
|
|
Good morning my fellow Admins, Engineers, Scripters, Programmers, etc..... YOU GET THE IDEA :). For the past week, I have been learning all about the CIM and WBEM API. Since I am working alot more then I have ever have with VMware. I am trying to automate as much as possible with out using Perl. Now please do not think I am hating on Perl, it is not that at all, it is just the fact that I love Python, thats all! That being said here is the 1st part in a 2 part series on Listing Virtual Machines using Pywbem in Python. I the 1st part I will show you how to list Virtual Machines and data related to those VMs. Example Below...
python listVMsInfo.py -u "http://esxhost" -a "login passwd"
VM Name Linux DP1 Client
Operating System Red Hat Enterprise Linux 5 (32-bit)
Host Name dpclient.linuxdynasty
IP Address 192.168.101.124
DataStore Used [Esxlinux] Linux Data Protector Install Ser.vmx
Requested State Not Applicable
Operational Status Enabled
Enabled by Default Enabled
Enabled State Not Applicable Full Story |
This topic does not have any threads posted yet!
You cannot post until you login.