Re: SNMP beginner

Jordyn A. Buchanan (jordyn@bestweb.net)
Mon, 28 Jul 1997 09:05:48 -0400

At 8:45 PM -0400 7/26/97, Joe Hartley wrote:

>You seem to like MRTG, which I use to monitor my modem pools
>(http://www.brainiac.com/pool/) but I couldn't get a decent SNMP tool. The
>perl script that came with it is a pig, and I never got the cmu-snmp stuff to
>work. I ended up using pmwho piped through some greps and finally a wc to
>get a count of active lines and fake the output file that MRTG expected to
>build the graphs from! Runs 2-3 times as fast as the perl snmp walk.

In my experience, pmwho is also a very inefficient (and slow) way to query
boxes, especially when all you're interested in is a count of active lines.
This is how I used to do things, but it was taking well over a minute to
gather data from all of our servers (we have about 25 up and running right
now).

I switched to gathering data using the perl SNMP module and data collection
is now under two seconds. Some lose benchmarking indicates that the SNMP
code is about 30 - 50 times as fast as the pmwho-based code. I'll add the
caveat that my implementation of the pmwho-based query was probably less
than optimal in terms of efficiency, but the same holds true for the SNMP
code.

I don't think there's anyway that a pmwho-based query could be as fast as
SNMP, if only because the amount of data transfer is so much less with SNMP
as compared to pmwho. I also had less than optimal results with snmpwalk,
though.

Jordyn

|----------------------------------------------------------------|
|Jordyn A. Buchanan mailto:jordyn@bestweb.net |
|Bestweb Corporation http://www.bestweb.net |
|Senior System Administrator +1.914.271.4500 |
|----------------------------------------------------------------|