File: README

package info (click to toggle)
snmpkit 0.9-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,928 kB
  • ctags: 338
  • sloc: sh: 10,345; cpp: 2,342; makefile: 100; ansic: 1
file content (113 lines) | stat: -rw-r--r-- 4,514 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
			SNMPKIT 0.4 (and up)

What is it:
-----------

SNMPkit is a set of routines for polling snmp v1 devices. The intent
of this toolkit is to make certain kinds of queries very simple. The
two things that snmpkit is designed to do very simply is fill
structures, and requests to massive numbers of hosts. There are other
SNMP toolkits available availble but none that I know of deal with
these two issues quite as well.

   Filling structures:
   -------------------
Because there is a packet that has to go somewhere and come back for
every SNMP request, it is a good idea to combine multiple requests
into one packet. Also in many cases SNMP objects are arranged in
tables. An individual row might contain several objects. This maps
really neatly to C structures. So snmpkit allows you to define what
objects you want where in the structure and then does the query and
returns to you a filled structure. In the case where there is a table
with multiple rows, snmpkit will return to you a collection of the
structures filled with the appropriate data.

   Querying massive numbers of hosts:
   ----------------------------------
Most of the snmpkits that I looked at either expect you to do your
queries sequentially or allocate one socket per device. When you are
quering literally hundreds or thousands of hosts, then there are
problems with both of these approaches. In the case of the first one
where you do your queries sequentially the problem is time and hosts
that might be down. If you are quering 3000 devices and 5 percent of
them are down, then the 30 seconds do all the retries to make sure
that it isn't just a slow link or a dropped or misrouted UDP packet
adds up. The problem with the second approach is the load that it puts
on your computer. Since there is a 1-1 mapping between the socket and
the host that you are quering, you can quickly run out of
sockets. SNMPkit solves this problem by multiplexing all the requests
on one socket.

Installation
------------

See the INSTALL file.

Licencing
---------

See the COPYING file.

Other SNMP resources
--------------------
Brief History of SNMP - http://www.nas.nasa.gov/Groups/LAN/ClassNotes/snmp/
SNMP FAQ - http://www.landfield.com/faqs/snmp-faq/
NET-SNMP - Another SNMP library with different goals. 
           http://net-snmp.sourceforge.net/ 

  Reference RFC's 
  ---------------
SNMP version 1
rfc1089 - SNMP over Ethernet
rfc1157 - SNMP : Simple Network Management Protocol
rfc1187 - Bulk table retrieval with the SNMP
rfc1212 - Concise MIB definitions.
rfc1213 - MIB-II : Management Information Base for network management of TCP/IP based internets
rfc1215 - Convention for defining traps for use with SNMP
rfc1228 - SNMP-DPI : Simple Network Management Protocol Distributed Program Interface
rfc1270 - SNMP communications services
rfc1303 - A Convention for Describing SNMP-based Agents
rfc1351 - SNMP Administrative Model
rfc1352 - SNMP Security Protocols
rfc1353 - Definitions of Managed Objects for Administration of SNMP Parties

(note: this library only implements version 1 of SNMP)
SNMP version 2 
rfc1442 - Structure of Management Information for SNMP version 2
rfc1443 - Textual Conventions for SNMP version 2
rfc1444 - Conformance Statements for SNMP version 2
rfc1445 - Administrative Model for SNMP version 2
rfc1446 - Security Protocols for SNMP version 2
rfc1447 - Party MIB for SNMP version 2
rfc1448 - Protocol Operations for SNMP version 2
rfc1449 - Transport Mappings for SNMP version 2
rfc1450 - Management Information Base for SNMP version 2
rfc1503 - Algorithms for Automating Administration in SNMP version 2 Managers
rfc1759 - Common printer mib.I

SNMP version 3
rfc2570 - Introduction to Version 3 of the Internet standard Network 
          Management Framework
rfc2571 - An Architecture for Describing SNMP Management Frameworks 
rfc2572 - Message Processing and Dispatching for the Simple Network Management
          Protocol (SNMP) 
rfc2573 - SNMPv3 Applications 
rfc2574 - User-based Security Model (USM) for version 3 of the Simple Network 
          Management Protocol (SNMPv3)
rfc2575 - View-based Access Control Model (VACM) for the Simple Network 
          Management Protocol (SNMP) 
rfc2576 - Coexistence between SNMP versions

Acknowlagements
---------------

Cisco Systems for giving me the time to write the original npadmin
code.

VA Linux Systems for giving me the time to abstract snmpkit out of
npadmin.

Hewlett-Packard for paying for the project that needed snmpkit to be
written.