Here are the bulk of tasks you need to follow for the windows environment to get email working. I have separated into two parts.
Part I.
Configuring/Installing BLAT:
1. Download the .ZIP file from the download page specified above
2. Extract the files to their own folder.
Note: Most of the files in this .ZIP file are informational and is source code for developmental purposes.
3. Copy the blat.exe file to the \WINNT\System32 directory in Windows
4. From a command prompt, run the following command (Note: This will be the primary account that will
send the emails from the specified server):
blat -install
Note: "" is the hostname or IP address of the email server that will send the email
notifications.
"" is the account that will be the primary sender of the email notifications.
Example:
blat -install emailserver.company.com useraccount@company.com
Configuring nbmail.cmd
1. Open nbmail.cmd using notepad.exe or some other text editor. It can be found on a NetBackup
Server/Client install for Windows at %install_path%\VERITAS\NetBackup\bin.
2. Most of the lines in the nbmail.cmd file are informational. The following line is what needs to be adjusted
slightly:
@rem @blat %3 -s %2 -t %1 -i NetBackup -server WARTHOG -q
3. Remove "@rem" from the line, making "@blat" the beginning of the line
4. Replace "WARTHOG" with the name of the email server. An example of how this line should now appear
is:
@blat %3 -s %2 -t %1 -i NetBackup -server emailserver.company.com -q
5. Save the nbmail.cmd file
Configure NetBackup to use email notification:
1. Open the NetBackup Administration Console
2. Open the Host Properties for the master server, go to the Universal Settings tab
3. Under the Administrator section of this page, select "Server sends mail" and enter the email address
for the NetBackup administrator in the field called E-mail address for the administrator of this
NetBackup Client:
NetBackup should send some email at this point. To get more information sent to the administrator
consistently, configuring some of the .cmd files in the %install_path%\VERITAS\NetBackup\bin directory
would result in more consistent information for the administrator.
Part II.
Assumption: The file nbmail.cmd has been configured and BLAT is running on the server.
NetBackup comes packaged with a number of script files that provide information on the different stages of backup jobs and other aspects of its functionality. The bulk of the .cmd script files can be found on the NetBackup master server in the %install_path%\VERITAS\NetBackup\bin directory.
Additional .cmd files can be found in the %install_path%\VERITAS\NetBackup\bin\goodies directory. For these files to work, they must reside in the %install_path%\VERITAS\NetBackup\bin directory. For the files in the \goodies directory, the original files should be copied to the \bin directory.
All of these files have one thing in common, a line that calls on the nbmail.cmd file and the phrase "someone_who_cares" in the line. The following is an example of how one of these files can be activated by making a modification to a single line.
Configuring backup_exit_notify.cmd:
The purpose of the backup_exit_notify.cmd file is the following:
(Note: This information is from the script. These files will have information to the intended purpose):
"This script is called by the NetBackup scheduler, after an individual client backup has completed (including media closure and image db validation."
To activate the script:
1. Open backup_exit_notify.cmd with a text editor
2. Find the following line in the script:
@REM - @call %NB_MAIL_SCRIPT% someone_who_cares "NetBackup backup exit" %OUTF%
3. Make the following changes to this line only:
(Note: The only change is removing the @REM at the beginning of the line and replacing "someone_who_cares" with the email address of the administrator):
@call %NB_MAIL_SCRIPT% user_account@company.com "NetBackup backup exit" %OUTF%
4. Save the file
When a backup job runs and completes, an email will be received by the configured email account.