Re: RFC1213-MIB vs IF-MIB, ifType and -mALL

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
>>>>> On Tue, 21 Jun 2011 16:04:08 +0200, Peter Valdemar Mørch <[email protected]> said:

PVM> # snmpwalk -M$DIRS -mALL -v2c -c$COMMUNITY $IP ifType | head -n 1
PVM> RFC1213-MIB::ifType.1 = INTEGER: 53

PVM> # snmpwalk -M$DIRS -mALL -mIF-MIB -v2c -c$COMMUNITY $IP ifType | head -n 1
PVM> IF-MIB::ifType.1 = INTEGER: propVirtual(53)

PVM> But then one can't access anything from any other mib as this shows:

PVM> # snmpwalk -M$DIRS -mALL -mIF-MIB -v2c -c$COMMUNITY $IP lmTempSensorsTable
PVM> lmTempSensorsTable: Unknown Object Identifier (Sub-id not found: (top) ->
PVM> lmTempSensorsTable)

PVM> # snmpwalk -M$DIRS -mALL -v2c -c$COMMUNITY $IP lmTempSensorsTable
PVM> LM-SENSORS-MIB::lmTempSensorsTable = No Such Object available on this agent
PVM> at this OID
PVM> (yeah, there is no such instance on the equipment, but snmpwalk could find
PVM> the OID)

PVM> So, given that RFC1213-MIB is in ./mibs/, is there any way I can use -mALL
PVM> or the perl equivalent and still get the (newer) ifTable definition from
PVM> IF-MIB?

You could edit the snmplib/parse.c file to add in the missing duplicates
into the 'struct module_compatability module_map[]' definition list.
That might fix it more permanently.

You could also not use "ALL".  It's a hack too ;-)

The reason I suspect it's still around is two-fold:

1) when we originally started not everything had been replaced and we've
   never deleted it.
2) deleting it might cause 3rd-party mibs that still import it to break
   loading.


Maybe we need a 'mibignore' config option ;-)
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.