[pysnmp-users] extracting values from responses
Brought to you by:
elie
From: Andrew G. <ak...@gm...> - 2017-09-11 15:37:40
|
Greetings: Using pysnmp 4.3.9 on python 2.7. I'm following the SNMPv3 example at > http://pysnmp.sourceforge.net/examples/current/v3arch/manager/cmdgen/get-v3.html How do I assign the returned value to a variable? When I issue a command like: rtnval = snmpEngine.transportDispatcher.runDispatcher() 1.3.6.1.4.1.10002.2.30.1.1.1.3.16793610.1.1 = -100 But, rtnval is empty: >>> type(rtnval) <type 'NoneType'> Is there anyway to extract the value (in this case -100)? Thank you. |