Hello,
I would like to run a script for each time that a backup fails to create a support ticket.
The alert has been configured and the Powershell script has been tested and validated and works using the following command on the Powershell window:
- powershell.exe create_ticket.ps1 -s “Title” -d “Description”
I would like Commvault to launch the script with its own tokens such as <CLIENT NAME>.
Using the documentation ressource “Setting Up Command Line Alert Notifications” (source link: https://documentation.commvault.com/commvault/v11/article?p=5401.htm ), I configured the Run Command fields as following:
- Command executable location: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Arguments: /C powershell.exe C:\tmp\create_ticket.ps1 -s "Backup job failed for <CLIENT NAME>" -d "`nAlert Title: <ALERT NAME>`r`nTrigger Time: <TIME>”
Unfortunately this doesn’t work.
Do you have any advises?
Thank you for your answers.
Best regards,
John