Skip to main content
Solved

Trigger external script on failing Jobs


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

Best answer by Blaine Williams

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

View original
Did this answer your question?

4 replies

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


Juergen
Byte
Forum|alt.badge.img+8
  • Author
  • Byte
  • 43 replies
  • May 4, 2021

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


Mike Struening
Vaulter
Forum|alt.badge.img+23

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


Forum|alt.badge.img+8

You Welcome Juergen. 

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings