cancel
Showing results for 
Search instead for 
Did you mean: 

how to extend the e-mail notification content

Dirty_Boy
Level 2

Goog day!

I have NetBackup 7 installed on win2k3 r2 x32 with configured e-mail notifications (blat+nbmail.cmd)

i`ve recive notifications like that:

___________________________________________

Backup on client srv for user admin by server netbackup was partially successful.

Policy = Srv_Policy
Schedule = Full

File list
---------
C:\Share

_____________________________________________

 

question: can i configure the extend informatoin in notification, for example: elapsed time, written size on tape etc

2 REPLIES 2

J_H_Is_gone
Level 6

You would have to add some NB commands into the notify script.

Have the output saved to a file

then email that file.

or

setup variables that = out put of commands and include those variables in the email.

 

Either way it comes down to scripting.  Where you would have to use what info it does supply to get the extra info you want.

Dirty_Boy
Level 2

J.Hinchcliffe,

can you give me some commands...or where i can see them

I`l found csv script at this link http://www.symantec.com/connect/forums/backupexitnotifycmd-script, but could not understand where can i put it

creates a csv log, sends email to admins with all pertinent info in subject line (great for pagers), includes a dummy msg file (some servers don't like an empty msg body)
Resetting the passed args is not necessary, just done to make clearer

snip~~

@set ADMINS=admin1@yourdomain.com,admin2@yourdomain.com,admin3@yourdomain.com
@set DT=%DATE%
@set TI=%TIME%
@set ST=%5%
@set CL=%1%
@set PL=%2%
@set SC=%3%
@set FAIL_TXT=failed.Code
@if %ST% GTR 1 goto BlatFail
@goto EndMain
:BlatFail
@echo %DT%,%TI%,%ST%,%CL%,%PL%,%SC%, , , , >> "\report\failure_log.txt"
@Blat "\msg.txt" -s "%CL% %FAIL_TXT% %ST% "-" %SC%" -t %ADMINS%

end snip~