ADSM-L

[ADSM-L] Postschedulecmd exiting with non-zero return code should fail backup schedule

2007-09-28 10:58:02
Subject: [ADSM-L] Postschedulecmd exiting with non-zero return code should fail backup schedule
From: "Schneider, John" <schnjd AT STLO.MERCY DOT NET>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Fri, 28 Sep 2007 09:55:40 -0500
Greetings,
We are just testing using pre and post schedule commands on our AIX
systems (TSM client 5.3.4.0, and TSM 5.3.4.2 server) and having a
problem.

We want a non-zero return code from either the pre- and post- scripts to
show up the backup as a failure.  According to the manual, a non-zero
return code from the preschedulecmd will cause the schedule to fail with
a FAILED 12, and a non-zero return code from the the postschedulecmd
will cause the schedule to fail with a FAILED 8.  

We tested this with two simple scripts, and the a non-zero return code
from the preschedulecmd does indeed cause the schedule to fail with a
FAILED 12.

But it doesn't work for the postschedulecmd.  A non-zero return code
still causes the schedule to complete successfully.  Yes, we can tell
the post script is running, since it generates a log of it's execution,
including the return code it is producing.

Has anyone else see this? 

Best Regards,

John D. Schneider
Lead System Administrator - Storage
Sisters of Mercy Health System
Email:  schnjd AT stlo.mercy DOT net