Skip to main content
Solved

Need help to get a list of vCenter instance hostnames

  • 29 September 2022
  • 15 replies
  • 156 views

I cannot use the client list because we have duplicates with the same hostname.

 

I need a query or even a rest api call that can get this information.

 

thanks.

Chris.

Could you use the merge duplicated clients workflow to fix that issue first then get your client list clean allowing you to get that list a little easier?

https://kb.commvault.com/article/63652


No, that's not really an option, none of the clients have valid hostnames. They are only valid at the instance level.

 

I tried to query for instances using the appid, but that does not differentiate between vCenter clients and vm clients.


Good Morning,

Are you looking to query only the SUDO Clients /vCenter Clients?

Santiago Urosa


Yes that is correct.

I just need to information for the hypervisors defined within the environment.


Good Morning @christopherlecky ,

We might be able to build a query find all client by type. It might take sometime.


it would be very helpful, I kind of assumed someone within home base would already have this on hand. It’s essentially identical to the hypervisor list in Command Center.

Thanks.

Chris.


@christopherlecky ,

We do have a report that should cover the requested information.

 

https://cloud.commvault.com/webconsole/softwarestore/#!/135/661/11652


I imported the report but this report shows client details, hypervisor details are there as a column in the report but it doesn’t provide it explicitly.


Bumpity Bump

 


Bumpity bump got me 🤣

I’m chatting with some API devs on another topic and will share this one as well.


Once again, I did not mean to click best answer then.


baby bump


I asked a few devs about a couple of threads and was told someone replied….must have been the other thread.

I’ll follow up again 😂


Hi Chris, currently we do not have an API which can get unique hostnames. Would you be able to loop through the client list to find unique hostnames ? 


Hi Chris, currently we do not have an API which can get unique hostnames. Would you be able to loop through the client list to find unique hostnames ? 

I could definitely do that, but it seems like a janky solution, and is probably really inefficient.

 

You have given me an idea though.

Thank you.

 

I can do a rest query for instances, convert to xml and use xpath to filter.


Reply