Solved

Qcommand to get install directory on a client or mediaagent

  • 18 July 2021
  • 3 replies
  • 257 views

Badge

Qcommand to get install directory on a client or mediaagent

icon

Best answer by SC2021 22 July 2021, 16:27

View original

3 replies

Userlevel 7
Badge +15

Hi @prudhvi 

Thanks for the question.

I have been checking through documentation and we have a few scripts to obtain client information,  but I can’t confirm whether installation directory is included in the results:

Available QScripts

Specifically, please take a look at:

GetClientDescription

GetClientInfo

GetClient_Info

I’m also checking if we have a report that will provide this data.

Thanks,

Stuart

Userlevel 1
Badge +2

I’m not sure if there is a qcommand, but I get this information from the environment (local to the machine) or the registry (for local or remote machines):


echo %CV_Instance001%
C:\Program Files\Commvault\ContentStore\Base

reg query "HKLM\SOFTWARE\CommVault Systems\Galaxy\Instance001\Base" /v dBASEHOME

HKEY_LOCAL_MACHINE\SOFTWARE\CommVault Systems\Galaxy\Instance001\Base
dBASEHOME REG_SZ C:\Program Files\Commvault\ContentStore\Base


reg query "\\MyMediaAgent\HKLM\SOFTWARE\CommVault Systems\Galaxy\Instance001\Base" /v dBASEHOME

HKEY_LOCAL_MACHINE\SOFTWARE\CommVault Systems\Galaxy\Instance001\Base
dBASEHOME REG_SZ D:\Apps\Commvault\Simpana\Base

 

Userlevel 7
Badge +15

As @SC2021 suggests, the install directory can be obtained from the client registry.

I have been checking available reports, but unfortunately I have been able to find a report that shows install directory data.

We do have this data in the Commserve database as you can see this detail on client properties in the GUI.

The best match I can find is Client Details Report, however as it doesn’t show install directory, you would need to clone the report and edit to include the additional field.

Thanks,

Stuart

Reply