Start a Conversation

Unsolved

This post is more than 5 years old

2602

November 20th, 2009 17:00

Passing return code to post command script?

Does anyone know how to pass the return code of the Avamar backup job down to its post command script?  I basically need a way to have the post command script run one set of commands if the backup job success or another set of commands if the backup job fails.

Thanks in advance.

24 Posts

March 9th, 2010 02:00

We have the same question here - there doesn't appear to be a run post-script on successful backup checkbox....is there a way to handle this in a script..perhaps read the output of the backup log?

5 Practitioner

 • 

274.2K Posts

March 11th, 2010 07:00

Try adding the parameter.

--run-at-end-clauses=exit-on-error=true

default is set to false

5 Practitioner

 • 

274.2K Posts

March 11th, 2010 08:00

its located in the avamar technical addendum pdf page 198 for all the available option it only specifies

--run-at-start-clauses= but you also have --run-at-end-clauses.

one of the current options i have set at one of my projects is

--run-at-start-clauses=timeout-seconds=72000

--run-at-end-clauses=timeout-seconds=80000

which give allowed us to increase the timeout value for the pre and post script.

24 Posts

March 11th, 2010 08:00

Hi dove,

thanks for the response...where did you see that parameter - I cannot locate it.

12 Posts

August 8th, 2014 15:00

Has anybody figured this out?

I have a need to create a windows script that can be triggered at the end of the backup, and hopefully pass a parameter from Avamar to the windows script so that the script can send an SMTP message to the user that the backup of their server has been successful or a failure.

Can any of the event codes 30,000 - 30,933 be passed to the script.

Even if it only passed the number, I could then echo some text that would explain what that code number means.


Thanks.

498 Posts

August 12th, 2014 07:00

I spent 2 months with EMC to get what I needed done.

No way to pass return code.

what I needed was do one thing if the backup was good and

send an email to a group of people if the Avamar backup failed.

this was my results - typed up - use what you can, test test test.

1 Attachment

No Events found!

Top