Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: RFC: A module for SNMP polling of thousands of nodes simultaneously

by Anonymous Monk
on Jan 16, 2008 at 16:32 UTC ( [id://662708]=note: print w/replies, xml ) Need Help??


in reply to RFC: A module for SNMP polling of thousands of nodes simultaneously

Hercynium here, posting as anonymous since the XP should go to the good Mr. g0n for this...

He pointed out to me in the CB a CPAN dist. known as SNMP::Effective, which serves the same purpose as my code - and looks to me substantially more mature. I'm going to try it out in the next few days and report back what I think

I stated above that I had tried every alternative, but I was wrong. I realize now that I skipped SNMP::Effective in my search because I thought I had already looked at it and dismissed it as not being the right tool - and I was right... for a different project.

For the current project, I almost wish I hadn't missed it... *almost*, because I *did* learn a whole bunch about closures and callbacks and the internals of the SNMP module in my efforts!
  • Comment on Re: RFC: A module for SNMP polling of thousands of nodes simultaneously

Replies are listed 'Best First'.
Re^2: RFC: A module for SNMP polling of thousands of nodes simultaneously
by Hercynium (Hermit) on Jan 22, 2008 at 05:38 UTC
    My current usage of SNMP::Effective may not be as optimal as it could. I'm going to try again with some better-tuned code, but here's what I've got so far...

    (please note - I haven't verified if the SNMP query results are correct - it's rather late and I'm bushed, so I'm making a big assumption that they are...)

    The average run-time for the same 1000 nodes is 125 - 130 seconds, at about 25% CPU, using 50 simultaneous sessions.

    It's certainly not an order of magnitude of difference, however, on a smaller set of nodes, like 100, both SNMP::Effective and my own code are neck-in-neck at about 7 seconds. This leads me to hypothesize that my code *may* scale better as-it-is, but that theory will require more testing and information. Also, as I (or other hackers) find bugs, add features, etc... the scaling factors may change enough that SNMP::Session will truly be the faster of the two.

    Right now, I still maintain that SNMP::Effective is substantially more mature, robust, and well-tested than what I've written... but it currently seems that *I* am faster :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://662708]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-19 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found