Solved

Trigger external script on failing Jobs


Userlevel 3
Badge +8

Hello,

I am looking for a solution which can trigger a script outside from Commvault when ever a backup job is failing. The script needs only give over the failing JOBID.

Plan is to automate a quick analyze of the failure and trigger the right team to fix the issue without manual invention.

thanks in advance for your suggestions.

regards Jürgen

icon

Best answer by Blaine Williams 3 May 2021, 12:27

View original

4 replies

Userlevel 5
Badge +8

You Welcome Juergen. 

Our version is “Not seeing the wood for the trees”

Userlevel 7
Badge +23

Our version is “Not seeing the forest for the trees” :joy:

Userlevel 3
Badge +8

Hi Blaine,

 

thanks, that was exactly what I am looking for, sometimes you see the wood not because of the many trees (German proverb) :sweat_smile:

regards Jürgen

Userlevel 5
Badge +8

Hi Juergen, 

You can use the alerts and notifications on failed jobs to trigger a command line to run scripts if you require.

Alerts : https://documentation.commvault.com/commvault/v11/article?p=5196.htm 

Command Line notification https://documentation.commvault.com/commvault/v11/article?p=5401.htm

 

However if you just want to notify the teams when there is a failure with details just use CV to do it. You can then configure separate team responsibilities between alerts and have it notify them. 

Creating an Alert : https://documentation.commvault.com/commvault/v11/article?p=5203.htm

There is also a predefined alert already created you can copy and modify. 

https://documentation.commvault.com/commvault/v11/article?p=5199.htm#o131659

Backup job failed

Job Management / Data Protection

This alert notifies the user when a backup job fails to complete, fails to start or is stopped by the system

Reply