queryVMCustomField.pl

Version 4

    Originally syndicated from: Re: viPerl: List specific custom attributes for specific VM

    Query custom fields defined for a virtual machine.

    Note: This is only available when querying against vCenter, this will not work for individual ESX(i) host

    Sample execution:

    [vi-admin@tancredi ~]$ ./queryVMCustomField.pl --server reflex2.primp-industries.com --username primp --customfield SLA --vmname William-XP
    Enter password:
    Virtual Machine: William-XP
       SLA = 30min