>>>>> "avdb" == Alex van den Bogaerdt <[EMAIL PROTECTED]> writes:
> Loading all the modules, such as SNMP_util and friends, together
> with perl itself does impact the machine.  I'm not talking a modern
> machine here, I'm talking home machine with 4 years of uptime.

Yes, but you could write a Perl script that loads the SNMP library
once, and then does your every-five-minutes stuff in an endless loop.

> Nah,  I usually do it quick and dirty:

> snmpget host public 2.2.1.10.2 2.2.1.16.2 | \
> [...]

For me, snmpget has significant startup overhead as well, because it
reads and parses a default set of MIB files.  Since you use a numeric
OID, you could prevent that by setting the environment variable MIBS
to the empty string when calling snmpget.  Possibly you'd have to
fully qualify the OID then (.1.3.6.1.2.2.1.10.2 2.2.1.16.2).
-- 
Simon.

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to