Re: wiping mib_indexes/*

2012-08-08 Thread Dave Shield
On 8 August 2012 15:56, Stuart Kendrick wrote: > I have attached these files OK - I think I've tracked down the problem. These index files seem to use DOS-style line endings (i.e. CR/LF) Unfortunately, the code to process them includes some very Unix-centric thinking, and is explicitly looking f

Re: wiping mib_indexes/*

2012-08-08 Thread Dave Shield
On 8 August 2012 14:46, Stuart Kendrick wrote: > guru> cat 1 | more > DIR /opt/local/share/snmp/mibs/Cisco > CISCO-SYSTEM-MIB CISCO-SYSTEM-MIB > [...] > guru> cat 2 | more > DIR /opt/local/share/snmp/mibs/IETF > DNS-RESOLVER-MIB DNS-RESOLVER-MIB > [...] Can you please post the *whole* of these t

Re: wiping mib_indexes/*

2012-08-08 Thread Stuart Kendrick
Hi Dave, Seems to me that I have read/write to the relevant files ... and that the contents of the index files are congruent with the contents of the MIB file directories (although I haven't been precise about this, i.e. I haven't precisely checked that every file in the MIB file directories shows

Re: wiping mib_indexes/*

2012-08-08 Thread Dave Shield
On 8 August 2012 14:09, Stuart Kendrick wrote: > ==> I don't see a '.index' file anywhere in /opt/local/share/snmp/mibs > ... is this a problem? No. The index file was moved from the directory containing the MIB files, (which could legitimately be mounted on read-only storage), to come under the

Re: wiping mib_indexes/*

2012-08-08 Thread Stuart Kendrick
OK, turns out I described the issue incompletely. By wiping /opt/local/var/snmp/mib_indexes, I can squeeze out a single successful run of a net-snmp utility: guru> snmpget -c public localhost sysDescr.0 RFC1213-MIB::sysDescr.0 = STRING: "Linux guru.company.com 2.6.18-308.11.1.el5.centos.plus #1 S