@@ -19,15 +19,14 @@ Features
19
19
Managed Objects
20
20
* Complete SNMP entity implementation
21
21
* USM Extended Security Options support (3DES, 192/256-bit AES encryption)
22
- * Extensible network transports framework (UDP/IPv4, UDP/IPv6 and UNIX domain
23
- sockets already implemented)
22
+ * Extensible network transports framework (UDP/IPv4, UDP/IPv6)
24
23
* Asynchronous socket-based IO API support
25
24
* [ Twisted] ( http://twistedmatrix.com ) , [ Asyncio] ( https://docs.python.org/3/library/asyncio.html )
26
25
and [ Trollius] ( http://trollius.readthedocs.org/index.html ) integration
27
26
* [ PySMI] ( http://pysmi.sf.net ) integration for dynamic MIB compilation
28
27
* Python eggs and py2exe friendly
29
28
* 100% Python, works with Python 2.4 though 3.6
30
- * MT-safe (only if run locally to a thread)
29
+ * MT-safe (if SnmpEngine is thread-local )
31
30
32
31
Features, specific to SNMPv3 model include:
33
32
@@ -69,14 +68,14 @@ and used in the very similar manner as conventional Net-SNMP tools:
69
68
70
69
``` bash
71
70
$ snmpget.py -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 demo.snmplabs.com sysDescr.0
72
- SNMPv2-MIB::sysDescr.0 = DisplayString: SunOS zeus.snmplabs.com 4.1.3_U1 1 sun4m
71
+ SNMPv2-MIB::sysDescr.0 = STRING: Linux zeus 4.8.6.5-smp # 2 SMP Sun Nov 13 14:58:11 CDT 2016 i686
73
72
```
74
73
75
74
Examples
76
75
--------
77
76
78
- PySNMP is designed highly modular and implements many programming interfaces. Most
79
- high-level and easy to use API is called * hlapi* and can be used like this :
77
+ PySNMP is designed in a layered fashion. Top-level and easiest to use API is known as
78
+ * hlapi* . Here's a quick example on how to SNMP GET :
80
79
81
80
``` python
82
81
from pysnmp.hlapi import *
99
98
print (' = ' .join([x.prettyPrint() for x in varBind]))
100
99
```
101
100
102
- or, to send SNMP TRAP:
101
+ This is how send SNMP TRAP:
103
102
104
103
``` python
105
104
from pysnmp.hlapi import *
@@ -123,7 +122,7 @@ if errorIndication:
123
122
124
123
We maintain publicly available SNMP Agent and TRAP sink at
125
124
[ demo.snmplabs.com] ( http://snmpsim.sourceforge.net/public-snmp-simulator.html ) . You are
126
- welcome to play with it while experimenting with your PySNMP scripts .
125
+ welcome to use it while experimenting with whatever SNMP software you deal with .
127
126
128
127
``` bash
129
128
$ python3 examples/hlapi/asyncore/sync/manager/cmdgen/usm-sha-aes128.py
@@ -135,7 +134,7 @@ SNMPv2-MIB::snmpTrapOID.0 = SNMPv2-MIB::warmStart
135
134
SNMPv2-MIB::sysName.0 = system name
136
135
```
137
136
138
- Other than that, PySNMP is capable to automatically fetch required MIBs from HTTP, FTP sites
137
+ Other than that, PySNMP is capable to automatically fetch and use required MIBs from HTTP, FTP sites
139
138
or local directories. You could configure any MIB source available to you (including
140
139
[ this one] ( http://mibs.snmplabs.com/asn1/ ) ) for that purpose.
141
140
0 commit comments