Automation

 View Only
  • 1.  Need Script to update bulk VM annotations field

    Posted Jul 21, 2010 06:24 PM

    we are going to add an additional field to vCenter called “Backup” in addition to Annotations.

    my questions is We want to put notes on Backup field in Annotations for Bulk VMs.

    Can someone please help.

    Thanks,



  • 2.  RE: Need Script to update bulk VM annotations field

    Broadcom Employee
    Posted Jul 21, 2010 06:50 PM

    Again, it depends on the language and the SDK of choice ... this can be done using any of the available VMware SDK's

    Here is an example using vSphere SDK for Perl -

    =========================================================================

    William Lam

    VMware vExpert 2009,2010

    VMware scripts and resources at:

    Twitter: @lamw

    Getting Started with the vMA (tips/tricks)

    Getting Started with the vSphere SDK for Perl

    VMware Code Central - Scripts/Sample code for Developers and Administrators

    VMware Developer Community

    If you find this information useful, please award points for "correct" or "helpful".



  • 3.  RE: Need Script to update bulk VM annotations field

    Posted Jul 21, 2010 07:16 PM

    I dont have any knowledge on scripting, can you please guide me how to run this script.

    nearly i have 600 vms list in vmsname.txt copied in c:\

    for above 600 vms I want to add notes in backup filed in annotations ...

    Please help me.

    Thanks in advance