vSphere

 View Only
  • 1.  Work with Update Manager using SDK for Perl

    Posted Jul 23, 2010 04:02 PM

    Hi all!

    Will be great to have possibility to work with Update Manager using SDK for Perl.

    Does anybody know where to start?

    I didn't find any objects at: http://pubs.vmware.com/vi3/sdk/ReferenceGuide/

    Regards,

    Dmytro



  • 2.  RE: Work with Update Manager using SDK for Perl

    Broadcom Employee
    Posted Jul 23, 2010 04:53 PM

    Currently the VUM APIs are not exposed for public consumption nor are there any Perl bindings to the API.

    However, VMware recently did release PowerCLI cmdlets which are client side stubs to VUM API but failed to release the API for all other non-Windows SDKs (you can thank VMware for that)

    So for now, non-Window users luck out of automating any VUM tasks. We get to play with the slow GUI

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

    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: Work with Update Manager using SDK for Perl

    Posted Jul 26, 2010 03:26 PM

    Thank you!

    Do you have an example of using Perl scripts with PowerCLI cmdlets ?

    Regards,

    Dmytro



  • 4.  RE: Work with Update Manager using SDK for Perl

    Broadcom Employee
    Posted Jul 26, 2010 04:04 PM

    No, I would not recommend mixing the two languages ....

    If you really must, do a search online, I'm sure there are some Perl modules that allow you to talk to a Windows host. My guess is, some type of WMI call to Windows host to execute a PowerCLI script.

    The other option, setup a Windows VM and have PowerCLI installed and then use VMware VIX API which is for guest management and send the commands or have it execute a specific script via Perl bindings to VIX API - http://www.vmware.com/support/developer/vix-api/

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

    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".