[Veritas-bu] Email people when a job completes or fails
2002-04-24 02:23:43
Subject: |
[Veritas-bu] Email people when a job completes or fails |
From: |
begrn AT wmdata DOT no (Grønås Bengt) |
Date: |
Wed, 24 Apr 2002 08:23:43 +0200 |
your script converted to Windows NT script (put in a file with extension
*.bat og *.cmd)
SET OUTF=%TEMP%\outfile.txt
echo -------- %date% %time% --------------- >> %OUTF%
echo CLIENT: %1 >> %OUTF%
echo CLASS: %2 >> %OUTF%
echo SCHEDULE: %3 >> %OUTF%
echo SCHEDULE TYPE: %4 >> %OUTF%
echo STATUS: %5 >> %OUTF%
echo STREAM: %6 >> %OUTF%
echo STATUS: %5 >> %OUTF%
echo STREAM: %6 >> %OUTF%
echo -------- %date% %time% --------------- >> %OUTF%
C:\Program Files\VERITAS\NetBackup\bin\goodies\bperrcode %5 >> %OUTF%
blat "%OUTF%" -to somone AT whocares DOT com
DEL /F %OUTF%
Also Remember to download blat, and put in in your servers path (eg.
c:\winnt)!!
best regards,
Bengt
> -----Original Message-----
> From: Ang Chip Chiang NCS [mailto:ccang AT ncs.com DOT sg]
> Sent: 22. april 2002 14:39
> To: 'David Markham '; ''WEAVER, Simon' '
> Cc: 'veritas-bu AT mailman.eng.auburn DOT edu '
> Subject: RE: [Veritas-bu] Email people when a job completes or fails
>
>
>
> Hi,
>
> Check out the following technote:
> http://seer.support.veritas.com/docs/243127.htm
>
> ACC
>
> -----Original Message-----
> From: David Markham
> To: 'WEAVER, Simon'
> Cc: veritas-bu AT mailman.eng.auburn DOT edu
> Sent: 4/22/02 6:50 PM
> Subject: RE: [Veritas-bu] Email people when a job completes or fails
>
> Arrr i see, well /usr/openv/netbackup/bin/backup_exit_notify
> doesnt help
> you
> much does it hehehe
>
> Not sure about NT sorry, but im sure there will be seomthing similar
>
> -----Original Message-----
> From: WEAVER, Simon [mailto:Simon.WEAVER AT astrium-space DOT com]
> Sent: 22 April 2002 11:41
> To: 'dave.markham AT icl DOT net'
> Cc: 'veritas-bu AT mailman.eng.auburn DOT edu'
> Subject: RE: [Veritas-bu] Email people when a job completes or fails
>
>
> Forgot to mention - This is Windows NT, not Unix :(
>
> Simon Weaver
> NT Domain Administrator
> Ext. 5544
> Tel: 02392-705544 (Direct Dial)
> Simon.Weaver AT Astrium-Space DOT com
>
> -----Original Message-----
> From: David Markham [mailto:dave.markham AT icl DOT net]
> Sent: 22 April 2002 11:36:AM
> To: WEAVER, Simon; veritas-bu AT mailman.eng.auburn DOT edu
> Subject: RE: [Veritas-bu] Email people when a job completes or
> fails
>
> What i do is use /usr/openv/netbackup/bin/backup_exit_notify
>
> Theres an option in it to send mail when a job finished.
>
> I also appened bperrcode onto this to give me info on the
> status code of
> exit:- see below
>
>
> echo `date` "-----------------------------" >> $OUTF
> echo `date` " CLIENT: $1" >> $OUTF
> echo `date` " CLASS: $2" >> $OUTF
> echo `date` " SCHEDULE: $3" >> $OUTF
> echo `date` "SCHEDULE TYPE: $4" >> $OUTF
> echo `date` " STATUS: $5" >> $OUTF
> echo `date` " STREAM: $6" >> $OUTF
> echo `date` " STATUS: $5" >> $OUTF
> echo `date` " STREAM: $6" >> $OUTF
> echo `date` "-----------------------------" >> $OUTF
>
> /usr/openv/netbackup/bin/goodies/bperrcode $5 >> $OUTF
> #
> # might want to mail this info to someone
> #
> cat $OUTF | mailx -s "NetBackup backup exit $1" someone AT somewhere DOT com
>
>
>
>
>
>
> -----Original Message-----
> From: veritas-bu-admin AT mailman.eng.auburn DOT edu
> [mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of WEAVER,
> Simon
> Sent: 22 April 2002 10:22
> To: 'veritas-bu AT mailman.eng.auburn DOT edu'
> Subject: [Veritas-bu] Email people when a job completes or fails
>
>
> Hello everyone.
> I see within the Netbackup main window, that you can use an option to
> send
> Emails. How can I send an Email when a particular job finishes
> successfully
> or fails badly?
>
> Any ideas or helpful documents would be great!
>
> Thanks
>
> Simon Weaver
> NT Domain Administrator
> Ext. 5544
> Tel: 02392-705544 (Direct Dial)
> Simon.Weaver AT Astrium-Space DOT com
>
> ...
> This email is for the intended addressee only.
> If you have received it in error then you must not use, retain,
> disseminate
> or otherwise deal with it. Please notify the sender by return email.
> The views of the author may not necessarily constitute the views of
> Astrium
> Limited.
> Nothing in this email shall bind Astrium Limited in any contract or
> obligation.
> Astrium Limited
> Gunnels Wood Road
> Stevenage
> Hertfordshire
> SG1 2AS
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> ...
> This email is for the intended addressee only.
> If you have received it in error then you must not use, retain,
> disseminate
> or otherwise deal with it. Please notify the sender by return email.
> The views of the author may not necessarily constitute the views of
> Astrium
> Limited.
> Nothing in this email shall bind Astrium Limited in any contract or
> obligation.
> Astrium Limited
> Gunnels Wood Road
> Stevenage
> Hertfordshire
> SG1 2AS
>
> _______________________________________________
> 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
>
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] Email people when a job completes or fails, (continued)
- [Veritas-bu] Email people when a job completes or fails, Ang Chip Chiang NCS
- [Veritas-bu] Email people when a job completes or fails, WEAVER, Simon
- [Veritas-bu] Email people when a job completes or fails, WEAVER, Simon
- [Veritas-bu] Email people when a job completes or fails, Osiewicz Brett R
- [Veritas-bu] Email people when a job completes or fails, Donaldson, Mark
- [Veritas-bu] Email people when a job completes or fails, scott.kendall AT abbott DOT com
- [Veritas-bu] Email people when a job completes or fails,
Grønås Bengt <=
- [Veritas-bu] Email people when a job completes or fails, WEAVER, Simon
- [Veritas-bu] Email people when a job completes or fails, Donaldson, Mark
|
|
|