Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bpend_notify scripts... 1

Status
Not open for further replies.

B14speedfreak

Technical User
Mar 23, 2006
182
Hi all,

Thanks in advance for reading and any subsequent posts.

We are using Veritas Netbackup 5.1 under solaris. We want to use the bpend_notify scripts to run at the end of specific backups.

Anyhow I am having a bit of trouble getting them to execute. I have checked the modifications for the script (777) and also increased the bpend_timeout variable in the bp.conf file of the server/client (its all on the 1 box). I have also restarted the daemons. I am pretty sure that the script should not be timing out (since its only sending me an email!).

Has anyone got any other ideas of what I can do to get it working?

thanks again for any help,


B14... aka... Marky Mark... the frozen monkey in the server room...
 
Just checking the basics. Did you move the script from the .../netbackup/bin/goodies directory to the .../netbackup/bin directory

Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and that is truth.
 
Hi Bob,

Thanks for the reply.

Yeah I copied the script from the goodies dir to the netbackup/bin dir, so in theory at least it should work fine. Really it should be just mailing me and telling me that its completed. I wanted it for a specific policy, so I have added that on as an extention to the file name (as per the user guides). THe only thing that I have changed in the script is the email address at the bottom (and uncommented it!)

Any ideas?

Thanks,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
sometimes the email is squirrely and can be a separate issue from Netbackup. I would experiment with a simple command like:
touch /tmp/blah



Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and that is truth.
 
Thats a good idea. I am pretty sure that the email is working, but I will try your idea anyway, sounds like a good plan.

Thanks again,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
Just tried the script with a touch and its still not worked. I made the call right before the exit 0 call in the script and it shouldn't be affected by any if statements executing correctly.

Any other ideas anybody??? Thanks again for all the help and posts.

B14... aka... Marky Mark... the frozen monkey in the server room...
 
Ok I have been messing round with this quite a bit. Anyhow the last test that I have done is with both a straight copy of the script and with a copy of the script but with the policy name added on to the end of the file name (eg BPEND_NOTIFY.[policyname]) Anyhow the straight copy of the script works and the one with the policy name on it does not - I got no ideas why this is though!

Any ideas anyone (and yes I have tripple checked the name and even got 2 other people to check it for me!)

thanks again for all the help,


B14... aka... Marky Mark... the frozen monkey in the server room...
 
I have a quick question, well more like a request for confirmation:

1. If I run a BPEND_NOTIFY.[policyname] script it will run at the end of the backup for that particular policy.

2. If I run a BPEND_NOTIFY script, it will run at the end of each backup.

Are these 2 statements true? Thanks again for your paitence and time,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
statement 1 is correct

statement 2 is correct with the following exception:
bpend_notify.policy, if it exists, will have precedence for that backup and hence bpend_notify will NOT run.

Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and that is truth.
 
Thanks for the info Bob, thats really useful to know.

Ok I really need to make sure that I use the bpend_notify script with the policy name at the end. The policy that I am trying to do this with is an Oracle one (which would probably explain a lot of the problems I am having with it). Anyhow I can get it to work with a normal file system backup (just tried it). But I carn't with the Oracle one.

I will have a bit more of a mess around with it and see where I can get to with it.

Thanks again,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
Having spoken to a few colleagues, they reckon that they have not been able to get the BPEND_NOTIFY scripts to work with Oracle policies, I guess the way I will get round it is by using a cron-job. But thanks again for the help,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
oh...your using the wrong script. There is another script to use for Oracle. This is because the Oracle backup is comprised of many streams. Look at db_end_streams

here is a good technote concerning start/stop scripts:
Notification scripts and their usage



Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and that is truth.
 
also make sure that the scripts have the proper permissions. I usually try 777 for the script.
 
Hi Comtec,

Yeah I made sure the permissions where 777 so anyone can read, write and (most importantly) execute it!

I will try and make sure that I am using the right scripts though first!

Thanks again guys,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
Bob,

I have had a look round at:

1. the link you gave me
2. the netbackup sys admin pdf for Oracle
3. the sysadmin guide for veritas netbackup

anyhow now of them mention anything about db_end_streams. However I managed to find the script in the goodies directory on the Master servers.

Thanks,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
Hi guys,

Sorry to be a pain in the backside (but well I carn't get the veritas support site to work properly (whats knew there???)), anyhow the db_end_streams script, if I copy it from the [nbu]/bin/goodies up to the [nbu]/bin dir can I then rename it with a policy at the end like, like the bpend_notify scripts? (IE it will only fire for that specific policy)

Also I take it that this script will be called at the end of a backup?

Obvious questions I know, but I would rather have some documentation on it.

Thanks again,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
I do not know where the documentation for the files are, however there are some comments within the scripts in the goodies directory. They all should work with the .policy extension
db_begin_bkup
db_begin_streams
db_end_bkup
db_end_streams


Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and that is truth.
 
Thanks Bob, thats really quite useful to know. I will have a mess around with it today at some point, hopefully have it working for tommorrow.

Thanks again,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
Hi Bob,

Any ideas what the STREAM_IN_CONTROL variable in the db_end_streams script refers to? I guessed the others.

Thanks,



B14... aka... Marky Mark... the frozen monkey in the server room...
 
Hi,

Have you checked the permissions of the bpnotify logs, particularly for the oracle owned processes.

Clive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top