Re: Another python problem in cygwin

2008-01-03 Thread Dave Shield
On 26/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: >> It sounds suspiciously as if the python interface can't find the MIB >> definitions. Where is this file installed? > It is located in /usr/local/share/snmp/mibs directory or > (c:\tools\cygwin\usr\local\share\snmp\mibs from Windows'

Re: Another python problem in cygwin

2007-12-26 Thread Jack G Atkinson Jr
Dave Shield wrote: > On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > >>> It sounds suspiciously as if the python inferface can't find the MIB >>> definitions. Where is this file installed? >>> >> Do you mean the python file that has the OID? >> > > No - the MIB file

Re: Another python problem in cygwin

2007-12-21 Thread Dave Shield
On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: >> It sounds suspiciously as if the python inferface can't find the MIB >> definitions. Where is this file installed? > > Do you mean the python file that has the OID? No - the MIB file that defines the object adGenBridgeName. Probably

Re: Another python problem in cygwin

2007-12-21 Thread Jack G Atkinson Jr
Dave Shield wrote: > On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > >> What happens if you use >> >> var = >> Varbind('ADTRAN-GENERIC-BRIDGE-MIB::adGenBridgeName.23940101') >> >> What about a fully numeric OID? >> >> When I used the one you suggested, it does the same thing: u

Re: Another python problem in cygwin

2007-12-21 Thread Dave Shield
On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > What happens if you use > > var = > Varbind('ADTRAN-GENERIC-BRIDGE-MIB::adGenBridgeName.23940101') > > What about a fully numeric OID? > > When I used the one you suggested, it does the same thing: unknown. > The numeric oid works,

Re: Another python problem in cygwin

2007-12-21 Thread Jack G Atkinson Jr
Dave Shield wrote: > On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > >> var = Varbind('adGenBridgeName.23940101') >> snmpget(var,Version=2,DestHost='192.168.15.1',Community='public') >> error: get: unknown object ID (adGenBridgeName.23940101) >> > > What happens if you use >

Re: Another python problem in cygwin

2007-12-21 Thread Dave Shield
On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > var = Varbind('adGenBridgeName.23940101') > snmpget(var,Version=2,DestHost='192.168.15.1',Community='public') > error: get: unknown object ID (adGenBridgeName.23940101) What happens if you use var = Varbind('ADTRAN-GENERIC-BRIDGE-M