Okay, now that modules are loading...
I can do a normal snmpget from the cygwin command prompt on a custom
mib. It works great. However, if I try to do the same thing in python,
it gives me an "error: get unknown object ID".
Example from the prompt:
snmpget -v2c -c public 192.168.15.1 adGenBridgeName.23940101
ADTRAN-GENERIC-BRIDGE-MIB::adGenBridgeName.23940101 = STRING: TEST
Example from python:
from netsnmp import *
var = Varbind('adGenBridgeName.23940101')
snmpget(var,Version=2,DestHost='192.168.15.1',Community='public')
error: get: unknown object ID (adGenBridgeName.23940101)
Any ideas?
BTW, doing a 'sysDescr.0' works fine as recommended in the documentation
to verify that netsnmp is working in python.
--
------------------------------------------------------------------
Jack G. Atkinson Jr.
[EMAIL PROTECTED]
Romans 5:6-10 - God loved us while we were unlovable!
Luke 12:36-47 - Be ready!
------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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