Hi Dave, 1) Compiled the source of the latest realease for win32dll project (with the new extension).
2) Set the MIBDIRS environment variables to "C:\usr\mibs" and put it all there. Set the MIBS=ALL environment variable. Put the bin directory of the resulting source compilation in the path (a long path but still finds the execs). 3) When I try to run a command (example snmpget or snmpd) I get the following output: C:\usr>snmpget -v 1 -c public 127.0.0.1:1161 1.3.6.1.4.1.19278.14.1.2 MIB search path: C:\usr\mibs Cannot find module (SNMPv2-SMI): At line 5 in C:\usr\mibs/UDP-MIB.txt Cannot find module (INET-ADDRESS-MIB): At line 8 in C:\usr\mibs/UDP-MIB.txt Cannot find module (UDP-MIB): At line 1 in (none) Cannot find module (SNMPv2-TC): At line 37 in C:\usr\mibs/UCD-SNMP-MIB.txt Cannot find module (UCD-SNMP-MIB): At line 1 in (none) Cannot find module (UCD-SNMP-MIB-OLD): At line 1 in (none) Cannot find module (UCD-IPFWACC-MIB): At line 1 in (none) Cannot find module (UCD-IPFILTER-MIB): At line 1 in (none) Cannot find module (UCD-DLMOD-MIB): At line 1 in (none) Cannot find module (UCD-DISKIO-MIB): At line 1 in (none) Cannot find module (UCD-DEMO-MIB): At line 1 in (none) Cannot find module (IPV6-FLOW-LABEL-MIB): At line 15 in C:\usr\mibs/TUNNEL-MIB.txt Cannot find module (SNMPv2-MIB): At line 12 in C:\usr\mibs/IF-MIB.txt Cannot find module (IANAifType-MIB): At line 13 in C:\usr\mibs/IF-MIB.txt Cannot find module (IF-MIB): At line 18 in C:\usr\mibs/TUNNEL-MIB.txt Cannot find module (TUNNEL-MIB): At line 1 in (none) Cannot find module (TRANSPORT-ADDRESS-MIB): At line 1 in (none) Cannot find module (TCP-MIB): At line 1 in (none) Cannot find module (SNMPv2-TM): At line 1 in (none) Cannot find module (SNMPv2-CONF): At line 1 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in C:\usr\mibs/SNMP-VIEW-BASED-ACM-MIB.txt Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 1 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 13 in C:\usr\mibs/SNMP-USM-DH-OBJECTS-MIB.txt Cannot find module (SNMP-USM-DH-OBJECTS-MIB): At line 1 in (none) Cannot find module (SNMP-USM-AES-MIB): At line 1 in (none) Cannot find module (SNMP-TSM-MIB): At line 1 in (none) Cannot find module (SNMP-TARGET-MIB): At line 16 in C:\usr\mibs/SNMP-TLS-TM-MIB.txt Cannot find module (SNMP-TLS-TM-MIB): At line 1 in (none) Cannot find module (SNMP-PROXY-MIB): At line 1 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 1 in (none) Cannot find module (SNMP-MPD-MIB): At line 1 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 1 in (none) Cannot find module (SMUX-MIB): At line 1 in (none) Cannot find module (SCTP-MIB): At line 1 in (none) Cannot find module (RMON-MIB): At line 1 in (none) Cannot find module (RFC-1215): At line 1 in (none) Cannot find module (ONBOARD-MIB): At line 1 in (none) Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none) Cannot find module (NETWORK-SERVICES-MIB): At line 1 in (none) Cannot find module (NET-SNMP-MIB): At line 12 in C:\usr\mibs/NET-SNMP-VACM-MIB.txt Cannot find module (NET-SNMP-VACM-MIB): At line 1 in (none) Cannot find module (NET-SNMP-TC): At line 1 in (none) Cannot find module (NET-SNMP-SYSTEM-MIB): At line 1 in (none) Cannot find module (NET-SNMP-PERIODIC-NOTIFY-MIB): At line 1 in (none) Cannot find module (NET-SNMP-EXAMPLES-MIB): At line 11 in C:\usr\mibs/NET-SNMP-PASS-MIB.txt Cannot find module (NET-SNMP-PASS-MIB): At line 1 in (none) Cannot find module (NET-SNMP-MONITOR-MIB): At line 1 in (none) Cannot find module (NET-SNMP-AGENT-MIB): At line 8 in C:\usr\mibs/NET-SNMP-EXTEND-MIB.txt Cannot find module (NET-SNMP-EXTEND-MIB): At line 1 in (none) Cannot find module (MTA-MIB): At line 1 in (none) Cannot find module (LM-SENSORS-MIB): At line 1 in (none) Cannot find module (IPV6-TC): At line 7 in C:\usr\mibs/IPV6-UDP-MIB.txt Cannot find module (IPV6-UDP-MIB): At line 1 in (none) Cannot find module (IPV6-TCP-MIB): At line 1 in (none) Cannot find module (IPV6-MIB): At line 1 in (none) Cannot find module (IPV6-ICMP-MIB): At line 1 in (none) Cannot find module (IP-MIB): At line 1 in (none) Cannot find module (IANA-RTPROTO-MIB): At line 12 in C:\usr\mibs/IP-FORWARD-MIB.txt Cannot find module (IP-FORWARD-MIB): At line 1 in (none) Cannot find module (IF-INVERTED-STACK-MIB): At line 1 in (none) Cannot find module (IANA-LANGUAGE-MIB): At line 1 in (none) Cannot find module (IANA-ADDRESS-FAMILY-NUMBERS-MIB): At line 1 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 5 in C:\usr\mibs/HOST-RESOURCES-TYPES.txt Cannot find module (HOST-RESOURCES-TYPES): At line 1 in (none) Cannot find module (HCNUM-TC): At line 1 in (none) Cannot find module (EtherLike-MIB): At line 1 in (none) Cannot find module (DISMAN-PING-MIB): At line 22 in C:\usr\mibs/DISMAN-TRACEROUTE-MIB.txt Cannot find module (DISMAN-TRACEROUTE-MIB): At line 1 in (none) Cannot find module (DISMAN-SCRIPT-MIB): At line 1 in (none) Cannot find module (DISMAN-SCHEDULE-MIB): At line 1 in (none) Cannot find module (DISMAN-NSLOOKUP-MIB): At line 1 in (none) Cannot find module (DISMAN-EXPRESSION-MIB): At line 1 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none) Cannot find module (BRIDGE-MIB): At line 1 in (none) Cannot find module (AGENTX-MIB): At line 1 in (none) Timeout: No Response from 127.0.0.1:1161. 4) Questions: - Why can't it find the modules? What modules is it referring to? - How can I generate configuration files? Snmpconf.exe is not in the output directory anymore. Regards, Nuno Magalhães. Em 30-12-2012 21:52, Dave Shield escreveu: > On 30 December 2012 05:30, Nuno Magalhães <nuno.magalh...@inov.pt> wrote: >> Hi Dave, >> >> So, how do I extend the functionality of an agent in windows (i.e.: >> defining, monitoring and trapping new OID's). > The design of the Net-SNMP agent is such that a MIB module > (as generated by mib2c) can be used in one of three ways: > - compiled into the main SNMP agent > - as a dynamically loaded module (i.e. dlmod) > - as an AgentX subagent > > Personally, I tend to feel that compiling the module into the main > agent is the simplest way to get started. So you could take the > code that you were trying to load dynamically, and compile this > into the main agent directly. > See the section of the README.win32 file headed > "Microsoft Visual C++ - Extending the Agent" for more details. > (You could also use this description to omit the MIB modules > that you're not interested in, which would avoid having to > disable them using -I-....) > > > Dave > > > ----- > Não foram detectados vírus nesta mensagem. > Verificado por AVG - www.avg.com > Versão: 2013.0.2805 / Base de dados de Vírus: 2637/5996 - Data de Lançamento: > 12/29/12 > > ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ 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