Skip to main content
Solved

Commvault DB Query to list all the Virtual Machines (VSA) clients

  • Oct 10, 2023 2:24 PM UTC
  • 6 replies
  • 274 views

Forum|alt.badge.img+5

I want SQL query to fetch all the virtual machines in the environment which has Virtual Server agent in it, i..e VSA clients. Is there a documentation wherein i can get simPackageId for all different agents. 

Best answer by Rajiv

Hello @Rahul Nair 

Could you please check the query mentioned here and see if that helps: https://documentation.commvault.com/2023e/expert/30867_verifying_backup_status_of_virtual_machines_using_sql_query.html

Best,

Rajiv Singal

View original

6 replies

Forum|alt.badge.img+13

@Rahul Nair 

Please try with the API and let us know if this helps:

https://api.commvault.com/#734d6b5e-cebf-42b2-b673-7af1449082b5


Forum|alt.badge.img+5
  • Author
  • Apprentice
  • Oct 14, 2023 9:24 AM UTC

Rest API and get-cvvirtualmachine is returning lot of information, I only need list of all the VM Names so that i can add it in a List.


Forum|alt.badge.img+5
  • Author
  • Apprentice
  • Oct 14, 2023 10:30 AM UTC

Get-CVVitualMachine list above details of all the VMs. Is there way wherein i can only fetch “name” of all the VMs from this output.


Rajiv
Vaulter
Forum|alt.badge.img+15
  • Vaulter
  • Answer
  • Oct 16, 2023 5:17 AM UTC

Hello @Rahul Nair 

Could you please check the query mentioned here and see if that helps: https://documentation.commvault.com/2023e/expert/30867_verifying_backup_status_of_virtual_machines_using_sql_query.html

Best,

Rajiv Singal


Forum|alt.badge.img+5
  • Author
  • Apprentice
  • Oct 16, 2023 8:11 PM UTC

Thanks this is giving the VM Names, is there a query which will help to list both VMname, Vcenter Name in which it is configured

 

VmName, VCenterName


Forum|alt.badge.img+5
  • Author
  • Apprentice
  • Oct 19, 2023 6:50 AM UTC
Looking for a SQL query which returns this output as per attached screenshot, i need this to use it further to run bulk VM level backups using guid or vm uuid.