Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-Mail Notification 3

Status
Not open for further replies.

cfowler

MIS
Oct 25, 2000
82
CA
Hey all,

Anyone using e-mail notification for the save set completion messages? I have attempted to place my e-mail address into the required field, Owner Notification and I am not receiving the e-mails I should be. I think perhaps that I am missing something here. Can anyone help me out with this?

Thanks in advance,

CF
 
I use email on Legato/Solaris. The following is the notificatiion set up which will mail the bootstrap info.

/usr/ucb/mail -s "SAPPRDA's bootstrap" vicmcdon@mercury.co.nz

 
It depends on which server your networker server is on and what mail system you are using.
I have networker on a Sun, but use lotus notes on NT. I have to direct my email notification to our SMTP server for it to get into loutus notes.

Mike davison
mike.davison@avon.com
 
Hi,

I have Legato on a solaris box 2.6 and I added my email address in the aliases file. This allows me to get my completion notices via MS Exchange server.

/etc/mail/aliases
 
For Nt, go and down load BLAT (it is free).
Configure it to use SMTP. Check out Legato Tech Bulletin #287:

Here it is:

LEGATO TECHNICAL BULLETIN
287: Setting Up Email Notifications on NetWorker Servers (NT)

--------------------------------------------------------------------------------

PURPOSE
This technical bulletin tells you how to configure NetWorker servers for Windows NT, release 4.2 and later, to use various methods for sending email notifications.

DESCRIPTION
NetWorker for Windows NT can use email to send automatic notifications to the administrator at certain points in the backup and recover processes. You can configure your NetWorker server to work with the following mail programs:



Microsoft Mail (built into Windows NT)

Microsoft Exchange

SMTP
NetWorker can be configured to use third party SMTP email programs that can be run from the command line and accept input from STDIN. An example of an SMTP program is a public domain program called Blat, which is currently available from the following web site: The Solution section gives instructions for configuring NetWorker to use these mail programs.


SOLUTION
To configure NetWorker for Windows NT to send email notifications:



1. For NetWorker for Windows NT release 4.3 and later, copy nsrmail from the support directory on the NetWorker for Windows NT CD to the \win32app\nsr\bin directory on the NetWorker server.
Note: Legato Technical Support does not support nsrmail in NetWorker for Windows NT release 4.3 and later.
For NetWorker for Windows NT release 4.2 and 4.21, nsrmail is installed automatically with the product.




2. Install and configure the mail software on the NetWorker server.
Microsoft Exchange: Install and configure the Exchange client software on the NetWorker server. It must connect to an existing Exchange Server.
SMTP: Install and configure the Blat software into the \win32app\nsr\bin directory on the NetWorker server. It must connect to an existing SMTP server.

Note: You can install the email server software (Microsoft Exchange Server or SMTP server) on the same machine as the NetWorker server. If you have the NetWorker server and the mail server software on the same machine, be aware that NetWorker uses most of the machine's resources and may cause performance issues with your mail server software.




3. Make sure the email software works properly. Test both sending and receiving for the user ID that will receive notifications from NetWorker.


4. Test NetWorker's ability to send email. a. Create a text file for NetWorker to send. This example uses \win32app\nsr\bin\test.txt, which contains the line "This is a test file."
b. At the command prompt, change to the \win32app\nsr\bin directory.

c. At the command prompt, enter the command for your mail program, for example:

Microsoft Mail or Microsoft Exchange:

nsrmail -u originator_ID -p originator_password -s &quot;Test message&quot; recipient_ID < test.txt

Where:

originator_ID is the user ID sending the email. This should be the same user ID that the email program asks you for when you start the program.

originator_password is the password of the Microsoft Mail user.

recipient_ID is the user ID of the recipient of the email.

SMTP:

blat test.txt -s &quot;Test message&quot; -t recipient_ID

Where:

recipient_ID is the name of the user that mail will be sent to.




4. Verify that the mail was sent. If it was not, check the following:
Microsoft Mail or Microsoft Exchange:



In the NetWorker Administrator program, select Setup from the Clients menu, then select the NetWorker server machine from the list of clients. The Remote User and Password fields should be blank.

Make sure that you use the same originator_ID and originator_password as you use to log in to the email program.

If nsrmail appears to hang, make sure you are redirecting a text file to nsrmail with the &quot;<&quot;sign, for example:
nsrmail -s &quot;Test Message&quot; Administrator < test.txt


Press CNTL-C to get out of mail or CNTL-Z to have mail send any text you have typed in.



Make sure that the recipient_ID is a valid address and that you are checking the right mailbox.
SMTP:



Make sure that the recipient_ID is a valid address and that you are checking the right mailbox.

Consult the documentation that comes with Blat for other solutions.
Note: If email cannot be sent at this point, Legato Technical Support cannot troubleshoot the problem. The problem lies with the Blat software and not with NetWorker. Legato Technical support will direct you to contact the makers of Blat if you are having problems at this point.



5. Microsoft Mail or Microsoft Exchange only: After you know nsrmail runs from the command prompt, edit the client resource for the NetWorker server to add the user ID and password for your mail program. a. In the NetWorker Administrator program, select Client Setup from the Clients menu, then select the NetWorker server machine from the list of clients.
b. Change the Remote User field to the user ID for your mail program and change the Password field to the password for your mail program.

c. Test to make sure you specified the correct username and password by running the following command:


nsrmail -s &quot;Test message&quot; recipient_ID < test.txt


d. Verify that the mail was sent. If it was not, repeat the checks listed in step 4.



6. Change the notifications so that they send email. In the NetWorker Administrator program, select the notification you want to automate from the Notifications menu. In the action field, enter the appropriate command for your mail program.
Note: For NetWorker for Windows NT release 4.3 and later, you must create a custom notification that uses nsrmail. You cannot modify any of the existing notifications to use nsrmail.
Microsoft Mail or Microsoft Exchange:


nsrmail -s &quot;subject&quot; recipient_ID


Where:
subject is the subject line you would like the email to have, for example, &quot;puma.legato.com's savegroup completion email&quot;.

If you want multiple users to receive the email, you must specify each address separated by a space, for example:

nsrmail -s &quot;puma.legato.com's savegroup completion&quot; recipient_ID1 recipient_ID2 recipient_ID3

SMTP:


blat - -s &quot;subject&quot; -t recipient_ID


Note: The extra &quot;-&quot; is not a typo and is very important for making Blat work with NetWorker. Consult the Blat documentation for more information on this option.
Where:

subject is the subject line you would like the email to have, for example, &quot;puma.legato.com's savegroup completion email&quot;.

If you want multiple users to receive the email, you must specify each name separated by a space, for example:


blat - -s &quot;puma.legato.com's savegroup completion.&quot; -t recipient_ID1
recipient_ID2 recipient_ID3


Nsrmail Limitations
Microsoft Mail or Microsoft Exchange: Due to problems with Microsoft's mail engine, nsrmail cannot send mail while the machine is logged out or when the screen saver is running. Please contact Microsoft if you have any questions about this limitation.
Blat (SMTP) is able to send mail when the machine is logged out or when the screen saver is running.

NetWorker for Windows NT, version 4.3 and later: All default notifications (those predefined and shipped with NetWorker) use nsrlog. If you try to set a default notification to use nsrmail, NetWorker will change the notification back to nsrlog whenever the server is started. To use nsrmail in a notification, you must create a custom notification.

Users who upgrade pre-4.3 servers to 4.3 (or later) will have their nsrmail notifications modified to use nsrlog.

Legato Technical Support does not support nsrmail in NetWorker for Windows NT release 4.3 and later.


Owner Notification
NetWorker can send email to different users or groups regarding the status of an individual machine. For example, if you have 10 servers, and each server is managed by a different person, administrators should receive email regarding the status of the backup of their servers, but not the status of other administrators' servers.
To set up owner notification, start the NetWorker Administrator program with the -x option:


\win32app\nsr\bin\winadmin -s server_name -x


server_name is the name of the NetWorker server.
Select Client Setup from the Clients menu. In the Owner Notification field, enter your nsrmail or blat command to send a user the savegroup completion information about the selected client.
 
e-mail notification:

(1) Blat -install mail.server.com sender@server.com 2 25
(2). If typed correctly you will get a response like this

SMTP server set to mail.server.com on port 25 with user sender@server.com ,
retry 2 time(s)

(3). After installation is complete you can test you install by typing the
following command

blat &quot;-&quot; -s testsubject -t recipient@server.com

This will then return you to a blank line with a flashing curser.
Type some text such as &quot;test&quot; and hit the return key.
On the next line hold the ctlr key and push z. (^Z)
You should receive a response such as this
Sending C:\Documents and Settings\sender\Local Settings\Temp\blt40.tmp to
receiver@server.com
Subject:fromblat
Login name is jharding@legato.com
Try number 1 of 2.
Then you will be returned to a regular command prompt
You installation and testing is now complete
(4). Create a new notification and in the action line type exactly what you did for the test in step 2

blat &quot;-&quot; -s testsubject -t recipient@server.com
 
There is also one out there called SMTPMAIL which we use. I support 5 sites nationwide, and have all my logs (savegroup, bootstrap, etc) emailed into Exchange Public Folders that can be accesses by the operator at each site. Cuts way down on the flying paper if you know what I mean.

Merry Christmas to all! :)
 
Hi

I am using the notification function in Legato to send bootstrap file to an email address, the way I have inserted the command is as follows:

blat - -s "Group Status" -t +TLLegatoadmin@tubelines.com -server tlqewfc020001.tubelines.com:25 -u username -pw password

when running this command it dosn't send anything. However if I modify the command to look like this:

blat c:\cb.txt -s "Group Status" -t +TLLegatoadmin@tubelines.com -server tlqewfc020001.tubelines.com:25 -u lega3652 -pw password

it sends it. I am I missing anything on the first line to send the bootstrap file. Any help will be appretiated. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top