logo       

Re: 5.1 snmpd hrmib problem: msg#00220

network.net-snmp.user

Subject: Re: 5.1 snmpd hrmib problem

Bruce> You're confusing two different indexes.

Mike> HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /
Mike> HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /proc
Mike> HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /etc/mnttab

Bruce> That's off hrDevice, the devices used to implement hrStorage.
Bruce> It uses hrDeviceIndex

No - it's actually from hrStorageTable, and is indexed by hrStorageIndex


Mike> HOST-RESOURCES-MIB::hrFSMountPoint.1 = STRING: "/"
Mike> HOST-RESOURCES-MIB::hrFSMountPoint.2 = STRING: "/proc"
Mike> HOST-RESOURCES-MIB::hrFSMountPoint.3 = STRING: "/etc/mnttab"

Those are from hrFSTable, which is indexed by hrFSIndex.
Neither table is indexed using hrDeviceIndex


Bruce> They would be the same only by coincidence.

That's correct. But is exactly what Mike is complaining about:

Mike> HOST-RESOURCES-MIB::hrFSStorageIndex.1 = INTEGER: 1
Mike> HOST-RESOURCES-MIB::hrFSStorageIndex.2 = INTEGER: 2
Mike> HOST-RESOURCES-MIB::hrFSStorageIndex.3 = INTEGER: 3

This object is meant to provide the mapping between the hrFSTable
and the hrStorageTable, and these entries should have the values
4, 5 and 6 respectively.


Mike> Unless I'm missing something, hrFSStorageIndex is busted.

Unfortunately, you're quite correct. :-(

When this MIB module implementation was first designed (ha!),
the disk-based storage entries came first in both of these tables.
This meant that the same index value could be used for both purposes.

Subsequently, the ordering of the storage table was changed
(to accommodate "large" numbers of disks), but no-one spotted
that this would break the hrFSStorageIndex implementation.

Mike - could you possibly log this problem in the Net-SNMP bug
database (http://www.net-snmp.org/bugs). That'll make sure
that it doesn't get completely forgotten about.
I'll try and have a look at the implementation code, and see
how easy it will be to fix.

Dave



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@xxxxxxxxxxxxxxxxxxxxx
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise