cancel
Showing results for 
Search instead for 
Did you mean: 

Email Notification

SOLVED
Go to solution
Slayer Slayer
Frequent Advisor

Email Notification

Hello All,

I would like to know how to receive the email notification when the backup is done or when it fails.
Can anyone give me any tip for that ?
I have the sendmail already setup.
TRU64 4.0G

Thanks in Advance.

Regards

Bruno
6 REPLIES
Matt Palmer_2
Respected Contributor
Solution

Re: Email Notification

if you are using the vdump command, you could redirect stderr out stdout to a logfile, and then use something like:

(cat stderrfile)|mailx -s 'backup report' user@domain.com.

HTH

regards

Matt
Slayer Slayer
Frequent Advisor

Re: Email Notification

Hey Matt Thanks for the response.

Yes i am using VDUMP ...
Can you tell me how to redirect stderr out stdout ?How do i do that ?

Thanks a lot my friend ..

Regards

Bruno
Matt Palmer_2
Respected Contributor

Re: Email Notification

Hi Bruno,

example:

/sbin/vdump -0 -C -F 16 -f ${NTAPE} / >> ${LOGFILE} 2>&1


the 2>&1 tells shell to redirect output to $LOGFILE

HTH

regards

Matt
Slayer Slayer
Frequent Advisor

Re: Email Notification

Thanks again Matt

So here is what i have with VDUMP -

/sbin/vdump -0uf /dev/nrmt0h /

So if i want it to be send to a log file i just put like this :

/sbin/vdump -0uf /dev/nrmt0h / >> ${LOGFILE} 2>&1

But i have 5 file systems to be backup so do i have to put >> ${LOGFILE} 2>&1 on every file system ?
Can I make only one log to all file systems ?

Thanks a lot

Regards

Bruno
Matt Palmer_2
Respected Contributor

Re: Email Notification

Hi if you have 5 filesystems, you can either specify 5 different definitions of ${LOGFILE}, i.e:${LOGFILE1} $LOGFILE2,etc

or you could tag each vdump line with an identifing label for each filesystem to make it unique in the list, and just pipe it all to one logfile, as the current command I sent you does. (The use of the double-chevron '>>' means 'append-to'.

regards

Matt
Ralf Puchner
Honored Contributor

Re: Email Notification

Bruno,

I see you have not really understood how the score system works ;-)

Please assign only 10 points for the answer who solved the problem not for each one...
Help() { FirstReadManual(urgently); Go_to_it;; }