cancel
Showing results for 
Search instead for 
Did you mean: 

Netbackup 7.1 and Win2008 x64: Problem with e-mail notify

Viktor79
Level 3

Hi, All!
We deployed a new Netbackup 7.1 server on Win2008 R2 x64
It works, but nbmail.cmd script doesn't work.
Sniffer does not detect any packets to the e-mail server.
Previously, at win2003 x86 the same settings worked well
Any ideas how to debug this problem?

17 REPLIES 17

Marianne
Level 6
Partner    VIP    Accredited Certified

Two fellow forum members managed to get it working:

https://www-secure.symantec.com/connect/forums/blat-and-nbmailcmd-nbu-7-win-2008r2

https://www-secure.symantec.com/connect/forums/netbackup-71-email-notifications-not-working-windows-nbu-servers

Yasuhisa_Ishika
Level 6
Partner Accredited Certified

Have you installed command line SMTP tool like BLAT?
Have you modified nbmail.cmd? Command line arguments of BLAT had been modified, and sample nbmail.cmd can not work now with BLAT v2.

Viktor79
Level 3

Have you installed command line SMTP tool like BLAT?

Yes, the latest version in system32 and by command
blat -install smtp.ip.add.res sendr@email.address
and there is a records in registry

Have you modified nbmail.cmd?

@IF "%~4"=="" (
blat %3 -subject %2 -to %1 -server smtp.ip.add.res -q
) ELSE (
blat %3 -subject %2 -to %1 -server smtp.ip.add.res -attach %4
)

Viktor79
Level 3

Also I have tried this command

blat <somefile> -to myemail@domain.com

and it works fine

But netbackup doesn't send e-mails after catalog backup (sniffer doesn't detect even attempts to send e-mail)

mph999
Level 6
Employee Accredited

What anti-virus are you running ...

In fact, it doesn't matter - disable it (make sure it is completely off) and see if you still have the issue.

I have seen 'various' AV packages cause exactly this issue.

Martin

Viktor79
Level 3

Yes, e-mail agents in some AV-software can block smtp traffic, but, as I wrote in previous post, blat script works fine. Also, the same AV software on the neighbor Netbackup server does not affect smtp traffic. So, I think the reason is not AV soft.

Mark_Solutions
Level 6
Partner Accredited Certified

Viktor79 ...

If it exists the Catalog Backup uses the mail_dr_info.cmd file to send its e-mail

Make a copy of the nbmail.cmd file that you have and have edited, rename it to mail_dr_info.cmd and make sure that it is in the \netbackup\bin\ directory

Try it again and see how it goes

Viktor79
Level 3

mail_dr_info.cmd

Creating or deleting this script does not affect anything. Netbackup still doesn't send e-mails.

Mark_Solutions
Level 6
Partner Accredited Certified

OK - just in case it is the variables lines causing the issue please re-edit your lines in the mail_dr_info.cmd file so that it reads as follows - this is usually all that it needs:

@REM @IF "%~4"=="" (

@REM blat %3 -s %2 -t %1 -i NetBackup -server WARTHOG -q
@REM ) ELSE (
blat %3 -s %2 -t %1 -i NetBackup -server smtp.ip.add.res -q -attach %4
@REM )

Viktor79
Level 3

blat %3 -s %2 -t %1 -i NetBackup -server smtp.ip.add.res -q -attach %4

Still not working :(

May be there is a log file where I can find some information about running the notification script?

Mark_Solutions
Level 6
Partner Accredited Certified

Just spotted a difference here - sorry my mistake as it is all down to different versions of blat - some use -t, some use -to.

From your manual test it looks like your version uses -to so please re-edit the nbmail_dr_info.cmd file and try again

Viktor79
Level 3

Mark_Solutions,

It's not a problem to use "-t" instead of "-to", my version of blat works with both.

Mark_Solutions
Level 6
Partner Accredited Certified

Just want to check the obvious then - have you checked the box to send the DR file as an attachment and specified an e-mail address in the catalog backup policy Disaster Recovery tab?

#edit# also UAC and Firewall disabled on the new server

Viktor79
Level 3

have you checked the box to send the DR file as an attachment and specified an e-mail address in the catalog backup policy Disaster Recovery tab?

Yes.

also UAC and Firewall disabled on the new server

Without improvements.

 

May be there is a log file where I can find some information about running the notification script?

Mark_Solutions
Level 6
Partner Accredited Certified

Should log to the bpdbm log file - you may need to turn up the logging to get any sort of reason

Viktor79
Level 3

Log level=5

Can't find anything about nbmail, mail_dr_info or blat in recent logs

Mark_Solutions
Level 6
Partner Accredited Certified

OK - try the bpbkar log then.

Could you attach the following please as text files:

1. The full text contained in your \netbackup\bin\mail_dr_info.cmd file

2. The output of bppllist CatalogBackup -U (using the name of your catalog backup)

3. The contents of the registry section under HKEY_LOCAL_MACHINE\SOFTWARE\Public Domain\Blat

Thanks