VMware {code} Community
atrockz
Contributor
Contributor
Jump to solution

Running esxupdate command using VI SDK API

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.

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

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:

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

View solution in original post

0 Kudos
4 Replies
lamw
Community Manager
Community Manager
Jump to solution

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:

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

atrockz
Contributor
Contributor
Jump to solution

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.

0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

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:

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

0 Kudos
atrockz
Contributor
Contributor
Jump to solution

Thanks alot i will look into it.

0 Kudos