Catalina -
I am afraid you are confused about what this does and how it works.
You did not add any MIBs (that is, you did not load any MIBs) into NetView
with the nvaddtrapdconf command.
What you did was to (try to) merge the trapd.conf file you already have
with one in /usr/OV/newconfig/OVSNMP-RUN/trapd.conf
This adds trap definitions not MIBS.
Some MIBs do contains trap definitions, and NetView provides mib2trap as a
way of extracting them. Then you have to run the output of mib2trap (which
is an script containing a series of addtrap commands) to load the trap defs
into NetView. But the trapd.conf in
/usr/OV/newconfig/OVSNMP-RUN/trapd.conf already contains trap definitions
for the most commonly issued Cisco traps. So rather than extract all those
individually, you can use the nvaddtrapdconf to merge the sample which
already contains them with the one you already have and get them added in
on fell swoop.
But the error message you are receiving means that the trapd.conf you
started with contains an error. The error message is from grep, which
cannot accept a line length of greater than 2048 characters (this is an AIX
K shell restrictions, and I believe it is true of all UNIX varieties), and
grep is used internally by nvaddtrapdconf. So someone in your original
trapd.conf I suspect that there is a very long line. I don't know how it
got there. We recommend that no construct in trapd.conf exceed 99 words.
You can try to use /usr/OV/install/tools/checktrapdconf to find the line
which is too long. My advice is to make a backup copy of
/usr/OV/conf/C/trapd.conf (in case you mess it up) and then edit it and
remove or shorten this very long line. it is probably a trap description,
which should be could just be deleted. Then run nvaddtrapdconf again and
all should be well, provided that you have done the edit correctly. If
trapd won't load this file after you have done this, or if it dies trying
to load the file, or you are just at a loss on how to proceed, then you
should conatct Support for assistance and use your backup file in the
meantime.
There were no specific aironet traps included in this merge. I don't even
know whether Cisco has any. The traps which are included are those which
appear in the Cisco MIBs in /usr/OV/snmp_mibs. You will probably have to
obtain the specific Cisco MIBs for aironet devices and proceed on the
mib2trap route.
James Shanks
Level 3 Support
Tivoli NetView for UNIX and NT
Please note that my new id is jshanks@us.ibm.com
"CATALINA MARTINEZ" <CATALINA.MARTINEZ@tlc.state.tx.us>@tkg.com on
09/04/2001 10:21:24 AM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
Sent by: owner-nv-l@tkg.com
To: <nv-l@tkg.com>
cc:
Subject: Re: [NV-L] how to add Cisco traps to NV
Hi to all,
AIX 4.3.3 Netview 6.0.2
I ran the commands as stated on Page 9 of the 6.0.2 Release notes
cd /usr/OV/conf/C
cp tapd.conf trapd.conf.orig
nvaddtrapdconf /usr/OV/newconfig/OVSNMP-RUN/trapd.conf
I got the following error when running the third command:
grep: 0652-226 Maximum line length of 2048 exceeded
Merged /usr/OV/newconfig/OVSNMP-RUN/trapd.conf into
/usr/OV/conf/C/trapd.conf
How do I increase the length? is there an easy way of finding out which
mibs where added or omitted?
Do you know if the wireless(aironet) cisco mibs are included in the file?
I need to add these mibs (wireless) but how do I do it if the length is
exceeded?
Catalina
>>> kaveh_t@hotmail.com 09/03/01 11:36AM >>>
Hi Jane,
I did
nvaddtrapdconf /usr/OV/newconfig/OVSNMP-RUN/trapd.conf
but although the NV6.0.2 Release Notes say that
this should add
"forty-seven new enterprises and one hundred and nine new traps,
added for Cisco and Novell devices"
in Event Configuration I could not find a single trap
under 1.3.6.1.4.1.9 which is Cisco!
That means I still don't have any Cisco traps configured.
Is there any other way to add Cisco traps
to NV, say, for Cat6509?
I tried mib2trap <mib> ... which ended up in syntax
errors in the mibs.
----Original Message Follows----
From: Jane Curry <jane.curry@skills-1st.co.uk>
Reply-To: IBM NetView Discussion <nv-l@tkg.com>
To: IBM NetView Discussion <nv-l@tkg.com>
Subject: Re: [NV-L] how to add Cisco traps to NV
Date: Fri, 31 Aug 2001 12:06:19 +0100
MIME-Version: 1.0
Received: from [198.3.130.68] by hotmail.com (3.2) with ESMTP id
MHotMailBD58BD5800B140043894C6038244CDEE0; Fri, 31 Aug 2001 04:17:47 -0700
Received: from localhost (daemon@localhost)by westlake.tkg.com
(8.9.3/8.9.3)
with SMTP id GAA201272;Fri, 31 Aug 2001 06:10:05 -0500
Received: by westlake.tkg.com (bulk_mailer v1.12); Fri, 31 Aug 2001
06:08:46
-0500
Received: (from mjrdomo@localhost)by westlake.tkg.com (8.9.3/8.9.3) id
GAA166488for nv-l-outgoing; Fri, 31 Aug 2001 06:08:45 -0500
>From owner-nv-l@tkg.com Fri, 31 Aug 2001 04:18:02 -0700
Message-ID: <3B8F6FAB.41BB2516@skills-1st.co.uk>
X-Mailer: Mozilla 4.77 [en] (WinNT; U)
X-Accept-Language: en
References: <F2196mlB5RRTEuHeqpv0000231c@hotmail.com>
Sender: owner-nv-l@tkg.com
Precedence: bulk
The Release Notes for NetView 6.0.1 and 6.0.2 document how to import
LOTS of Cisco trap definitions. Basically, they are all shipped in
/usr/OV/newconfig/OVSNMP_RUN/trapd.conf. Back up your live trapd.conf
and then run the nvaddtrapdconf utility to merge your existing trap
customisation with the Cisco stuff.
Cheers, Jane
--
Tivoli Certified Enterprise Consultant & Instructor
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 2001 Jane Curry <jane.curry@skills-1st.co.uk>. All rights
reserved.
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
|