Solved

Need help to get a list of vCenter instance hostnames

  • 29 September 2022
  • 15 replies
  • 146 views

Userlevel 5
Badge +16

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.

icon

Best answer by MaheshPrakash 21 October 2022, 20:57

View original

15 replies

Userlevel 2
Badge +5

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

Userlevel 5
Badge +16

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.

Userlevel 1
Badge +3

Good Morning,

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

Santiago Urosa

Userlevel 5
Badge +16

Yes that is correct.

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

Userlevel 1
Badge +3

Good Morning @christopherlecky ,

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

Userlevel 5
Badge +16

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.

Userlevel 1
Badge +3

@christopherlecky ,

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

 

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

Userlevel 5
Badge +16

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.

Userlevel 5
Badge +16
Bumpity Bump

 

Userlevel 7
Badge +23

Bumpity bump got me 🤣

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

Userlevel 5
Badge +16

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

Userlevel 5
Badge +16

baby bump

Userlevel 7
Badge +23

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 😂

Badge +2

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 ? 

Userlevel 5
Badge +16

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