Caching SNMP Info

Subhendu Ghosh sghosh at sghosh.org
Wed Jan 29 05:34:46 CET 2003


On Tue, 28 Jan 2003, Steve Bonds wrote:

> Does anyone know of a good way to cache SNMP info retrieved via the perl
> SNMP.pm module? (part of NET-SNMP aka UCD-SNMP)  I do a number of
> filesystem checks and each one retrieves the same OIDs but does differnent
> filters and comparisons.  Reducing the total SNMP traffic would be
> helpful.
> 
> So far, Google searches have failed me.
> 
> MRTG caches SNMP replies, so if I get desperate I can get out my Perl saw
> and some duct tape and merge in the SNMP caching code.  However, I'm
> hoping someone else has already done the work for me.  Anyone know?
> 
> Thanks,
> 
>   -- Steve Bonds
> 
> 
> 

Not quite sure about your question - but if you are looking at caching 
a value and on the next run using the current value and the cached value 
to do filters and comparisions - then you have to write the data out to a 
file.

Take a look at Cache::Cache  (perl-cache.sf.net)  

--

-sg



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list