01-26-2012 08:24 PM
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?
01-26-2012 09:11 PM
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
01-26-2012 09:21 PM
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.
01-26-2012 10:05 PM
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
)
01-26-2012 10:23 PM
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)
01-27-2012 01:43 AM
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
01-27-2012 02:04 AM
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.
01-27-2012 02:13 AM
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
01-27-2012 02:26 AM
mail_dr_info.cmd
Creating or deleting this script does not affect anything. Netbackup still doesn't send e-mails.
01-27-2012 02:44 AM
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 )
01-27-2012 02:53 AM
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?
01-27-2012 03:01 AM
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
01-27-2012 03:07 AM
Mark_Solutions,
It's not a problem to use "-t" instead of "-to", my version of blat works with both.
01-27-2012 03:19 AM
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
01-27-2012 03:40 AM
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?
01-27-2012 03:44 AM
Should log to the bpdbm log file - you may need to turn up the logging to get any sort of reason
01-27-2012 04:07 AM
Log level=5
Can't find anything about nbmail, mail_dr_info or blat in recent logs
01-27-2012 04:22 AM
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