Veritas-bu

[Veritas-bu] Non-zero exit status on bpstart_notify help

2007-01-11 05:44:02
Subject: [Veritas-bu] Non-zero exit status on bpstart_notify help
From: Ueli.Schweizer at AGITE-Software.com (Ueli Schweizer)
Date: Thu, 11 Jan 2007 11:44:02 +0100
Hi Jason

 

In Windows environments NetBackup does not use the exit code but interprets
the content of an ASCII file as the exit code of the bpstart_notify. The
name of the file is passed to the script as parameter 6.

 

You should do an "echo 14 > %6" instead of an "exit 14" in your script.

 

Cheers

Ueli Schweizer

AGITE Software AG . Boesch 43 . CH-6331 Huenenberg . Switzerland
Direct: +41 79 204 9190 . Phone: +41 41 781 5678 . Fax: +41 41 781 5677
Ueli.Schweizer at AGITE-Software.com . http://www.AGITE-Software.com 

backupVISUAL...
                  ...we make life on backup easy

  _____  

From: veritas-bu-bounces at mailman.eng.auburn.edu
[mailto:veritas-bu-bounces at mailman.eng.auburn.edu] On Behalf Of Ellis, Jason
Sent: Thursday, January 11, 2007 1:43 AM
To: veritas-bu at mailman.eng.auburn.edu
Subject: [Veritas-bu] Non-zero exit status on bpstart_notify help

 

I've written a bpstart_notify and bpend_notify script for a client. I want
the script to exit with a non-zero status if there is some kind of fatal
error. So, on the potential fatal error routines I placed an "exit X", where
X is equal to a non-zero status. 

 

During testing the script supposedly exited with a 14 (per my log file),
however the activity monitor didn't reflect a status code 73, and the
bpend_notify script still kicked off.

 

I'm running Windows 2003 and doing this with Windows NT shell scripting. I
did some testing with a little script and in theory if I tell a script to
"exit 14" the error level should be 14.

 

Any thoughts?

 

Jason Ellis
Technical Consultant, Data Protection Team
IndyMac Bank, La Mirada Datacenter
Phone: (714) 520-3414
Mobile: (714) 889-8734

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://mailman.eng.auburn.edu/pipermail/veritas-bu/attachments/20070111/0b463f40/attachment.html

<Prev in Thread] Current Thread [Next in Thread>