Skip to main content
Answer

Qcommand to get install directory on a client or mediaagent

  • July 18, 2021
  • 3 replies
  • 309 views

Qcommand to get install directory on a client or mediaagent

Best answer by SC2021

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

 

3 replies

Forum|alt.badge.img+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


  • Answer
  • July 22, 2021

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

 


Forum|alt.badge.img+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