Regarding disk usage and memory usage
Naganarasimha <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel,gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All, From reading all the mails from different groups in souceforge.net I came to know that disk space can be got from hrStorageTable or dskEntry I have a unique problem : I have a suse linux 9.0 with net snmp 5.1 I am able to get diff drives description present from hrStorageTable, but the problem with this "hrStorageTable" is It is displaying 1: hrStorageIndex - Integer32(2 - int, int32) 2: hrStorageType - AutonomousType(6 - oid) 3: hrStorageDescr - DisplayString(4 - octets) 4: hrStorageAllocationUnits - Integer32(2 - int, int32) but these values I am not getting, 5: hrStorageSize - Integer32(2 - int, int32) 6: hrStorageUsed - Integer32(2 - int, int32) 7: hrStorageAllocationFailures - Counter32(65 - cntr32) I can get some of these values from dskEntry but the problem with that is, we have to configure "disk" directive in snmpd.conf file which we do not want to do as I am instructed to do a plug and play sort of s/w And one more thing I noticed was snmpdf command is working properly and gives out the values of all the disks and snmpdf uses the host resources mibs i.e hrStorageTable(by default) /dskEntry ( by having option -Cu) if I do, snmpdf I am getting the details and snmpdf with -Cu option, is giving no details ( when I have removed Configuration for the disk directive in snmpd.conf). What I am trying to say from this above experiment of mine is ,I am get the output of snmpdf in default mode which implies it is reading from hrStorageTable properly even though the snmpd.conf is not configured. But snmpwalk on hrStorageTable is not getting us any values for size and usage. And finally I cant use this snmpdf because I have codes which are compatible with the four basic snmp commands Snmpwalk,snmpget,snmpset. Can some one put light on this issue and tell me where have I can search or do something to get these values from hrStorageTable Thanks and Regards, Naga