I want to to fetch a list of clients which has file system agent installed in it using Commvault DB query and the output of the same will be used as an input to display all FS clients to run backups only for file system agents.
Solved
Commvault DB Query to list clients having File System Agent Installed

Best answer by Sunil
Please try this.
SELECT distinct C.id, C.name, C.displayName, IT.name FROM APP_Client C
INNER JOIN simInstalledPackages S
ON C.id = S.ClientId AND S.simPackageID IN (702, 1101)
INNER JOIN APP_IDAName I
ON C.id = I.clientId
INNER JOIN APP_iDAType IT
ON I.appTypeId = IT.type AND IT.name like '%File System%'
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.