[Bug 966552] [NEW] error with netsnmp.snmpwalk in libsnmp-python

CheungTiFan 966552 at bugs.launchpad.net
Tue Mar 27 20:18:11 UTC 2012


Public bug reported:

Here's the python code:

import netsnmp
oid = netsnmp.Varbind('sysDescr')
result = netsnmp.snmpwalk(oid, Version = 2, DestHost="localhost", Community="public")

and, here's the output
[L:root at net-monitor] /opt/ip-mgmt# python test.py 
error: walk: unknown python error (varlist)#

also,

[L:root at net-monitor] /opt/ip-mgmt# python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import netsnmp
>>> oid = netsnmp.Varbind('sysDescr')
>>> result = netsnmp.snmpwalk(oid, Version = 2, DestHost="localhost", Community="public")
error: walk: unknown python error (varlist)>>> 
TypeError: expected string or Unicode object, NoneType found

(I pressed enter and TypeError line occured)

and,

[L:root at net-monitor] /opt/ip-mgmt# snmpwalk -v2c -c public localhost sysDescr
SNMPv2-MIB::sysDescr.0 = STRING: Linux net-monitor 2.6.32-37-server #81-Ubuntu SMP Fri Dec 2 20:49:12 UTC 2011 x86_64

So SNMP works.

System: Lucid amd64, with the most current packages.

** Affects: net-snmp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in Ubuntu.
https://bugs.launchpad.net/bugs/966552

Title:
  error with netsnmp.snmpwalk in libsnmp-python

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/966552/+subscriptions



More information about the Ubuntu-server-bugs mailing list