VMware Cloud Community
GurpreetKaurBab
Enthusiast
Enthusiast

vRO : Server.findAllForType ( IP Query) Not working for vCenter 6.0 Plug IN

I am trying to find list of Virtual Machines having a specific IP Address

In our UAT environment, we have vRA 7.3.0 and vCenter 6.5 and vCEnter Plug In : 6.5.05471688

And below query works fine.

vRO :

vRO input variable: ipAddress

var vms = Server.findAllForType("VC:VirtualMachine","xpath:ipAddress[contains(.,' "+ ipAddress + " ')]");

However,

In our Production environment, we have vRA 7.3.0 and vCenter 6.0 and vCenter Plug In : 6.5.05471688

And when we try to run above query, the workflow goes into looop or get hung, it doesn't return anything nor proceed further.

Nevertheless,

below query works fine in both environments:

vRO input variable: vmName

var vms = Server.findAllForType("VC:VirtualMachine", vmName)

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

Can someone suggest a workaround or any modification that I can do in the query to get this going for vCenter 6.0 ?

We are planning vCenter upgrade in 2 months, till then I need to get this going.

3 Replies
daphnissov
Immortal
Immortal

0 Kudos
GurpreetKaurBab
Enthusiast
Enthusiast

The query is made in vRO itself, that's an embedded vRO with vRA 7.3.0 which is linked to vCenter instances to perform operations.

0 Kudos
daphnissov
Immortal
Immortal

Your question, however, deals with vRO and not vRA. Please move to vRO.

0 Kudos