On 3/27/2012 12:07 AM, Niels Baggesen wrote: > Den 27-03-2012 03:31, David Howland skrev: >> Warning: no access control information configured. >> (Config search path: >> /usr/pkg/etc/snmp:/usr/pkg/share/snmp:/usr/pkg/lib/snmp:/root/.snmp) >> It's unlikely this agent can serve any useful purpose in this state. >> Run "snmpconf -g basic_setup" to help you configure the snmpd.conf >> file for this agent. > > You need some access control in snmpd.conf! The easiest is > > rocommunity public > > /Niels >
Dammit all. The tutorial is just wrong. http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module Okay, new command: ./snmpd -C -f -Lo -d -DipfTable --rocommunity="public" udp:192.168.1.1:9999 Still doesn't work. Now it does respond to the request, but it is only with an error: "no such name error" -------------------------------------------------------- Received 49 byte packet from UDP: [192.168.1.20]:53454->[0.0.0.0]:0 0000: 30 2F 02 01 00 04 06 70 75 62 6C 69 63 A0 22 02 0/.....public.". 0016: 04 17 34 D7 1B 02 01 00 02 01 00 30 14 30 12 06 ..4........0.0.. 0032: 0E 2B 06 01 04 01 BF 08 CE 0F CE 0F 81 77 01 05 .+...........w.. 0048: 00 . Connection from UDP: [192.168.1.20]:53454->[0.0.0.0]:0 Received SNMP packet(s) from UDP: [192.168.1.20]:53454->[0.0.0.0]:0 GET message -- IPF-IPNAT-MIB::ipfInTable Sending 49 bytes to UDP: [192.168.1.20]:53454->[0.0.0.0]:0 0000: 30 2F 02 01 00 04 06 70 75 62 6C 69 63 A2 22 02 0/.....public.". 0016: 04 17 34 D7 1B 02 01 02 02 01 01 30 14 30 12 06 ..4........0.0.. 0032: 0E 2B 06 01 04 01 BF 08 CE 0F CE 0F 81 77 01 05 .+...........w.. 0048: 00 . -------------------------------------------------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
