No, there is not. A fundamental premise of automation provided by NetView
is that you must understand in advance exactly what you are automating.
I'm afraid the entire trap automation process in NetView assumes that you
will pick out in advance only those traps which you know exactly how many
variables they have and what they mean.
While all NetView traps have exactly 5 variables, and the first will be an
integer representing the sending process, the second will be the hostname
of the node the trap is about, the third will be the trap message or
description, the fourth will contain various bits of information sent as a
unit, and the fifth will say "openview", no other vendor I know of is that
consistent (except HP OpenView). Note that I am not talking about trapgend
traps nor about MLM, which are configurable agents for NetView, just
NetView itself. With other vendors, the number of variables and the content
change dramatically with each trap.
James Shanks
Team Leader, Level 3 Support
Tivoli NetView for UNIX and NT
"Gavin Newman" <NEWMANGJ@stgeorge.com.au> on 10/12/2000 11:25:18 PM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
To: nv-l@tkg.com
cc: (bcc: James Shanks/Tivoli Systems)
Subject: [NV-L] Trap Information
When an action is triggered in a Netview rule there are environment
variables $NVATTR_1 to $NV_ATTR50
available to be passed the the shell script called in the Action Node.
For traps generated by Netview this is simple as the trap text is contained
in NVATTR_3 so I have no problems handling them.
My problem is when handling traps from other sources (for example Cisco
switches etc) as these have a variable
number of parameters passed with the trap but I cannot find any way of
working out how many. If I pass NVATTR_1 through to NVATTR-50 to my script
I have no way of knowing which a re valid. Is there any way to pass only
those
trap parameters that are valid to my script?
Cheers - Gavin
**********************************************************************
***** IMPORTANT INFORMATION *****
This document should be read only by those persons to whom
it is addressed and its content is not intended for use by
any other persons. If you have received this message in
error, please notify us immediately. Please also destroy and
delete the message from your computer. Any unauthorised form
of reproduction of this message is strictly prohibited.
St.George is not liable for the proper and complete transmission
of the information contained in this communication, nor for any
delay in its receipt.
**********************************************************************
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
|