08-13-2015 09:54 AM
Hy all,
I´m having problem with configuration of blat to send email notification, in command line it running ok, but policies job does not sending message.
Anybody help me?
Thanks.
Solved! Go to Solution.
08-14-2015 11:01 AM
Hi,
You should really review the entire note that I posted, it has got the answers to all your questions.
If you put it on the master it only send for failed jobs, it you put it on clients it sends for all jobs.
If this does not meet your requirment I would suggest installing opscenter and using the alerts are report from it to send the notifications.
From the note,.......
08-13-2015 10:30 AM
Hello, how are you!
verify that followed all the steps as link,
ttps://support.symantec.com/en_US/article.TECH24110.html
Hug
Everton
08-13-2015 10:36 AM
Thanks Everton,
I already check this, many times, and reconfigured it, but no success, in command line it running ok, but at the end of job nothing happend in email...
The email address in global attributes of master server it´s ok, too.
08-13-2015 11:08 AM
I've had the same trouble due to the way our scheduler processes scripts (it doesn't honor the PATH variable for one thing). What I finally ended up doing is installing BLAT in the normal places and also a copy in a directory near the scripts directory. Then I hardcoded the path to that copy in the script and it all worked. The normaly installed copy is there to handle changes (from the command line) of the parms stored in the registry and that's about it.
Doing this way also gets around the "Windows is hiding that 32 bit functionality in favor of 64 bit" problems also...
08-13-2015 11:08 AM
Can you run nbmail.cmd and pass it %1 %2 %3 etc and it works? Or are you referring to blat working from cli?
08-13-2015 11:09 AM
You are using the Server send e-mail or client sends mail, try switching to test.
08-13-2015 12:18 PM
I was refering to blat cli.
08-13-2015 12:19 PM
Nothing happen with server/client change... I´m using server send email.
08-13-2015 10:05 PM
Blat working doesn't mean nbmail.cmd is working.
Configuring
https://support.symantec.com/en_US/article.TECH24110.html
Troubleshooting.
https://support.symantec.com/en_US/article.TECH24513.html
Troubleshooting blat:
The later versions of blat (from version 1.82 onwards) use "profiles". The idea is that a user or server and other settings for the mail system are configured in a profile. Then, this is specified when using the command. Refer to TechNote 244258, found below, in the Related Documents section.
So an appropriate change in nbmail.cmd would be to change the blat line as follows:
@blat %3 -s %2 -t %1 -p NetBackup -q
where NetBackup is a profile created in Blat.
When testing blat, remove the -q switch and pipe the output to a file; the above line can be replaced with:
@echo:Testing %1 ,%2 ,%3 >>C:\Testing.txt
<blat> %3 -s %2 -t %1 -p NetBackup>>c:\Testing.txt *** Note the emission of -q switch ***
When testing nbmail.cmd from the command line, it is helpful to use the same account that NetBackup client service is using. This will help highlight any account permission issues that may stop the process from working.
08-13-2015 11:46 PM
Kindly perform below steps properly in nbmail.cmd file under netbackup\bin\ directory:-
Replace "WARTHOG" with the name of the email server. An example of how this line should now appear is (please note the change of parameters for newer versions of BLAT):
Example on NetBackup 6.x and 7.x systems:
This email address will appear in the "From:" field in the email. The reason for this is that some email servers may not process the mail if it is from "NetBackup" as opposed to a valid email address.
Note:- kindly check have edited entries which are at bottom of the file and also take care that nothing else should be changed in script.
Once this is done kindly follow below technote:-
http://www.symantec.com/docs/TECH64984
08-14-2015 06:50 AM
Riaan, I´d really thank you for your post, but I think I did it some times, but in some detail I´m losing me.
Could you check my attached nbmail and job_details to help me?
Thanks...
08-14-2015 07:03 AM
As you said from the command line runs the tests, it appears that lack the configuration Netbackup, see this link if it helps.
https://support.symantec.com/en_US/article.TECH64984.html
08-14-2015 07:08 AM
Oi,
You need to edit the nbmail.cmd so that its looks like this
)
NOT
@IF "%~4"=="" ( @blat %3 -s %2 -t %1 -i BackupAdministrator@unileaf.local -server smtpserver.unileaf.com.br -q @) ELSE ( @blat %3 -s %2 -t %1 -i BackupAdministrator@unileaf.local -server smtpserver.unileaf.com.br -q -attach %4 @)
Remove the extra @
08-14-2015 10:49 AM
Hi Riaan, it´s running now, but only for failed jobs, my success jobs doesn´t sending email.
I put email address in Global Attributes on master server too and client, but nothig email from success jobs.
I need to put nbmail in client too?
Thanks.
08-14-2015 11:01 AM
Hi,
You should really review the entire note that I posted, it has got the answers to all your questions.
If you put it on the master it only send for failed jobs, it you put it on clients it sends for all jobs.
If this does not meet your requirment I would suggest installing opscenter and using the alerts are report from it to send the notifications.
From the note,.......
08-14-2015 12:21 PM
Thanks you Riaan, and all other guys for your comments...
Best regards...