Re: How get OIDs from returned values in python net-snmp-5.4.2 module
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 25 March 2010 06:34, Alexey Kostyuk <[email protected]> wrote: > When I try to get it via python using this code: >>>> vals = sess.walk(vars) >>>> print vals[0:3] > ('2', '3', '3') > > the output output contains only returned values > > How it's possible to get OIDs of this values? I've no real experience with the Python interface, but try looking at the 'vars' variable following the walk, rather than 'vals'. A brief look at the documentation (python/README) includes the following: snmpwalk(<Varbind/VarList>, <Session args>)) - ..... Returns a tuple of values retrieved from the MIB below the Varbind passed in. ==> If a VarList is passed in it will be updated to contain a complete set of VarBinds created for the results of the walk. <== Dave ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users