|
From: <hor...@th...> - 2004-09-01 11:36:53
|
Hello, I have already read the FAQs and it seems maybe a problem with the MIBs. If I load the MIBs there are a lot of error messages. With some MIBs the snmptrapd will start with some MIBs not. I have got the MIBs from http://www.oidview.com/mibs/detail.html The syntax to start the snmptrapd is: /usr/local/sbin/snmptrapd -Pe -M +`cat $TMP/MIBDIR` -m +ALL -F "%m %l %h:%j:%k %B :::: %v\n" where in $TMP/MIBDIR are the directories separated by ":" where the MIBs = are located The Cisco MIB will work but with a lot of messages at starttime: Did not find 'Ipv6IfIndexOrZero' in module IPV6-TC (/usr/local/share/snmp/mibs/IPV6-MIB.txt) Too many textual conventions (Integer32): At line 116 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt : (is a reserved word): At line 116 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt 0 (is a reserved word): At line 116 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt 2147483647 (is a reserved word): At line 116 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt Too many textual conventions (IDENTIFIER): At line 145 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt : (is a reserved word): At line 150 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt : (is a reserved word): At line 150 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt STATUS (is a reserved word): At line 151 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt DESCRIPTION (is a reserved word): At line 161 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt SYNTAX (is a reserved word): At line 162 in /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt 2004-09-01 12:51:49 NET-SNMP version 5.0.7 Started. If I try to load the 3Com MIB the snmptrapd process do not star= t. The error messages are of this kind: Unlinked OID in CB9000-MIB: cb9000-generic-mib ::=3D { coreBuilder9000-mi= b 1 } Undefined identifier: coreBuilder9000-mib near line 39 of /usr/local/share/snmp/vendor/3Com/cb9000.mib Did not find 'cb9000-module-mib' in module CB9000-MIB (/usr/local/share/snmp/vendor/3Com/cb9000mod.mib) Unlinked OID in CB9000-PACKET-MODULE-MIB: cb9000PacketModule ::=3D { cb9000-module-mib 1 } Undefined identifier: cb9000-module-mib near line 41 of /usr/local/share/snmp/vendor/3Com/cb9000mod.mib # Segmentation fault /usr/local/sbin/snmptrapd -Pe -M +`cat $TMP/MIBDIR` -m +ALL -F "%m %l %h:%j:%k %B :::: %v\n" Are the MIBs wrong, or did I forgot something ? If the MIBs are wrong or not complete, where can I get the right ones ? Thanks for help Horst ----- Original Message -----=20 From: "Robert Story (Users)" <rs...@fr...> To: "Horst Thive=DFen" <hor...@th...> Cc: <net...@li...> Sent: Tuesday, August 31, 2004 10:13 PM Subject: Re: How to get the Cisco MIB included ? > On Tue, 31 Aug 2004 21:42:09 +0200 Horst wrote: > HT> But the numerical output for > HT> the private mib (cisco=3D.9.x) is not very useful. I want to get li= teral > HT> outputs, so I can read what the reason of the snmp-trap was. So I > HT> downloaded the Cisco MIB v1 and v2. For several hours I have read t= he docs > HT> and tried to get the MIB into net-snmp to get the literal output - = but with > HT> no success. I really do not know what to do ;-( Can anybody help me= ? > > Have you read these FAQ entries? > > http://www.net-snmp.org/FAQ.html#How_do_I_add_a_MIB_ > http://www.net-snmp.org/FAQ.html#I_m_getting_answers__but_they_re_all_num= bers__Why_ > > It would help if you tell us exactly what you have tried, and what erro= rs you > get. > > --=20 > Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> > <irc://irc.freenode.net/#net-snmp> > Archive: <http://sourceforge.net/mailarchive/forum.php?forum=3Dnet-snmp-users> > > You are lost in a twisty maze of little standards, all different. |