Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Grabbing ESXi Host config info

$
0
0

I've been working with / manipulating some host config data to populate other information, but after upgrading from vCO 5.5.2 to vRO 6.0 (standalone), I'm not able to grab anything under the host's config (return type of VCHostConfigInfo).. The long term play (or the biggest need) is to get the Host version, which is I'm pulling like this:

 

var hostver = vCenterVm.runtime.host.Config.Product.Version;

 

What the error I'm getting is coming back as is this: TypeError: Cannot read property "product" from null

 

If I just go and try and run a System.log/debug/whatever on just config, it is returning null.. but I'm 100% certain the host object isn't (I've tried running just the host into a variable and making sure its' getting there). It's reading the host, just not anything under config. Is this something wonky going on in the 6.0 plugin, and if so.. is there any other way for me to pull (at a minimum) the host's version out? I can see when I look at the objects through the Inventory view that version info is being rolled up ...

 

Thanks!


Viewing all articles
Browse latest Browse all 6251

Trending Articles