The way you would do this is to use a script, which parses the trap
variables to construct the message you want to send, and then calls nvpage
to send the page.
The script would be what you would put in the command for automatic action
using xnmtrap.
James Shanks
Team Leader, Level 3 Support
Tivoli NetView for UNIX and NT
"Gebhart, Tom (CC-MIS Tech Systems)" <Tom.Gebhart@conagrafoods.com>@tkg.com
on 04/11/2001 03:09:10 PM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
Sent by: owner-nv-l@tkg.com
To: "'IBM NetView Discussion'" <nv-l@tkg.com>
cc:
Subject: RE: [NV-L] How do I page out Cisco environmental alerts?
Gentlemen,
Thanks to both. Discovered we had our test router set up to forward
traps to our production netview host and we were testing (of course) on our
development netview host. Added our dev netview to the test router and
started getting traps right away. Addtrap was probably working all along.
Now. I need to do some tailoring of the trap message before I page
it out. I don't need to page out the brand name of the power supply, and
who knows 1 is normal and 4 is shutdown, etc? Any hints on how to do this
easily? Thanks again, Tom G.
-----Original Message-----
From: Kevin J Lee [mailto:kevinl@iormyx.com]
Sent: Wednesday, April 11, 2001 11:25 AM
To: IBM NetView Discussion; IBM NetView Discussion
Subject: RE: [NV-L] How do I page out Cisco environmental alerts?
Tom,
Exactly as James said. tail your trapd.conf and send an evnriomnetal alarm
from the Cisco device. If you get the trap into trapd.conf in whatever
form, then the rest is trivial. If the trap never makes to the trapd.conf
file, then you have lots more troubleshooting to do between Cisco Router
and
SNMP Agent running on the NetView box.
On a side note, you don't need the MIBs loaded in NetView if you just want
to receive the traps and run some automatic scripts. It won't be pretty,
but if it's automatic who cares? Let the machine worry about those OIDs.
Kevin Lee
kevinl@iormyx.com
703.855.2408
HPOV & Netcool Certified
-----Original Message-----
From: James_Shanks@tivoli.com
Sent: Wed 4/11/2001 11:36 AM
To: IBM NetView Discussion
Cc:
Subject: RE: [NV-L] How do I page out Cisco environmental alerts?
I don't quite understand what you are saying.
Trapd logs all traps unless you specifically edit the trap definition
(using xnmtrap) to say "Don't Log or Display". So if your trap is being
sent to NetView, then it should be displayed in the trapd.log. Is it?
If you are saying that it is in the trapd.log, but doesn't make it to the
event window, then use xnmtrap to see whether it is set to "Log Only".
That is the default for all traps added via the mib2trap - addtrap process.
If you are saying that it is in the log, but it doesn't have the formatting
you expect, then something went wrong with your addtrap definition and you
should use xnmtrap to fix it.
No trap in the trapd.log and yet you do not have an entry in trapd.conf
which says "Ignore" (that's how the file shows traps configured as "Don't
Log or Display")?
Then your trap is not getting to the NetView box.
James Shanks
Team Leader, Level 3 Support
Tivoli NetView for UNIX and NT
"Gebhart, Tom (CC-MIS Tech Systems)" <Tom.Gebhart@conagrafoods.com>@tkg.com
on 04/11/2001 11:17:13 AM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
Sent by: owner-nv-l@tkg.com
To: "'IBM NetView Discussion'" <nv-l@tkg.com>
cc:
Subject: RE: [NV-L] How do I page out Cisco environmental alerts?
Kevin,
We agree that the better way is to use a trap to Netview, rather
than an SNMP poll of the device. We already had the CISCO-ENVMON-MIB
loaded
in Netview.
Our problem is with "addtrap". We used the "mib2trap" command to
create an addtrap script. We got some error messages that we detremined
were caused by a missing "-i" value. We thought we figured out what that
value should be and editted the value into the addtrap script which then
seemed to run to add the trap. But we can not get the trap to forward a
message to the Netview event log even though we tailored the trap to do so.
All help is appreciated. Thanks, Tom G.
-----Original Message-----
From: Kevin J Lee [mailto:kevinl@iormyx.com]
Sent: Friday, April 06, 2001 10:32 AM
To: IBM NetView Discussion; nv-l@tkg.com
Subject: RE: [NV-L] How do I page out Cisco environmental alerts?
Tom,
You can either load the CISCO-ENVMON-MIB and collect temperature data using
NetView, or configure the Cisco device to send you environmental alarms in
the form of SNMP Traps to NetView. Data collection using NetView puts
unnecesary load on the network, so configuring Cisco Device to send trap is
much cleaner and efficient, unless you wanted to trend the temperature
data.
To configure your cisco device, use the command:
snmp-server enable traps envmon temperature
Enjoy.
Kevin Lee
kevinl@iormyx.com
NCC, HPOV, BMC Certified Consultant.
703.855.2408
-----Original Message-----
From: Gebhart, Tom (CC-MIS Tech Systems)
Sent: Thu 4/5/2001 4:48 PM
To: 'nv-l@tkg.com'
Cc:
Subject: [NV-L] How do I page out Cisco environmental alerts?
We have NetView 5.1.3 on AIX 4.3.2.
I need to receive environmental alerts from Cisco 7206 devices in our core
network. We get power on reset alerts "after the fact" on other Cisco
devices in our WAN but we would like to be "fore warned" on over heat
problems and the like within the core. We have the SNMP configured in the
routers. What else do I have to do? Where can I read up on how to do
this?
Thanks in advance. You've been a big help in the past, Tom G.
Tom Gebhart
ConAgra Foods
Senior Systems Administrator
(402) 577-3677
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
|