03-15-2012 05:39 AM
Hello folks,
I have taken over the administration of NBU7.1 at my new job, I am new to the platform and the guy that was here before me had an e-mail notification setup to tell him what tapes were written. I have seen the articles about how to tell which backups failed or which were successful but it seems he didnt use this route as it doesnt seem to be configured on the server. Is there another way to configure the notification below?
Subject: Past 24 Hours Windows NetBackup Tapes Written
Here are the Windows server tapes that have been written in the past 24 hours. Tapes that are not 000101-000199 do not get sent offsite.
Media ID Last Written Server
-------- ---------------- ----------
000117 03/06/2012 01:58 **nbu02
000168 03/05/2012 19:08 **nbu02
000007 03/06/2012 05:52 **nbu02
000116 03/06/2012 05:13 **nbu02
000143 03/05/2012 16:25 **nbu02
000144 03/05/2012 16:23 **nbu02
Solved! Go to Solution.
03-15-2012 09:32 AM
This particular emailed report is not set up within NetBackup.
If you look in your .../netbackup/bin/goodies directory, there is a "mail_bp_reports" script that produces the output you see above. It is likely running from cron (if you use Unix) or Windows Scheduler. If you need to modify the recipient email addresses, you would need to edit the command being executed by the scheduler to change who receives it, as the recipient list is being specified at the time the script is run.
There are other reports in that .../goodies directory you can set up to me emailed to you. Check the README in that directory for their descriptions.
03-15-2012 07:09 AM
scripting is fun but for this I think you can use other tools as Vault or OpCenter both can handle way more, but there is not much I can tell without seeing the script and know what is doing.
03-15-2012 09:32 AM
This particular emailed report is not set up within NetBackup.
If you look in your .../netbackup/bin/goodies directory, there is a "mail_bp_reports" script that produces the output you see above. It is likely running from cron (if you use Unix) or Windows Scheduler. If you need to modify the recipient email addresses, you would need to edit the command being executed by the scheduler to change who receives it, as the recipient list is being specified at the time the script is run.
There are other reports in that .../goodies directory you can set up to me emailed to you. Check the README in that directory for their descriptions.
03-15-2012 12:48 PM
Thanks Ron, I found it there.
If I wanted a success and or failure email is it easiest to just follow the document that Symantec has setup and run it from there or do it with a scheduled task like the one I currently have is?
03-15-2012 01:03 PM
would not want to find the one that is running and change the email address from theirs to yours - rather that starting a whole new one?
you don't say if you are running windows or unix master
it could be
unix: in cron
in the /usr/openv/netbackup/bin/parent_end.notify script or a bpend script
in windows
it could be in job scheduler
or in <installdir>netbackup/bin/parent or bpend notify
other wise that other email will just keep going to the address that does not exist.
and if you have NOM or OpsCenter it could be coming from there as a scheduled report.
you don't happen to have and old email that you can tell where it came from do you?
03-15-2012 01:08 PM
I'm sorry I think I made that last post rather confusing.
I found the alert that was coming that told the tapes written in the last 24 hours, did a simple e-mail change and it is all polished up.
now I want to setup an alert that is not currently running (that I know of) I want to be alerted when a backup fails or has exceptions and was wondering the best way to do so.
I am running a Windows Server btw.
03-15-2012 01:18 PM
If you want one report emailed to you showing a summary of successful and failed backups, you can schedule a "bpdbjobs -summary -L" report in Windows Scheduler or cron, which looks like this:
-bash-3.00$ sudo bpdbjobs -summary -L Summary of jobs on my_master_server Queued: 1 Waiting-to-Retry: 0 Active: 1 Successful: 10403 Partially Successful: 152 Failed: 0 Incomplete: 0 Suspended: 0 Total: 10557
See the NetBackup Commands reference manual, page 108, for other options, including the -report option that will show the status of backups on a client-by-client basis.
If you have it set up, the OpsCenter reports might be a better option.
If you just want to receive an email it is better to set that up in the Client Properties in the NetBackup GUI (under "NetBackup Management" -> "Host Properties" -> select which host(s) you want to be notified on -> "Universal Settings"), then:
(Note that this option appears to be the opposite of what is in the NBU Admin Guide I, no idea why.)
03-15-2012 02:09 PM
or just search - there have been a LOT of threads on that.
NOM or OpsCenter has alerts for that if you have one of this setup (free software for monitoring netbackup)