MIB for Dummies (MFD) executable does not respond to snmpwalk/get
Kenneth Hung <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAAAyiaTy4NsamQ8_vzswgmPjtY7_xJdc+tRZrdEFLx52fkejDw@mail.gmail.com> |
Hi, I'm new to Linux. Following the SNMP MFD example ( http://www.net-snmp.org/wiki/index.php/MFD:ifTable:Testing), I'm writing an SNMP extension agent using the MIB for Dummies ( http://www.net-snmp.org/wiki/index.php/MIB_for_Dummies) config file (mib2c.mfd.conf). I successfully created my executable, adeSensorsTable, using my own adeSensorsTable.MIB (mib2c util auto-generated the C source code from adeSensorsTable.MIB which I compiled into an executable). Following the MFD:ifTable:Testing example, I then ran my executable: ./adeSensorsTable -f -L -DadeSensorsTable -M localhost:1161 It returns: No log handling enabled - turning on stderr logging registered debug token adeSensorsTable, 1 adeSensorsTable:init_adeSensorsTable: Registering adeSensorsTable as a mibs-for-dummies table. On a separate terminal I ran: snmpwalk -v 1 -c public localhost:1161 Timeout: No Response from localhost:1161 adeSensorsTable terminal would return: Connection from UDP: [127.0.0.1]:52684->[127.0.0.1] Connection from UDP: [127.0.0.1]:52684->[127.0.0.1] Connection from UDP: [127.0.0.1]:52684->[127.0.0.1] Connection from UDP: [127.0.0.1]:52684->[127.0.0.1] Connection from UDP: [127.0.0.1]:52684->[127.0.0.1] Connection from UDP: [127.0.0.1]:52684->[127.0.0.1] If I ran "snmpwalk -v 1 -c public localhost" I'd get pages of responses back. This is just the first few lines of the responses: SNMPv2-MIB::sysDescr.0 = STRING: Linux ken-Extensa-5620 3.2.0-67-generic #101-Ubuntu SMP Tue Jul 15 17:45:51 UTC 2014 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (21084) 0:03:30.84 SNMPv2-MIB::sysContact.0 = STRING: G. S. Marzot <[email protected]> SNMPv2-MIB::sysName.0 = STRING: ken-Extensa-5620 SNMPv2-MIB::sysLocation.0 = STRING: Unknown SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01 I tried to use snmpget to reach one of my extension agent objects using snmptranslate to find my object OID: snmptranslate -On xxxxx-MIB::adeSensorsTable.aDESensorsEntry.vrms and got: .1.3.6.1.4.1.43905.1.1.1.1.2 then I ran: snmpget -v 1 -c public localhost:1161 .1.3.6.1.4.1.43905.1.1.1.1.2 I'd get the same response: Connection from UDP: [127.0.0.1]:55176->[127.0.0.1] Connection from UDP: [127.0.0.1]:55176->[127.0.0.1] Connection from UDP: [127.0.0.1]:55176->[127.0.0.1] Connection from UDP: [127.0.0.1]:55176->[127.0.0.1] Connection from UDP: [127.0.0.1]:55176->[127.0.0.1] from adeSensorsTable executable. I'm not sure what I'm missing here. I'd appreciate if someone could provide some pointers to my timeout issue. Thank you in advance! -Ken ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ 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