Difference between revisions of "FAQ:General 17"

From Net-SNMP Wiki
Jump to: navigation, search
(Latest FAQ revision - preparing for 5.5 release)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
= Is Net-SNMP thread safe? =
+
= Where can I find more information about network management? =
  
Strictly speaking, no.  However, it should be possible to use the
+
{{FAQ:General_16}}
library in a thread-safe manner.  This is covered in detail in the file
+
README.thread (shipped with the standard distribution), but can be
+
summarised as follows:
+
 
+
* Call 'snmp_sess_init()' prior to activating any threads.<BR>This reads in and parses MIB information (which isn't thread-safe) as well as preparing a session structure for subsequent use.
+
 
+
* Open an SNMP session using 'snmp_sess_open()' which returns an opaque session handle, which is essentially independent of any other sessions (regardless of thread).
+
 
+
* Resource locking is not handled within the library, and is the responsibility of the main application.
+
 
+
The applications and the agent have not been designed for threaded use.
+
It should be safe to use the agent library to embed a subagent within
+
a threaded application as long as *all* SNMP-related activity (including
+
generating traps, and parsing MIBs) is handled within a single thread.
+
 
+
Unfortunately, the SNMPv3 support was added about the same time as
+
the thread support and since they occurred in parallel the SNMPv3
+
support was never checked for multi-threading correctness.  It is
+
most likely that it is not thread-safe at this time.
+
  
 
     [[FAQ:General]]
 
     [[FAQ:General]]
 
     {{FAQ:General}}
 
     {{FAQ:General}}

Latest revision as of 09:02, 21 July 2009

Where can I find more information about network management?

There are a number of sites with network management information on the World Wide Web. Some of the most useful are

   http://www.simpleweb.org/
http://www.snmplink.org/
http://www.mibdepot.com/

The SNMP Usenet newsgroup is now mostly defunct, but although the FAQ hasn't been updated for a while, it still contains a large amount of useful information relating to SNMP, including books, software, other sites, how to get an enterprise number, etc, etc. This is available from

   ftp://rtfm.mit.edu/pub/usenet/comp.protocols.snmp/

or via any of the Web sites above.

   FAQ:General
   
  1. What is it?
  2. Where can I get it?
  3. What documentation is available?
  4. Are there binaries available?
  5. What's the difference between UCD-SNMP and Net-SNMP?
  6. What operating systems does it run on?
  7. What happens if mine isn't listed?
  8. Does it run on Windows?
  9. How do I find out about new releases?
  10. How can I find out what other people are doing?
  11. How do I submit a patch or bug report?
  12. Can I reuse the code in my commercial application?
  13. What's the difference between SNMPv1, SNMPv2 and SNMPv3?
    What's the difference between SNMPv2 and SNMPv2c?
  14. Which versions of SNMP are supported in this package?
  15. Can I use SNMPv1 requests with an SNMPv2 MIB (or vice versa)?
  16. How can I monitor my system with SNMP?
  17. Where can I find more information about network management?
  18. What ports does SNMP use?
  19. Is Net-SNMP thread safe?