[Veritas-bu] netbackup Oracle scripts and return values
2003-11-13 16:06:37
So did you go as far as passing exit values > 1 ? Status 1 (particially
successful) doesn't
seem to spark much emergency in night operators and management... Status 1
seems to be all
I've ever seen when using RMAN scripts.
Thanks for confirming the issue, I resolved it by simply using variable
command files within
the parent script.
-----Original Message-----
From: Steven L. Sesar [mailto:ssesar AT mitre DOT org]
Sent: Thursday, November 13, 2003 10:45 AM
To: Markham, Richard
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] netbackup Oracle scripts and return values
Yeah, it's a pain. My solution was to artificially set exit values
within my RMAN code generation script (I use one script which will build
the RMAN scripts according to the policy, SID, type of backup, etc.) in
situations where the backup failed but the script returned an exit value
of 0. This forces NBU to accurately report back failures/successes.
Markham, Richard wrote:
>Has anyone dealt with the return values not carrying back to the parent
>shell script within "$?"
>Basically, I have a parent script which calls another script (given a
>certain condition) and
>this child script runs RMAN and afterwards does a RETURN_STATUS=$?. The
>child script sees that RMAN
>failed (RETURN_STATUS > 0) so I then do a "exit $RETURN_STATUS". At this
>point the parent script
>picks up where it left off and I do a RETURN_STATUS2=$? and exit
>$RETURN_STATUS2. I'm using
>$RETURN_STATUS2 for now for troubleshooting purposes. When I echo
>$RETURN_STATUS2 within the
>parent script, is shows "0", which explains why Netbackup thinks the backup
>was a success......
>_______________________________________________
>Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>
--
===================================
Steven L. Sesar
Senior Operating System Programmer/Analyst
UNIX Application Services R101
The MITRE Corporation
202 Burlington Road - KS101
Bedford, MA 01730
tel: (781) 271-7702
fax: (781) 271-2600
mobile: (617) 893-9635
email: ssesar AT mitre DOT org
===================================
|
|
|