This is a discussion on Re: synchronous versus asynchronous within the SNMP Coders forums, part of the Networking and Network Related category; Hi, thanks for your reply. By: -- btw, you would have to explain what you mean by "bare bones snmp ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
thanks for your reply. By: -- btw, you would have to explain what you mean by "bare bones snmp client whose only hook is the systems headers/libraries" -G -- I actually mean low-level api's. I want to code my own snmp client by using the same techniques (i assume) net-snmp uses. Gr, Alef On Nov 14, 2006, at 7:44 PM, G. S. Marzot wrote: > Alef Veld wrote: >> Hello, >> >> If i wanted to discover a large amount of hosts, which method would >> be better. How does asynchronous work? Does it just send a bunch of >> udp packets in a threaded fashion? >> >> It's just that i find the net-snmp library pretty difficult to >> understand, and i wonder if there are some bare bones snmp client >> whose only hook is the systems headers/libraries. >> > > > Async calls allow non-blocking sending of PDUs (see snmp_async_send > ()) and > provides functions to use within a select() based event loop (see > snmp_select_info()). > > I am not aware of a higher level API ... although snmplib api is > fairly high > level for general snmp client functionality. no matter what you're > going to have > to do the basic steps > > 1) init the library > 2)setup a session > 3)construct a pdu > 4)send it > 5)process the result > > If you are looking for a much higher level API, see the perl SNMP > module > included in the release. > > use SNMP; > $sess = new SNMP::Session(DestHost => localhost, Community => public); > $val = $sess->get('sysDescr.0'); > > btw, you would have to explain what you mean by "bare bones snmp > client whose > only hook is the systems headers/libraries" > > -G > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |