Relevance query to return computer name using VMUUID

Hello!

I needed to figure out a way to retrieve details of a computer (specifically, the computer name and computer id by querying the vm uuid) using iem cli.

Something like- (name of it, id of it) of bes computer whose (vm uuid of it is “40116cbc-8fd5-4f76-ffe7-8a7838025y29”)

Thanks, in advance!

Assuming you have the ‘Virtual Machine Guest Information’ analysis activated from the ‘Virtual Endpoint Manager’ site, you should be able to leverage session relevance such as:

(id of it, name of it) of bes computers whose (value of result from (bes property "Virtual Machine UUID") of it = "40116cbc-8fd5-4f76-ffe7-8a7838025y29")

2 Likes

Works!! Thank you so much :slight_smile:

Hi Aram,

Using VM UUID , Is it possible to fetch host corresponding to virtual machine.

Regards,
Manish Singh

Try something like:

(value of result from (bes property "Host") of it) of bes computers whose (value of result from (bes property "Virtual Machine UUID") of it = "40116cbc-8fd5-4f76-ffe7-8a7838025y29")