What is the easiest method to send a "simple" trap message(Specially
created one) from NV6K that would use the connection to trapd, which
could then flow across the tecad_nv6k adapter (provided class
definitions were imported in Tivoli?
I had posted an earlier question back in June. Our goal is to do a
"HeartBeat Monitor" as a contigency to Netmon
or Tivoli Distributed Monitoring. Once I get the event into TEC, I can
send it to our Trouble Ticket System (Remedy)
for action or filtering depening on whether the next cycle event is
NV6K Resident expert.. My. James Shanks posted a very nice post on April
6 regarding Traps and Events
To: NV-L AT UCSBVM.UCSB DOT EDU
From: James Shanks/Tivoli Systems @ Tivoli Systems
Subject: Re: TRAPS AND EVENTS
Hello Alexis -
Please take the time to read the on-line books that ship with the
which you can access using the Help button on the menu line when you
the End User Interface up. I particularly recommend the User's Guide
Beginners and the Administrator's Guide. We make all our people read
when they are learning the product. The Administrator's Guide will
you a lot about how to configure events. There are also man pages ("man
trapd" and "man trapd.conf") which will help explain things when you
a quick reference.
If by "generating traps" you mean to create your own trap and send it
NetView, there are two tools for that. One is the event command and the
other is the snmptrap command. You can learn about both of these in the
NetView books or in the UNIX man pages (you type "man event" or "man
snmptrap"). The event command will simulate a NetView trap using a tcp
connection to trapd. It is useful for testing rulesets, and because it
works the same way as netmon, it is useful for testing that the tcp
to trapd is not blocked. But the event command is difficult to
if you want to send variables in the trap and it only sends selected
traps -- you cannot make up your own. The snmptrap command is a bit
difficult to learn but is much more flexible. It will send any trap you
can dream of and it does so over the network, so it is very useful for
testing the udp connection to trapd.
Here is an snmptrap example which you can adapt to your needs. This
script will issue
a NetView status trap which can be used to alter the status of an object
the map, provided that the second hostname in it is the selection name
an object on the map. You must have an events window up on the
map for this to work.
Call the script whatever you like and put it in a directory in your
You pass it two variables -- (1) the name of the object from the object
database, and (2) the status you want this changed to on the map(s).
/usr/OV/bin/snmptrap `hostname` .220.127.116.11.18.104.22.168.3.1 \
`hostname` 6 58916871 1 \
.22.214.171.124.126.96.36.199.188.8.131.52.0 Integer 14 \
.184.108.40.206.220.127.116.11.18.104.22.168.0 OctetString $NAME \
.22.214.171.124.126.96.36.199.188.8.131.52.0 OctetString "Object status is" \
.184.108.40.206.220.127.116.11.18.104.22.168.0 OctetString $STATE
Obviously you can make this script more elaborate if you like.
The permissible status values are Unknown, Normal, Marginal, Critical,
Up, Down, User1, and User2.
Feel free to ask further questions about this on the NV-L list.
MY Question is , Has anyone tried the above steps, and were successful?
yes, I printed the MAN page off for Event, just isn't clear enough with
the help I need. If the Admin Guide is helpful, someone can point me in
that direction.The SNMPTRAP seems a bit too much for what I need to do??
Any additional suggestions would be appreciated.
Thanks very much
Hershey Foods Corporation
Information Technology & Integration
Enterprise Systems Management
email:jmull AT hersheys DOT com