VMware {code} Community
dinny
Expert
Expert

How can I tell which methods will work on ESX 2.5 as well as ESX 3?

Hiya,

I have a script that does a rescan for new LUNs - using "RescanAllHba"

It works fine on my ESX 3 servers - but fails on my ESX 2.5 servers.

If I look in the MOB, the same methods appear to exist for both types of server?

Does this indicate that they should work for both? Or is it not that clear cut?

If it is more complicated how can I find out which methods should work on ESX 2.5 (other than running them and seeing them fail Smiley Wink )

Dinny

0 Kudos
2 Replies
admin
Immortal
Immortal

A set of documents available to list the functionalities available:

http://www.vmware.com/pdf/esx25_admin.pdf

Another place for finding information on esx 2.5 provides developer support references.

http://www.vmware.com/support/pubs/esx_pubs.html, providing the reference guide for different sdk packages, their reference guides.

0 Kudos
hrobinson
VMware Employee
VMware Employee

Within the API, there are three methods that can be used to decide if a platform, host, or vm supports a function.

\- Some objects have a capabilities attribute (e.g) that will describe the capabilities. This is very useful in HostSystem to decide what type of Snapshots the host system supports. Unfortunately, not all capabilities were encoded that way.

\- Some objects used "DisabledMethods" property to tell you that some of the properties are disabled. This has the two causes: you don't have the privileges for this operation or the platform doesn't support it.

\- And finally some methods just simply return "Not supported" if you invoke them on a platform that doesn't implement. Unfortunately, many methods fall in that last category. From what I've seen, RescanAllHba is one of these.

\- Makes your script a little harder:

- Try rescanallhba

- if not supported, then scan each hba one at a time.

H

0 Kudos