nv-l

Re: [NV-L] Email Rule for Windows

2006-09-22 15:13:18
Subject: Re: [NV-L] Email Rule for Windows
From: "Ahsan Ali" <ahsan AT pk.ibm DOT com>
To: "Tivoli NetView Discussions" <nv-l AT lists.ca.ibm DOT com>, Ronald.Ross AT springswindowfashions DOT com
Date: Sat, 23 Sep 2006 00:05:11 +0500
Ross,

From the Netview Windows User's Guide -> Working with events and event
filters -> Actions on events:

Using the Tivoli NetView program, you can specify actions that are
automatically performed when a specific event occurs when you select
Options --> Trap Settings. This feature provides quick notification
for events that are critical to your environment. The types of actions
you can configure include the following:

Display an error dialog using the nvecho command. Refer to the IBM(R)
Tivoli(R) NetView(R) for Windows(R) Programmer's Reference for
information about the nvecho command.

Send an e-mail message using the nvmail command. Refer to the IBM
Tivoli NetView for Windows Programmer's Reference for more
information.

Send a page using the nvpage command. See Paging support for more information.

You can also configure any action that you can run in a batch file.
You must specify the fully qualified path name for the batch file and
enclose any arguments to the batch file in double quotes (for example,
c:\mydir\myaction.bat "param1 param2").

=========================================
Manual page for nvmail (Netview for Windows Programmer's Reference ->
Reference Pages -> nvmail)

nvmail

Purpose: Sends a mail message.

Syntax:

nvmail -server servername -recipient user-mailbox [-subject
subject-string ][-message message-string|-file file-name]


Description:

The nvmail command can be used to send an e-mail message. It can be
invoked upon receipt of a trap to send an e-mail message to the
operator in response to the event. Use Options -> Trap Settings to
configure a trap to execute this command.

Flags
-server servername
Specifies the name of the SMTP mail server.

-recipient user-mailbox
Specifies the name of the recipient of the mail. Only one recipient
can be specified.

-subject subject-string
A quoted string that will appear as the body of the mail message. This
flag is optional

-message message-string
A quoted string that will appear as they body of the mail message.
This option can not be specified if the -file option is used.

-file file-name
A fully qualified file name to be transmitted as the body of the mail
message. This option cannot be specified if the -message option is
used.

Example:

nvmail -server mailserver.acme.com -recipient reed AT adam12 DOT com -subject
"Segment down" -message "Respond as backup"

Implementation Specifics
- nvmail will only work with SMTP mail servers.
- Only one recipient can be specified with the nvmail command.
- nvmail does not transmit files as attachments.


I hope that helps you!

---
Ahsan Ali
Tivoli Technical Specialist,
Software Group, IBM Pakistan
_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)