twistedsnmp.test.simpleagent
index
/home/mcfletch/pylive/twistedsnmp/test/simpleagent.py

Simplistic agent to allow for interactive testing

 
Modules
       
twistedsnmp.agent
twistedsnmp.agentprotocol
twistedsnmp.bisectoidstore
pysnmp.proto.error
logging
pysnmp.asn1.oid
twisted.internet.error
pysnmp.proto.v1
pysnmp.proto.v2c

 
Functions
       
createStorage(oidsForTesting=[(OID( '.1.3.6.1.2.1.1.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.1.2.0' ), 32), (OID( '.1.3.6.1.2.1.1.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.1.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.2.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.2.2.0' ), 32), (OID( '.1.3.6.1.2.1.2.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.2.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.3.0.0' ), 32), (OID( '.1.3.6.1.2.1.3.1.0' ), 32), (OID( '.1.3.6.1.2.1.3.2.0' ), 32), (OID( '.1.3.6.1.2.1.3.3.0' ), 32), (OID( '.1.3.6.1.2.1.3.4.0' ), 32), (OID( '.1.3.6.1.2.1.3.5.0' ), 32), (OID( '.1.3.6.1.2.1.3.6.0' ), 32), (OID( '.1.3.6.1.2.1.3.7.0' ), 32), (OID( '.1.3.6.1.2.1.3.8.0' ), 32), (OID( '.1.3.6.1.2.1.3.9.0' ), 32), (OID( '.1.3.6.1.2.1.3.10.0' ), 32), (OID( '.1.3.6.1.2.1.3.11.0' ), 32), ...])
main()

 
Data
        i = 511
key = '.1.3.6.2.4.0'
reactor = <twisted.internet.selectreactor.SelectReactor instance>
value = OctetString('From Octet String')