cancel
Showing results for 
Search instead for 
Did you mean: 

automated mail notification

hi everyone,

I need to send automated mails on the backup status report, i am using netbackup 6.5 server and netbackup 6.6 client software i have MS-exchange in my envornment can any one suggest if it is possable or not, if yes, please tell me how or suggest me books.

1 Solution

Accepted Solutions
Accepted Solution!

Please see this post for all

Please see this post for all the options available.

 

https://www-secure.symantec.com/connect/forums/email-alerts-netbackup-65

View solution in original post

8 Replies
Accepted Solution!

Please see this post for all

Please see this post for all the options available.

 

https://www-secure.symantec.com/connect/forums/email-alerts-netbackup-65

View solution in original post

OS on Master server?

The setup of email notification in NBU Host Properties is standard across platforms, but config on the OS side side is different for Unix and Windows.

Please let us know which OS on your Master.

  Hope the below may help

 

Hope the below may help you.

Netbackup Admin Guide for windows-I (Release 7.0) Page # 136

 

Setting up email notifications about backups

Email notifications can be sent to the client's administrator or to the global
administrator, specifying that a backup was successful or unsuccessful.
The following represents the contents of a notification email:
Backup on client hostname by root was partially successful.
File list
---------
C:\Documents and Settings
Before notification emails about backups are sent, the computing environment
must be configured correctly.
NetBackup can send notification to specified email addresses about backups on
all client or specific clients.
Choose one or both of the following notification methods:
■ Send emails about failed backups only.
Send a message to the email address(es) of the NetBackup administrator(s)
about any backup that ends in a non-zero status. (Server sends mail host
property is enabled in Universal Settings.)
■ Send emails about successful and failed backups.
Send a message to the local administrator(s) of each client about successful
and unsuccessful backups. (Client sends mail host property is enabled in
Universal Settings.)
Both methods require that the nbmail.cmd script be configured.
Both methods require that the host properties be configured with email addresses:
■ See “Sending email notifications to the administrator about unsuccessful
backups” on page 138.
■ See “Sending messages to the global administrator about unsuccessful backups”
on page 139.
■ See “Sending messages to the administrator about successful and unsuccessful
backups” on page 139.
Windows systems require that an application to transfer messages using the
Simple Mail Transfer Protocol be installed to accept script parameters. UNIX
platforms have an SMTP transfer method built into the system.

 

 

Configuring the nbmail.cmd script

To receive email notifications about backups, the nbmail.com script must be
configured for Windows.
Locate install_path\VERITAS\NetBackup\bin\nbmail.cmd on a NetBackup
master server. If configuring the script on the client, copy nbmail.cmd from a
master server to the client. By default, nbmail.cmd does not send email.
The following options are used in the script:
-s The subject line of the email
-t Indicates who receives the email.
The originator of the email, though it is not necessarily known to the email
server. The default (-i NetBackup) shows that the email is from NetBackup.
-i
-server The name of the SMTP server that is configured to accept and relay emails.
-q Suppresses all output to the screen.
Use the following procedure to configure the nbmail.cmd script.
To configure the nbmail.cmd script
1 Use a text editor to open nbmail.cmd. Create a backup copy of nbmail.cmd
before modifying it.
In some text editors, using the word wrap option can create extra line feeds
in the script and render it non-functional.
2 Most of the lines are informational in nbmail.cmd.
Locate the following lines in the script:
@REM @IF "%~4"=="" (
@REM blat %3 -s %2 -t %1 -i NetBackup -server SERVER_1 -q
@REM ) ELSE (
@REM blat %3 -s %2 -t %1 -i NetBackup -server SERVER_1 -q -attach %4
@REM )
3 Adjust the fives lines as follows:
■ Remove@REMfrom each of the five lines to activate the necessary sections
for BLAT to run.
 
■ Replace SERVER_1 with the name of the email 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
)
4 Save nbmail.cmd.

Sending email notifications to the administrator about unsuccessful backups

Use the following procedure to send email notifications to a client's administrator
only if the backups have a non-zero status.
To send email notifications to the administrator for backups with a non-zero status
1 Install and configure a mail client on the server.
See “Installing the email utility” on page 140.
2 Edit the nbmail.cmd script on the server.
See “Configuring the nbmail.cmd script” on page 137.
3 Open the NetBackup Administration Console on the master server.
4 Expand NetBackup Management > Host Properties > Master Server.
5 Open the properties of the master server.
6 Select Universal Settings.
7 In the Client administrator’s email field, enter the email address of the
administrator to receive the notification emails. (Separate multiple addresses
with commas.)
See “Universal Settings properties” on page 185.
8 Enable the Server sends mail option and click Apply.
See “Sending messages to the global administrator about unsuccessful backups”
on page 139.
See “Sending messages to the administrator about successful and unsuccessful
backups” on page 139.
 

Sending messages to the global administrator about unsuccessful backups

Use the following procedure to send messages to the global administrator about
backups with a non-zero status.
To send messages to the global administrator about backups with a non-zero status
1 Install and configure a mail client on the server.
See “Installing the email utility” on page 140.
2 Edit the nbmail.cmd script on the server.
See “Configuring the nbmail.cmd script” on page 137.
3 Open the NetBackup Administration Console on the master server.
4 Expand NetBackup Management > Host Properties > Master Server.
5 Open the host properties of the master server.
6 Select Global Attributes.
7 In the Administrator’s email address field, enter the email address of the
administrator to receive the notification emails. (Separate multiple addresses
with commas.) Click Apply.
The global administrator’s email address can also be changed by using the
bpconfig command on the master server:
Install_Path\NetBackup\bin\admincmd\bpconfig -ma email_address
For example:
C:\Program Files\VERITAS\NetBackup\bin\admincmd\bpconfig
-ma name@company.com
See “Sending email notifications to the administrator about unsuccessful backups”
on page 138.
See “Sending messages to the administrator about successful and unsuccessful
backups” on page 139.

Sending messages to the administrator about successful and

unsuccessful backups

An alternative to sending all emails through the master server is to send emails
through each client. An email can be sent to each client's administrator after all
backups.
 
To send email notifications for all backups from a client
1 Install and configure a mail client on the client.
See “Installing the email utility” on page 140.
2 Edit the nbmail.cmd script on the client.
See “Configuring the nbmail.cmd script” on page 137.
3 Open the NetBackup Administration Console on the master server.
4 Expand NetBackup Management > Host Properties > Clients.
5 Open the host properties for a client. Multiple clients can also be selected.
6 Select Universal Settings.
7 In the Client administrator’s email field, enter the email address of the
administrator to receive the notification emails. (Separate multiple addresses
with commas.)
See “Universal Settings properties” on page 185.
8 Enable the Client sends mail option and click Apply.
See “Sending email notifications to the administrator about unsuccessful backups”
on page 138.
See “Sending messages to the global administrator about unsuccessful backups”
on page 139.

Installing the email utility

BLAT is the most common application is used for email notification. It is a mail
client in the public domain. BLAT is used as an example in the following
discussions.
Use the following procedure to install and configure the email utility.
To install and configure the email utility
1 Download the .ZIP file from the BLAT download page, currently: www.blat.net
2 Extract the files to a directory.
3 Copy the blat.exe file to the Windows System32 directory.
4 From a command prompt, run the following command:
blat -install emailserver.company.com useraccount@company.com
Where:
emailserver.company.com is the hostname or IP address of the email server
that sends the email notifications.
useraccount@company.com is the primary account to send the emails from
the specified server.
Use the following procedure to test the email utility.
To test the email utility
1 Create a test text file that contains a message. For example, create
C:\testfile.txt
2 From a command prompt, run:
blat C:\testfile.txt -s test_subject -to useraccount@company.com
A correct setup sends the contents of testfile.txt to the email address
specified.
3 Use the following list to troubleshoot problems if NetBackup notification
does not work correctly:
■ Make sure that the BLAT command is not commented out in the
nbmail.cmd script.
See “Installing the email utility” on page 140.
■ Make sure that the path to blat.exe is specified in nbmail.cmd if the
command is not in the \system32 directory.
■ Make sure that BLAT syntax has not changed in the later versions of BLAT.
Check the README for the version of BLAT running on the system.
■ The BLAT command may need the -ti n timeout parameter if the system
experiences delays. (n represents seconds.)
■ The BLAT binary must not be corrupt or incompatible with the email
system. Download the latest version.
■ Configure the email addresses correctly in the host properties.
■ The email account that is specified must be a valid on the email server.
■ If the email server requires authentication for SMTP, make sure that the
account that is used for the NetBackup client process is authorized. The
default account is the local system.

Little more info

Are you wanting an email on each backup.

Or do you just want one report sent in the morning of the status of last nights backups?

I would take a look at this

I would take a look at this link as well.  Helps to understand the gloabal/universal/server/client settings.

 http://www.symantec.com/business/support/index?page=content&id=TECH64984 

thanks all of you. i got too

thanks all of you. i got too much of info.

1)server sends mail 2) client

1)server sends mail

2) client sends mail

either server will send or client sends mail or both?

 

3) successful backups

4) unsuccessful backups

How can i configur this options?
 

where i will mention the from-address of the mail?

  Extract from the below

where i will mention the from-address of the mail?Extract from the below link

 
 
 
 
II. Configuring the nbmail.cmd script
 
(
Additionally, it is good practice to replace any instances of "NetBackup" with a valid email address for 4.x, 5.x, or 6.x, for example:
blat %3 -s %2 -t %1 -i admin@acme.com -server emailserver.company.com -q
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.   )