net-snmp issue

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring net-snmp issue
# 1  
Old 04-27-2010
net-snmp issue

When I run a script that polls a router I get the following error from net-snmp. I can not seem to find a straight answer. Could my mib files be corrupt?

Code:
xxx-xxx:/etc/sma/snmp/mibs# perl /export/home/user/perl/test.pl 
Unlinked OID in SNMPv2-MIB: snmp ::= { mib-2 11 }
Undefined identifier: mib-2 near line 273 of /etc/sma/snmp/mibs/SNMPv2-MIB.my
Unlinked OID in SNMPv2-MIB: system ::= { mib-2 1 }
Undefined identifier: mib-2 near line 87 of /etc/sma/snmp/mibs/SNMPv2-MIB.my
Unlinked OID in SNMPv2-MIB: snmpMIB ::= { snmpModules 1 }
Undefined identifier: snmpModules near line 25 of /etc/sma/snmp/mibs/SNMPv2-MIB.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 17 of /etc/sma/snmp/mibs/IANAifType-MIB.my
Did not find 'snmpTraps' in module SNMPv2-MIB (/etc/sma/snmp/mibs/IF-MIB.my)
Unlinked OID in IF-MIB: interfaces ::= { mib-2 2 }
Undefined identifier: mib-2 near line 49 of /etc/sma/snmp/mibs/IF-MIB.my
Unlinked OID in IF-MIB: ifMIB ::= { mib-2 31 }
Undefined identifier: mib-2 near line 16 of /etc/sma/snmp/mibs/IF-MIB.my
Unlinked OID in IF-MIB: linkUp ::= { snmpTraps 4 }
Undefined identifier: snmpTraps near line 1126 of /etc/sma/snmp/mibs/IF-MIB.my
Unlinked OID in IF-MIB: linkDown ::= { snmpTraps 3 }
Undefined identifier: snmpTraps near line 1114 of /etc/sma/snmp/mibs/IF-MIB.my
Unlinked OID in SNMP-FRAMEWORK-MIB: snmpFrameworkMIB ::= { snmpModules 10 }
Undefined identifier: snmpModules near line 10 of /etc/sma/snmp/mibs/SNMP-FRAMEWORK-MIB.my
Cannot adopt OID in SNMPv2-MIB: snmpMIBGroups ::= { snmpMIBConformance 2 }
Cannot adopt OID in SNMPv2-MIB: snmpMIBCompliances ::= { snmpMIBConformance 1 }
Cannot adopt OID in IF-MIB: ifSpecific ::= { ifEntry 22 }
Cannot adopt OID in IF-MIB: ifOutQLen ::= { ifEntry 21 }
Cannot adopt OID in IF-MIB: ifOutErrors ::= { ifEntry 20 }
Cannot adopt OID in IF-MIB: ifOutDiscards ::= { ifEntry 19 }
Cannot adopt OID in IF-MIB: ifOutNUcastPkts ::= { ifEntry 18 }
Cannot adopt OID in IF-MIB: ifOutUcastPkts ::= { ifEntry 17 }
Cannot adopt OID in IF-MIB: ifOutOctets ::= { ifEntry 16 }
Cannot adopt OID in IF-MIB: ifInUnknownProtos ::= { ifEntry 15 }
Cannot adopt OID in IF-MIB: ifInErrors ::= { ifEntry 14 }
Cannot adopt OID in IF-MIB: ifInDiscards ::= { ifEntry 13 }
Cannot adopt OID in IF-MIB: ifInNUcastPkts ::= { ifEntry 12 }
Cannot adopt OID in IF-MIB: ifInUcastPkts ::= { ifEntry 11 }
Cannot adopt OID in IF-MIB: ifInOctets ::= { ifEntry 10 }
Cannot adopt OID in IF-MIB: ifLastChange ::= { ifEntry 9 }
Cannot adopt OID in IF-MIB: ifOperStatus ::= { ifEntry 8 }
Cannot adopt OID in IF-MIB: ifAdminStatus ::= { ifEntry 7 }
Cannot adopt OID in IF-MIB: ifPhysAddress ::= { ifEntry 6 }
Cannot adopt OID in IF-MIB: ifSpeed ::= { ifEntry 5 }
Cannot adopt OID in IF-MIB: ifMtu ::= { ifEntry 4 }
Cannot adopt OID in IF-MIB: ifType ::= { ifEntry 3 }
Cannot adopt OID in IF-MIB: ifDescr ::= { ifEntry 2 }
Cannot adopt OID in IF-MIB: ifIndex ::= { ifEntry 1 }
Cannot adopt OID in SNMPv2-MIB: snmpBasicComplianceRev2 ::= { snmpMIBCompliances 3 }
Cannot adopt OID in SNMPv2-MIB: snmpBasicCompliance ::= { snmpMIBCompliances 2 }
Cannot adopt OID in IF-MIB: ifConformance ::= { ifMIB 2 }
Cannot adopt OID in IF-MIB: ifMIBObjects ::= { ifMIB 1 }
Cannot adopt OID in IF-MIB: ifRcvAddressEntry ::= { ifRcvAddressTable 1 }
Cannot adopt OID in SNMPv2-MIB: snmpSetSerialNo ::= { snmpSet 1 }
Cannot adopt OID in SNMP-FRAMEWORK-MIB: snmpPrivProtocols ::= { snmpFrameworkAdmin 2 }
Cannot adopt OID in SNMP-FRAMEWORK-MIB: snmpAuthProtocols ::= { snmpFrameworkAdmin 1 }
Cannot adopt OID in SNMPv2-MIB: snmpObsoleteGroup ::= { snmpMIBGroups 10 }
Cannot adopt OID in SNMPv2-MIB: snmpNotificationGroup ::= { snmpMIBGroups 12 }
Cannot adopt OID in SNMPv2-MIB: snmpWarmStartNotificationGroup ::= { snmpMIBGroups 11 }
Cannot adopt OID in SNMPv2-MIB: snmpBasicNotificationsGroup ::= { snmpMIBGroups 7 }
Cannot adopt OID%2


Last edited by Scott; 04-27-2010 at 11:26 AM.. Reason: Fixed code tags
# 2  
Old 04-27-2010
using the same directory of MIBs (export MIBSDIR=/etc/sma/snmp/mibs; export MIBS=ALL), walk the device you are after. do you still get the same output from net-snmp ?

what version of net-snmp are you using?
# 3  
Old 04-28-2010
Quote:
Originally Posted by pupp
using the same directory of MIBs (export MIBSDIR=/etc/sma/snmp/mibs; export MIBS=ALL), walk the device you are after. do you still get the same output from net-snmp ?

what version of net-snmp are you using?
Well that made it worse... Now none of the mibs are working?

I am using net-snmp 5.2.

This one has me stumped.

---------- Post updated 04-28-10 at 10:07 AM ---------- Previous update was 04-27-10 at 02:40 PM ----------

Ok, I finally got a solution. Ran these commands.

Code:
xxx-xxx:/etc/sma/snmp/mibs# MIBDIRS=/usr/local/share/snmp/mibs:/etc/sma/snmp/mibs
xxx-xxx:/etc/sma/snmp/mibs# export MIBDIRS
xxx-xxx:/etc/sma/snmp/mibs# MIBS=ALL;export MIBS

Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. HP-UX

Net-snmp 5.7.2 on HP-UX 11.31

Hi All, I have an issue with net-snmp communication from a monitoring server to HP UX server. Following are the details HP - UX server : 172.16.184.34 Monitoring Server : 172.16.5.57 (Solarwinds Application)I'm running HP-UX's snmp on udp port 161 and net-snmp on udp 1161. ... (0 Replies)
Discussion started by: maverick_here
0 Replies

2. Infrastructure Monitoring

net-snmp - restarting too quickly issue

on my sol10x86 10/08 box, i needed to remove the native snmp agent (sma) for net-snmp-5.4.2.1. once net-snmp was configured and installed, i reconfigured the appropriate files of smf and attempted to restart. service was put into maintenance mode: ... (1 Reply)
Discussion started by: pupp
1 Replies

3. Solaris

Net-SNMP-5.4.2.1 issue on Sun Solaris

Hi, I am trying to compile the source code for Net-SNMP-5.4.2.1 using the gcc compiler-3.4.6 and 3.4.3 but I am getting the follwoing error with perl enabled: /bin/sh ../libtool --mode=link gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -fno-strict-aliasing -pipe -Wdeclaration-after-statement... (2 Replies)
Discussion started by: tisha
2 Replies

4. Solaris

Net-snmp issue in Solaris 8

Hi there, I know this is a common question, but I have not found a satsifactory solution yet, so pardon me for posting similar questions. My problem is the log /var/adm/messages is filling up with this entry every few minutes Please refer below. Oct 4 21:39:46 host last message repeated 3... (5 Replies)
Discussion started by: sundar63
5 Replies

5. UNIX for Dummies Questions & Answers

net-snmp

Does anybody know where I can get net-snmp for compaq tru64 V4.0G? I am having a difficult time locating it. Can it run on tru64 V4.0G? (2 Replies)
Discussion started by: jalburger
2 Replies
Login or Register to Ask a Question