08-26-2012 09:35 PM
Solved! Go to Solution.
08-27-2012 02:04 AM
Example.
In a bpend_notify script I modified ...
I set file descriptor 3 to be the 'log file'
08-26-2012 09:38 PM
08-26-2012 09:55 PM
check the sudoers file, you shouldn't get prompted for a password when using sudo.
if bpstart_notify.lx245-PNBV is unaltered it probaly does nothing. But I can say - you need to take a look at the script.
08-26-2012 10:00 PM
What does this does?sudo ./bpstart_notify.lx245-PNBV
If i got the error then?
08-26-2012 10:39 PM
My goodness Nikhil! Why did you expect an error?
Look at the contents of the script with :
more bpstart_notify.lx245-PNBV
Look at the commands that are listed in the script. Default bpstart_notify script contains no commands - they are there for the user to add commands to run before backup starts.
If i got the error then?
This will mean that something is wrong with the script. Check the script.
08-26-2012 11:04 PM
I would say no error is good.
The bpstart scripts are not meant to put output to the screen, this can cause problems, so when running one of these I would expect to see absolutely nothing, with any output being suppressed (cancelled) for exampe with /dev/null
Martin
08-27-2012 01:32 AM
If you have copied the sample bpstart_notify script in goodies directory on the master server, you fill find a lot of information in the top of the file (All lines starting with #).
You will find this line as well:
# CAUTION: writing anything to stdout or stderr will cause backup problems
This means that output will not be displayed on the screen.
The sample script create an output file:
OUTF=/usr/openv/netbackup/bin/BPSTART_CALLED
So, to see output of your script, first of all see if there is a similar line in your script.
Check if all commands in the script sends its output to the 'OUT-file' : >> $OUTF
In the above example, there will be a fille called BPSTART_CALLED in /usr/openv/netbackup/bin/ directory.
This file will contain output of script.
08-27-2012 02:04 AM
Example.
In a bpend_notify script I modified ...
I set file descriptor 3 to be the 'log file'