On 01/11/06, Thomas Anders <[EMAIL PROTECTED]> wrote:
> Dave Shield wrote:
> >>> b) Should 'memAvailSwapTXT' and 'memAvailRealTXT' report the
> >>> amount of memory free, or the amount used?
> >>> The MIB object name implies one, the description the other!
> How does 5.3.x implement it?
On what architecture?
memory.c:
case MEMUSEDSWAPTXT:
return pst_buf.psd_avmtxt; // HP-UX
return total.t_avmtxt; // others
case MEMUSEDREALTXT:
return pst_buf.psd_armtxt; // HP-UX
return total.t_armtxt; // others
memory_hpux.c:
case MEMUSEDSWAPTXT:
return (psd.psd_vmtxt - psd.psd_avmtxt);
case MEMUSEDREALTXT:
return (psd.psd_rmtxt - psd.psd_armtxt);
All the other memory*.c files either don't implement these objects
at all, or return a dummy value (-1).
So of the two relevant implementations, one reports the amount of
memory/swap that's *not* being used (following the MIB name), and the
other reports the amount that *is* being used (following the description).
Not really a lot of help there :-)
Dave
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders