Top ten reasons why nbmail can fail:
- BLAT is commented out in the nbmail.cmd script — remove the ‘@rem’ from in front of the BLAT command.
- No email address configured or email address incorrectly configured on Universal Settings tab.
- The BLAT line in nbmail.cmd is not correctly configured; syntax has changed in the later versions — check the readme for your version of BLAT.
- BLAT is not on the path, and no path was specified in nbmail.cmd — place the blat.exe program in a directory on your path, or add the path before BLAT in the script.
- BLAT version is greater than 1.84, and no profile was created — see the BLAT readme for details on profiles.
- Mail account did not exist on email server — create the account.
- Mail server required authentication for Simple Mail Transfer Protocol (SMTP), and the account used for VERITAS NetBackup ™ client process is not authorized — change user account for NetBackup Client Service (default is local system, which may not have permission to send mail).
- BLAT sometimes needs the -ti <n> timeout parameter if there are delays in the system — <n> is in seconds.
- Command line extensions are not enabled — The registry key HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableExtensions should be set to 0×1.
- BLAT binary is corrupt or incompatible with email system — download a newer version.
如何查看 NetBackup 程序调用了 nbmail.cmd 呢?
答案是通过setting up the BPCD log。具体步骤如下:
- Select Client sends mail on Universal Settings tab (properties on the master server). The option Server sends mail does not log anything in the BPCD log, so even if you require this option, test it with the Client setting first.
- Make sure that an email address is configured on the Universal Settings tab.
- Make sure the call to BLAT is uncommented in the nbmail.cmd script.
- Make sure that a directory called BPCD exists in NetBackup\Logs on the master server.
- a. For NetBackup 3.4 only: Launch the NetBackup client, click Actions | Configure and go to the Troubleshooting tab. Enter 2 for General and 9 for Verbose.
b. For NetBackup 4.5 only – Launch the Backup, Archive and Restore program, click File | NetBackup Client Properties and go to the Troubleshooting tab. Enter 2 for General and 5 for Verbose. - Re-start the NetBackup Client Service to make sure these settings take effect.
- Run a backup of a directory on the master server.
- The BPCD log should contain something similar to the following:
07:34:04.128 [3864.4052] <2> bpcd main: BPCD_SEND_MAIL_RQST
07:34:04.128 [3864.4052] <2> bpcd main: mailaddr = joe.bloggs@veritas.com
07:34:04.128 [3864.4052] <2> bpcd main: subject = Backup on MYMASTER – 0 started
07:34:04.128 [3864.4052] <2> bpcd main: message = Backup on client MYMASTER by root succeeded.File list
———
C:\WINNT\system32\drivers\etc07:34:04.128 [3864.4052] <2> sendViaScript: attempting to send mail
07:34:04.198 [3864.4052] <2> bpcd main: BPCD_DISCONNECT_RQST
If you don’t see this in the log, then nbmail is not being called, and you have a configuration problem within NetBackup itself. If you see the entries in the log, but receive no email, then verify whether the email address is correct and valid. If the email address is correct, then the problem lies either with the nbmail.cmd script itself, or with BLAT.
Troubleshooting BLAT:
The later versions of BLAT (from version 1.82 onwards) use profiles. The idea is that you configure your user or server and any other settings for the mail system in a profile and then just specify this when you use the command. The following technote describes this: http://support.veritas.com/docs/244258
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 you created.
When testing BLAT, you need to remove the -q switch and pipe the output to a file; you could replace the above line 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 you test 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.
Possibly Related Posts: (Automatically Generated)
Tags: Blat, mail, NetBackup, troubleshooting