Question

Command excetion

  • 26 February 2024
  • 1 reply
  • 16 views

Badge

Our devops team have a test that validates the commvault client group with below powershell command.

./qoperation execscript -sn GetClientGroup.sql -si cg=$group | Select-string -Pattern "^$(hostname)$"

They execute that command inside the E:\\Program Files\\CommVault\\Simpana\\Base.

The file 'GetClientGroup.sql' no longer seems to be in the E:\\Program Files\\CommVault\\Simpana\\Base folder. So our test is failing.

Do you have any idea on how we can validate commvault client group via powershell or any other way.

Thank you!!

 


1 reply

Hi,

there is a syntax-ish mistake

WRONG: qoperation execscript -sn GetClientGroup.sql

CORRECT: qoperation execscript -sn GetClientGroup

No .sql suffix is needed. These scripts do not exist on the filesystem.

Kr,

Jacek

Reply