queryVMsCreated.pl

Version 1

    Script to query when VM(s) were created (cloned, deployed or created).

     

    Requirements:

    ESX(i) 3.5 or 4.0 & vCenter 2.5 or 4.0 (vCenter is a requirement)

    vSphere SDK for Perl or vMA 4.0

     

    Sample Execution:

    [vi-admin@scofield ~]$ ./queryVMsCreated.pl --server reflex.primp-industries.com --username primp
    
    Enter password:
    VM                                                                                | TIME                          | USERNAME
    Created virtual machine vm-1 on esxi40-1.primp-industries.com in Primp-R&D              | 2009-09-21T00:29:24.576999Z   | root
    Created virtual machine vm-2 on esxi40-1.primp-industries.com in Primp-R&D              | 2009-09-21T00:29:09.362999Z   | root
    Created virtual machine test on esx40-2.primp-industries.com in Primp-R&D               | 2009-09-20T23:46:06.04Z       | PRIMP-IND\primp
    Created virtual machine rdm-vm on himalaya.primp-industries.com in Primp-Production     | 2009-09-20T20:58:56.807Z      | PRIMP-IND\primp
    Created virtual machine test on esxi40-1.primp-industries.com in Primp-R&D              | 2009-09-20T20:03:22.413Z      | PRIMP-IND\primp
    Created virtual machine PROTECT-ME-PLEASE on esxi40-1.primp-industries.com in Primp-R&D | 2009-09-18T23:01:59.149999Z   | PRIMP-IND\primp
    Created virtual machine ESXi40-1 on himalaya.primp-industries.com in Primp-Production   | 2009-09-18T20:58:52.353Z      | PRIMP-IND\primp