diff options
author | elie <elie> | 2015-09-14 05:20:24 +0000 |
---|---|---|
committer | elie <elie> | 2015-09-14 05:20:24 +0000 |
commit | 2f24177c361ba4d9deba2d7378f84aa96111db80 (patch) | |
tree | 383c282bfe661bef3eaf16077946124c0039d9ab /examples/v3arch/twisted/manager/cmdgen/get-v1.py | |
parent | 4397ac4bd10b626aa9355cf04ee0cdb410fe6030 (diff) | |
download | pysnmp-2f24177c361ba4d9deba2d7378f84aa96111db80.tar.gz |
* synchronous oneliner apps redesigned to offer Python generator-based
API along with a more comprehensive set of accepted parameters.
* massively documented (in Sphinx, NumPy style)
Diffstat (limited to 'examples/v3arch/twisted/manager/cmdgen/get-v1.py')
-rw-r--r-- | examples/v3arch/twisted/manager/cmdgen/get-v1.py | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/examples/v3arch/twisted/manager/cmdgen/get-v1.py b/examples/v3arch/twisted/manager/cmdgen/get-v1.py index 38428c6..2939f41 100644 --- a/examples/v3arch/twisted/manager/cmdgen/get-v1.py +++ b/examples/v3arch/twisted/manager/cmdgen/get-v1.py @@ -1,17 +1,20 @@ -# -# GET Command Generator -# -# Send a SNMP GET request -# with SNMPv1, community 'public' -# using Twisted framework for network transport -# over IPv4/UDP -# to an Agent at 195.218.195.228:161 -# for an OID in tuple form -# -# This script performs similar to the following Net-SNMP command: -# -# $ snmpget -v1 -c public -ObentU 195.218.195.228 1.3.6.1.2.1.1.1.0 -# +""" +SNMPv1 GET +++++++++++ + +Send SNMP GET request with the following options: + +* with SNMPv1, community 'public' +* using Twisted framework for network transport +* over IPv4/UDP +* to an Agent at 195.218.195.228:161 +* for an OID in tuple form + +This script performs similar to the following Net-SNMP command: + +| $ snmpget -v1 -c public -ObentU 195.218.195.228 1.3.6.1.2.1.1.1.0 + +"""# from twisted.internet import reactor, defer from pysnmp.entity import engine, config from pysnmp.entity.rfc3413.twisted import cmdgen |