Re: [Veritas-bu] Oracle Backup Notification
2009-08-18 04:50:39
Many ways to do this indeed, but one i choose to alert on specific
policies clients etc is by editing
/usr/openv/netbackup/bin/backup_exit_notify.
It will send you an email once the job completes with the backup status
and extra info.
e.g
Below the section which says :-
# might want to mail this to someone
You may want to add things like :-
if [ "$1" = "<clienta>" ] || [ "$1" = "<clientb>" ]
then
cat $OUTF | mailx -s "Netbackup exit for client [$1]" email AT address DOT
com
fi
You can just keep adding sections if you like also :-
if [ "$2" = "<policy a>" ]
then
cat $OUTF |mailx -s "Netbackup exit for policy [$2]" email AT address DOT
com
fi
For a full report i have a separate script which uses bperror -backstat
-hoursago <nnn> -U as well as doing various other functions. Obviously
changing <nnn> with the numbers of hours back to report on. I have this
set my a command line variable and auto adjusted if the script needs to
sleep if jobs are still running.
Hope this gives some pointers
Cheers
Harpreet SINGH wrote:
> Dear Mr. Dave,
>
> If possible can you send me one example.
>
> Actually I want to monitor my backup by Policy wise.
> Some of the backup runs only during the week end.
> If I can monitor the backup status of those backups by email/sms alert.
> Then I no need to logon and check the backup status.
>
> With Warm Regards
> =-=-=-=-=-=-=-=-=-=-=-=-=-
> Harpreet Singh Chana
>
> Phone : (O) 6895 - 4326
> Fax : (O) 6895 - 4991
> =-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
> Notice
> The information in this message is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this
> message by anyone else is unauthorized. If you are not the intended
> recipient, any disclosure, copying or distribution of the message, or
> any action taken by you in reliance on it, is prohibited and may be
> unlawful. If you have received this message in error, please delete it
> and contact the sender immediately. Thank you.
>
>
>
>
>
> Dave Markham
> <dave.markham@fjs
> erv.net> To
> Sent by: Neeraj Puri <neeraj.puri AT gmail DOT
> com>
> veritas-bu-bounce cc
> s AT mailman.eng DOT aub veritas-bu AT
> mailman.eng.auburn DOT edu
> urn.edu Subject
> Re: [Veritas-bu] Oracle Backup
> Notification
> 08/17/2009 10:08
> PM
>
>
> Please respond to
> dave.markham@fjse
> rv.net
>
>
>
>
>
>
> I'd personally edit /usr/openv/netbackup/bin/backup_exit_notify and put
> a test section in for various policies or clients to send different emails.
>
> If you need a hand let me know
>
> D
>
> Neeraj Puri wrote:
>
>> Dear Admins,
>>
>> I was looking for a solution to send an e-mail confirmation after the
>> Oracle backup is completed. The option of "client sends e-mail" send a
>> lot of e-mails as it sends mail for each single stream of backup job.
>>
>> Can you help!
>>
>> Regards,
>> Neeraj
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
>> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>>
>>
>
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
> ForwardSourceID:NT000FDD2E
>
>
>
>
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|