Skip to main content
Solved

Need help to get a list of vCenter instance hostnames


christopherlecky
Byte
Forum|alt.badge.img+17

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.

Best answer by MaheshPrakash

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 ? 

View original
Did this answer your question?

15 replies

Forum|alt.badge.img+5
  • Vaulter
  • 33 replies
  • September 29, 2022

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


christopherlecky
Byte
Forum|alt.badge.img+17

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.


Forum|alt.badge.img+3
  • Vaulter
  • 20 replies
  • September 30, 2022

Good Morning,

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

Santiago Urosa


christopherlecky
Byte
Forum|alt.badge.img+17

Yes that is correct.

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


Forum|alt.badge.img+3
  • Vaulter
  • 20 replies
  • September 30, 2022

Good Morning @christopherlecky ,

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


christopherlecky
Byte
Forum|alt.badge.img+17

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.


Forum|alt.badge.img+3
  • Vaulter
  • 20 replies
  • September 30, 2022

@christopherlecky ,

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

 

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


christopherlecky
Byte
Forum|alt.badge.img+17

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.


christopherlecky
Byte
Forum|alt.badge.img+17
Bumpity Bump

 


Mike Struening
Vaulter
Forum|alt.badge.img+23

Bumpity bump got me 🤣

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


christopherlecky
Byte
Forum|alt.badge.img+17

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


christopherlecky
Byte
Forum|alt.badge.img+17

baby bump


Mike Struening
Vaulter
Forum|alt.badge.img+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 😂


Forum|alt.badge.img+4
  • Vaulter
  • 14 replies
  • Answer
  • October 21, 2022

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 ? 


christopherlecky
Byte
Forum|alt.badge.img+17
MaheshPrakash wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings