Hi,
I am trying to get the dynamically loadable object example from here (
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Dynamically_Loadable_Object)
working on Windows with a DLL. I am building from source, version 5.7.3. It
seems to build fine, and in the debugger I see the object loaded and the
init function gets called.
When I query the object, I see this:
c:\Users\sesa273885\git\SnmpAgent\net-snmp\win32\bin\debug>snmpget -v 2c -c
publ
ic localhost NET-SNMP-TUTORIAL-MIB::nstAgentPluginObject.0
>NET-SNMP-TUTORIAL-MIB::nstAgentPluginObject.0 = No Such Object available
on this
agent at this OID
If I query sysDescr it works:
c:\Users\sesa273885\git\SnmpAgent\net-snmp\win32\bin\debug>snmpget -c
public loc
alhost SNMPv2-MIB::sysDescr.0
>SNMPv2-MIB::sysDescr.0 = STRING: Windows W7USR90HPDDGL 6.1.7601 Service
Pack 1
Professional Intel64 Family 6 Model 60 Stepping 3
snmptranslate can convert the values:
c:\Users\sesa273885\git\SnmpAgent\net-snmp\win32\bin\debug>snmptranslate
1.3.6.1
.4.1.8072.2.4.1.1.3.0
>NET-SNMP-TUTORIAL-MIB::nstAgentPluginObject.0
My snmpd.conf line for 'public' is:
rwcommunity public
When I start the daemon, I see:
C:\Users\sesa273885\git\SnmpAgent\net-snmp\win32\bin\debug>.\snmpd -f -L -d
-Dns
tAgentPluginObject,dlmod
registered debug token nstAgentPluginObject, 1
registered debug token dlmod, 1
dlmod: register mib
dlmod: dlmod_path: c:/usr/lib/dlmod
dlmod: dlmod_create_module
dlmod: dlmod_load_module nstAgentPluginObject:
C:\Users\sesa273885\git\SnmpAgent
\SnmpModules\nstAgentPluginObject\x64\Debug\nstAgentPluginObject.dll
NET-SNMP version 5.7.3
Sorry, I'm sure I'm missing something elementary; I would very much
appreciate help with this.
Craig Demel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users