Configure the nbmail.cmd script on the Windows hosts
For Windows hosts to send and receive email notifications about backups, the nbmail.cmd script must be configured on the applicable hosts.
To configure the nbmail.cmd script on the Windows hosts
- Create a backup copy of nbmail.cmd.
- On the primary server, locate the following script:
install_path\NetBackup\bin\goodies\nbmail.cmd
- Copy the script to the following directory on the applicable hosts:
install_path\NetBackup\bin\
Primary and media server
NetBackup sends notifications from the server if you configure the following setting:
The Administrator's email address in Global Attributes.
The Server sends email option in the Universal Settings.
Client.
NetBackup sends notifications from the client if you configure the following setting:
The Client sends email option in the Universal Settings.
- Use a text editor to open nbmail.cmd.
The following options are used in the script:
-s
The subject line of the email
-t
Indicates who receives the email.
-i
The originator of the email, though it is not necessarily known to the mail server. The default (-i Netbackup) shows that the email is from NetBackup.
-server
The name of the SMTP server that is configured to accept and relay emails.
-q
Suppresses all output to the screen.
- Adjust the lines as follows:
Remove @REM from each of the five lines to activate the necessary sections for BLAT to run.
Replace SERVER_1 with the name of the mail server. For example:
@IF "%~4"=="" ( blat %3 -s %2 -t %1 -i Netbackup -server emailserver.company.com -q ) ELSE ( blat %3 -s %2 -t %1 -i Netbackup -server emailserver.company.com -q -attach %4 )
- Save nbmail.cmd.