Hi all,
I need to install a bundle on a ESX server. Right now i am running esxupdate command with --update option on esx console, i want to do it remotely without SSHing into the machine. Is there api in VI SDK to do this or there is other VMware SDK/API i should be looking in ?
Thanks.
vCLI is using the vSphere SDK for Perl .... this is the Perl bindings/stubs to the vSphere API and/or VI API
vSphere = 4.x
VI = 3.x
So yes, there are methods that handle the updates/etc, take a look at the source code for vihostupdate which is just Perl script and you'll see which methods are being utilized.
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at:
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
If you find this information useful, please award points for "correct" or "helpful".
Yep, there is an equivalent command using the vCLI which are based on the vSphere SDK for Perl
Take a look at the vCLI documentation and downloads here - http://www.vmware.com/support/developer/vcli/
You'll want to use vihostupdate - http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/index.html
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at:
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
If you find this information useful, please award points for "correct" or "helpful".
Thanks lamw.
One more thing, is there no support for this functionality in VI SDK or VIX API. Just asking this as i am already using VI SDK and VXI API in my application and it would be great if i can do it using them instead of putting more component. If there is none then i will have to go ahead with VCLI.
vCLI is using the vSphere SDK for Perl .... this is the Perl bindings/stubs to the vSphere API and/or VI API
vSphere = 4.x
VI = 3.x
So yes, there are methods that handle the updates/etc, take a look at the source code for vihostupdate which is just Perl script and you'll see which methods are being utilized.
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at:
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
If you find this information useful, please award points for "correct" or "helpful".
Thanks alot i will look into it.