Re: python module for netsnmp

2007-04-17 Thread Bogdana Botez
Well, I tried another python snmp module and it worked from the first try. Still I don't know what was the problem with netsnmp, tough.. Bogdana Botez wrote: > You meant this: snmpget -v 2c -c private 127.1:8333 > MY-MIB::.0 > > This works. > > The command line tools all work with MY-MIB and the

Re: python module for netsnmp

2007-04-16 Thread Bogdana Botez
You meant this: snmpget -v 2c -c private 127.1:8333 MY-MIB::.0 This works. The command line tools all work with MY-MIB and the agent (snmpset, snmpget. snmpwalk etc). I also use a MIB browser and I'm able to manage it just fine. Only the python library seems to get blocked somewhere. Bogdana

Re: python module for netsnmp

2007-04-16 Thread Dave Shield
On 16/04/07, Bogdana Botez <[EMAIL PROTECTED]> wrote: > Q: > What happens if you try a "snmpget" request with the same numeric OID? > > Does that return a value or not? > > A: I've just checked - it returns None: > In [15]: oid = netsnmp.Varbind(,'0') > In [19]: netsnmp.snmpget(oid, Version=2, Rem

Re: python module for netsnmp

2007-04-16 Thread Andreea Bogdana Botez
Hi Dave, See my answers below. Q: > What happens if you try a "snmpget" request with the same numeric OID? > Does that return a value or not? A: I've just checked - it returns None: In [15]: oid = netsnmp.Varbind(,'0') In [19]: netsnmp.snmpget(oid, Version=2, RemotePort=8333, Community="private"

Re: python module for netsnmp

2007-04-16 Thread Bogdana Botez
Hi Dave, See my answers below. Q: > What happens if you try a "snmpget" request with the same numeric OID? > Does that return a value or not? A: I've just checked - it returns None: In [15]: oid = netsnmp.Varbind(,'0') In [19]: netsnmp.snmpget(oid, Version=2, RemotePort=8333, Community="privat

Re: python module for netsnmp

2007-04-16 Thread Dave Shield
On 16/04/07, Andreea Bogdana Botez <[EMAIL PROTECTED]> wrote: > But, when I try to do the same think using the python module: > >sess = netsnmp.Session(Version=2, DestHost='localhost', > Community='public') >sess.UseEnums = 1 >sess.UseLongNames = 1 >vars = netsnmp.Va