Veritas-bu

[Veritas-bu] backup_exit_notify - Windows

2004-06-22 17:59:53
Subject: [Veritas-bu] backup_exit_notify - Windows
From: kris.williams AT hp DOT com (WILLIAMS, KRISTOPHER L)
Date: Tue, 22 Jun 2004 16:59:53 -0500
Sure


@echo off
echo %1 %2 %3 %4 %5 >>D:\nbulog.txt

exit



Thanks,


Kris 
 

-----Original Message-----
From: David Roman Esteban [mailto:droman AT plcendesa DOT com] 
Sent: Tuesday, June 22, 2004 5:36 PM
To: WILLIAMS, KRISTOPHER L
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] backup_exit_notify - Windows

Can you please paste the script?

Best regards
David Roman Esteban
droman AT plcendesa DOT com

WILLIAMS, KRISTOPHER L escribió:

>I'm also having a problem with backup_exit_notify, but on the windows
>platform. It appears that the script is not being started after a backup
>completes. The names and location of the file are correct,
>backup_exit_notify.cmd located in %installdir%\veritas\netbackup\bin.
>
>The script is not doing anything tough. It is just echoing out $1 thru
>$5 to a text file. Anyone have any ideas on this? Seems like Veritas
>support is stumped also.
>
>
>Thanks,
>
>Kris   
> 
>
>-----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 David
>Roman Esteban
>Sent: Tuesday, June 22, 2004 1:00 PM
>To: Jason Helfman; veritas-bu AT mailman.eng.auburn DOT edu
>Subject: RE: [Veritas-bu] backup_exit_notify
>
>Take out else condition
>
>
>if [ "$a" -eq 0 ] 
>then echo "hello"
> else
> fi
>bash: syntax error near unexpected token `fi'
>
>if [ "$a" -eq 0 ] 
>then echo "hello"
> fi
>hello
>
>Best regards
>David Roman Esteban
>droman AT plcendesa DOT com
>  
>
>Un saludo
>David Roman Esteban
>droman AT plcendesa DOT com
>  
>
>
>
>-----Mensaje original-----
>De: veritas-bu-admin AT mailman.eng.auburn DOT edu
>[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]En nombre de Jason
>Helfman
>Enviado el: martes, 22 de junio de 2004 18:07
>Para: veritas-bu AT mailman.eng.auburn DOT edu
>Asunto: [Veritas-bu] backup_exit_notify
>
>
>I've modified the end of backup_exit_notify to only notify me of status 
>other then zero, but I don't believe it is working. Can anyone see 
>anything with my modifications that would have the script not executing 
>correctly?
>
>As it is now, other then zero, I am not notified. Before sending this 
>email, I changed mailx to /bin/mailx.
>
>Would this change anything?
>
>#
># might want to mail this info to someone
>#
>
># NTFLOGS mail to blah AT blah DOT com
>if [ "$2" = "job" ]
>then
>         cat $OUTF |mailx -s "NetBackup exit of $5 for $2" blah AT blah DOT com
>fi
>
># All Jobs other then Status of Zero, send to unix team.
>if [ "$5" -ne 0 ]
>then
>      cat $OUTF | mailx -s "NetBackup exit of $5 for $2" me AT whatever DOT com
>else
>fi
>exit 0
>  
>



<Prev in Thread] Current Thread [Next in Thread>