Well, it never occurred to me NetSNMP could determine our hard drive
information automatically, so I never tried the those SNMP requests. I just
figured I would need to supply this information like I do for my other MIB data.
The output of "df" is as follows:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 76255996 32880440 39501884 45% /
tmpfs 256 40 216 16% /var
/dev/hda1 2993856 540 2993316 0% /mnt/gpfs
/dev/hda5 324480 528 323952 0% /mnt/system
/dev/mtdblock4 2176 660 1516 30% /mnt/nvram
I guess Net-SNMP determines all the Host Resources MIB information based on
unix commands like "df" and then parses this output and populates the tables
accordingly? If this is true, is there a list somewhere which states which
unix commands are used for parsing in order to populate the hostResources table
information? It would be nice to know which commands exist which offer this
type of information.
Also, is it true all the MIBs which are implemented in the Net-SNMP package
obtain their information automatically ..... "for free" basically? Our build
group was getting a bit nervous when they thought the main Net-SNMP package
code might need to call certain API platform-specific commands directly to get
this information. They were telling me that would require a lot more
compiling issues with the main Net-SNMP package to get it to compile in the
appropriate library files it would need to do this.
Anyway, I need to support the following Host resources MIB information only and
I guess NetSNMP would provide all of this information already. I need to try
each SNMP request to verify this of coruse..
hrStorage
hrMemorySize
hrStorageTable
hrStorageType
hrStorageDesc
hrStorageAllocationUnits
hrStorageSize
hrStorageUsed
hrStorageAllocationFailures
hrDeviceTable
hrDeviceIndex
hrDeviceType
hrDeviceDesc
hrDeviceID
hrDeviceStatus
hrProcessorTable
hrDeviceFrwID
hrDeviceProcessorLoad
hrSWRunTable
hrSWRunIndex
hrSWRunName
hrSWRunID
hrSWRunPath
hrSWRunParameters
hrSWRunType
hrSWRunStatus
hrSWRunPerfTable
hrSWRunPerfCPU
hrSWRunPerfMem
Dave Shield <[EMAIL PROTECTED]> wrote: On 15/08/07, Need Help wrote:
> Lets take the "hrDevice table" as an example.
> Our
> hardware box has some hard drives in it which I would like to enter into the
> hrDevice table, but I am not sure how to go about doing this.
First thing - have you tested to see whether these drives are being
picked up already, or not? (And if not, then why not?) The Host
Resources implementation should recognise hard disks automatically.
If it's not seeing them, then what devices do these drives appear as?
The init_hr_disk() routine includes a selection of /dev patterns,
which the agent uses for detecting hard drives.
So what does 'df' show?
> ** I have only dealt with MfD tables so far and the hrDevice table does not
> look like it has been created with the MfD confgiuration file via mib2c.
The hrDevice table is not really important here - what you should be looking
at is the hrDiskStorageTable.
Dave
---------------------------------
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders