Version 1

    Adding/updating a custom field to VM (available with vCenter only)




    ESX(i) 3.5 or 4.0

    vCenter 2.5 or 4.0


    Sample Execution:


    Adding a custom field as a VirtualMachine attribute, this takes affect on the entire infrastructure, whether or not you want to set an actual value for a given VM.


    This will add a new custom field to all VMs called SERVER_TYPE and the operation is an add

    [vi-admin@scofield ~]$ ./ --server --username primp --key SERVER_TYPE --operation add
    Enter password:


    To update a certain VM with a value to the custom field, you'll use the operation update

    [vi-admin@scofield ~]$ ./ --server --username primp --key SERVER_TYPE --value PRODUCTION --operation update --vmname kate
    Enter password:


    You'll see the changes right away on vCenter and you'll notice with a specific VM, you would have updated it's custom field SERVER_TYPE with the value PRODUCTION