Re: [NV-L] Email Rule for Windows
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
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)
Purpose: Sends a mail message.
nvmail -server servername -recipient user-mailbox [-subject
subject-string ][-message message-string|-file file-name]
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.
Specifies the name of the SMTP mail server.
Specifies the name of the recipient of the mail. Only one recipient
can be specified.
A quoted string that will appear as the body of the mail message. This
flag is optional
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.
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
nvmail -server mailserver.acme.com -recipient email@example.com -subject
"Segment down" -message "Respond as backup"
- 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!
Tivoli Technical Specialist,
Software Group, IBM Pakistan
NV-L mailing list
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
Archive operated by Skills 1st Ltd
See also: The NetView Web