How to configure email notification for NetBackup for Window
How to configure email notification for backups using the nbmail.cmd script.
http://support.veritas.com/docs/237830
Details:
There are two ways to receive email notifications from NetBackup via SMTP. Both of which involve the NBMAIL.cmd script. Configuration of the NBMAIL.cmd script will be shown below.
The first way, is to specify one email address that receives emails for all errors that occur within the NetBackup environment as a whole. This means that any failure on any machine would be reported through this mechanism. To configure this method, the NetBackup Global Administrator's email address needs to be defined. To accomplish this, issue the following command via the Command Line Interface on the Master Server:
\NetBackup\Bin\Admincmd\bpconfig -ma
Example:
C:\VERITAS\NetBackup\Bin\Admincmd\bpconfig -ma john.doe@veritas.com
This would place the email address within the configuration database that is stored on the master server. Now any time that a NetBackup job FAILS, NetBackup will send an email with information about the failure to the email address held within the configuration database. This is done for ANY failed job.
The second way for email notification to be sent, is to send the email to anyone that is the local "administrator" of each client. Each client can be configured to send email to a different email address or each client can be configured to send mail to the same email address. It is fairly flexible. To configure this method, the NetBackup Machine Administrator's email address needs to be configured on each client. To accomplish this, open regedt32 on each client. Navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config
Next, look for an value called USEMAIL. If it exists then it will need to be edited, if it does not exist, then it will simply need to be added. The key that is used is called USEMAIL and its value will need to be the email address that email will be sent to regarding just this client's activities. Once this entry is in place, then NetBackup will send emails to this email address when a NetBackup job fails OR succeeds.
Both of the methods described above will work independently of each other. So if both were configured, the NetBackup Global Administrator would get emails about any failures and the NetBackup Machine Administrator of each client would get emails about the success or failures of just the machine that they were configured on.
Both methods require that an email script be used. the script is called NBMAIL.cmd and it is placed within the \NetBackup\Bin directory by default. This script will exist on each machine in the NetBackup environment, including the master server, media servers, and clients. Both methods described above rely on this script to be properly configured in order to send emails successfully.
By default, all emails will be sent, regardless of the two methods mentioned above, via the NBMAIL.cmd script on the master server. That is the most commonly used method for delivering email about NetBackup activities. The NBMail script is only able to call another application with parameters, the most common application that is used is called BLAT. BLAT and is a public domain SMTP mail client. Meaning that it allows the user to send emails directly from the command line or through scripts. In most cases, any command line email application will work. BLAT is a Freely available utility which can be downloaded from:
http://gepasi.dbs.aber.ac.uk/softw/blat.html
Once BLAT has been downloaded and installed correctly, it can be configured to be used within the NBMail.cmd script.
Below are the details of how to ensure that the script is properly configured.
Within the NBMAIL.cmd script, look for a line that looks like this:
@rem @blat %3 -s %2 -t %1 -i NetBackup -server WARTHOG -q
Remove the "@rem" piece from the front of this line to "un-comment" the line.
The -i option designates the originator's address, this needs to be changed, or omitted altogether (the default is the sender's address specified when BLAT was installed).
The -server option is given as an example, this needs to be the correct name of the SMTP server that will be used to send email through. This option may also be omitted (the default is the server specified when installing BLAT).
Once the NBMAIL.cmd scripts has been edited on the master server, emails that are configured to be sent, as described in the two methods above, should use this script to send emails to the SMTP server that was specified, via BLAT.
There is one other alternative to having all of the emails be sent through the script on the Master Server. This option will allow emails to use the scripts that reside on each client. It will also require that the clients that are set up in this way, also have a properly configured NBMAIL.cmd script within their NetBackup\Bin directory. This change is only available to the second method that was described above. It would allow each NetBackup Machine Administrator to configure their own email address to be sent emails about successful and failed jobs. It would also allow them to each configure their own NBMAIL.cmd script to run on the local client.
To configure this method another registry entry would be necessary on any client that needs to have emails setup this way. To accomplish this, open regedt32 on each client. Navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config
Next, look for a value called SERVER_SENDS_MAIL. If it exists, it will need to be edited, if it does not exist, it will simply need to be added. The key that is used is called SERVER_SENDS_MAIL and its value will need to be a value of YES or a value of NO. If the "SERVER_SENDS_MAIL" value of "NO" was selected, the email will be sent using the local NBMAIL.cmd script and will need to be configured appropriately. If the "SERVER_SENDS_MAIL" value of "YES" was selected, the email information will flow to the server as it is done by default.
Source: http://aka-community.symantec.com/conne ... 60-windows
http://support.veritas.com/docs/237830
Details:
There are two ways to receive email notifications from NetBackup via SMTP. Both of which involve the NBMAIL.cmd script. Configuration of the NBMAIL.cmd script will be shown below.
The first way, is to specify one email address that receives emails for all errors that occur within the NetBackup environment as a whole. This means that any failure on any machine would be reported through this mechanism. To configure this method, the NetBackup Global Administrator's email address needs to be defined. To accomplish this, issue the following command via the Command Line Interface on the Master Server:
\NetBackup\Bin\Admincmd\bpconfig -ma
Example:
C:\VERITAS\NetBackup\Bin\Admincmd\bpconfig -ma john.doe@veritas.com
This would place the email address within the configuration database that is stored on the master server. Now any time that a NetBackup job FAILS, NetBackup will send an email with information about the failure to the email address held within the configuration database. This is done for ANY failed job.
The second way for email notification to be sent, is to send the email to anyone that is the local "administrator" of each client. Each client can be configured to send email to a different email address or each client can be configured to send mail to the same email address. It is fairly flexible. To configure this method, the NetBackup Machine Administrator's email address needs to be configured on each client. To accomplish this, open regedt32 on each client. Navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config
Next, look for an value called USEMAIL. If it exists then it will need to be edited, if it does not exist, then it will simply need to be added. The key that is used is called USEMAIL and its value will need to be the email address that email will be sent to regarding just this client's activities. Once this entry is in place, then NetBackup will send emails to this email address when a NetBackup job fails OR succeeds.
Both of the methods described above will work independently of each other. So if both were configured, the NetBackup Global Administrator would get emails about any failures and the NetBackup Machine Administrator of each client would get emails about the success or failures of just the machine that they were configured on.
Both methods require that an email script be used. the script is called NBMAIL.cmd and it is placed within the \NetBackup\Bin directory by default. This script will exist on each machine in the NetBackup environment, including the master server, media servers, and clients. Both methods described above rely on this script to be properly configured in order to send emails successfully.
By default, all emails will be sent, regardless of the two methods mentioned above, via the NBMAIL.cmd script on the master server. That is the most commonly used method for delivering email about NetBackup activities. The NBMail script is only able to call another application with parameters, the most common application that is used is called BLAT. BLAT and is a public domain SMTP mail client. Meaning that it allows the user to send emails directly from the command line or through scripts. In most cases, any command line email application will work. BLAT is a Freely available utility which can be downloaded from:
http://gepasi.dbs.aber.ac.uk/softw/blat.html
Once BLAT has been downloaded and installed correctly, it can be configured to be used within the NBMail.cmd script.
Below are the details of how to ensure that the script is properly configured.
Within the NBMAIL.cmd script, look for a line that looks like this:
@rem @blat %3 -s %2 -t %1 -i NetBackup -server WARTHOG -q
Remove the "@rem" piece from the front of this line to "un-comment" the line.
The -i option designates the originator's address, this needs to be changed, or omitted altogether (the default is the sender's address specified when BLAT was installed).
The -server option is given as an example, this needs to be the correct name of the SMTP server that will be used to send email through. This option may also be omitted (the default is the server specified when installing BLAT).
Once the NBMAIL.cmd scripts has been edited on the master server, emails that are configured to be sent, as described in the two methods above, should use this script to send emails to the SMTP server that was specified, via BLAT.
There is one other alternative to having all of the emails be sent through the script on the Master Server. This option will allow emails to use the scripts that reside on each client. It will also require that the clients that are set up in this way, also have a properly configured NBMAIL.cmd script within their NetBackup\Bin directory. This change is only available to the second method that was described above. It would allow each NetBackup Machine Administrator to configure their own email address to be sent emails about successful and failed jobs. It would also allow them to each configure their own NBMAIL.cmd script to run on the local client.
To configure this method another registry entry would be necessary on any client that needs to have emails setup this way. To accomplish this, open regedt32 on each client. Navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config
Next, look for a value called SERVER_SENDS_MAIL. If it exists, it will need to be edited, if it does not exist, it will simply need to be added. The key that is used is called SERVER_SENDS_MAIL and its value will need to be a value of YES or a value of NO. If the "SERVER_SENDS_MAIL" value of "NO" was selected, the email will be sent using the local NBMAIL.cmd script and will need to be configured appropriately. If the "SERVER_SENDS_MAIL" value of "YES" was selected, the email information will flow to the server as it is done by default.
Source: http://aka-community.symantec.com/conne ... 60-windows
Comments