I am having problems with getting proxying to work on net-snmp version 5.8 that I built for Windows 10. I followed the proxy guidelines at http://net-snmp.sourceforge.net/wiki/index.php/Snmpd_proxy and set up the attached snmpd.conf file where I am using test.net-snmp.org as the "switch" in the example. Note that I am proxying the entire tree of test.net-snmp.org to 1.4 as well as using context to proxy the entire tree, using the instructions in the proxy documentation page.
Proxying the entire tree works as expected: C:\Users\markw>snmpgetnext -v 2c -c public localhost 1.4 iso.4.6.1.2.1.1.1.0 = STRING: "test.net-snmp.org" I attached proxy-entire-tree.txt for the snmpd debug output. Proxying using contexts does not work as expected: C:\Users\markw>snmpgetnext -v 2c -c cmty_myswitch localhost 1.3 Timeout: No Response from localhost. I attached proxy-using-context-mapping.txt for the snmpd debug output. Any ideas of what I'm doing wrong? Thanks. Mark.
C:\Users\markw>snmpd -d -Dnetsnmp_udp_parse_security,netsnmp_udp6_parse_security,netsnmp_unix_parse_security,tls,tsm. registered debug token netsnmp_udp_parse_security, 1 registered debug token netsnmp_udp6_parse_security, 1 registered debug token netsnmp_unix_parse_security, 1 registered debug token tls, 1 registered debug token tsm., 1 netsnmp_udp_parse_security: <"public", 0.0.0.0/0.0.0.0> => "comm3" netsnmp_udp_parse_security: <"private", 0.0.0.0/0.0.0.0> => "comm4" netsnmp_udp_parse_security: <"cmty_myswitch", 0.0.0.0/0.0.0.0> => "notConfigUser" NET-SNMP version 5.8 Received 41 byte packet from UDP: [127.0.0.1]:64530->[127.0.0.1]:161 0000: 30 27 02 01 01 04 0D 63 6D 74 79 5F 6D 79 73 77 0'.....cmty_mysw 0016: 69 74 63 68 A1 13 02 02 6E A5 02 01 00 02 01 00 itch¡...n¥...... 0032: 30 07 30 05 06 01 2B 05 00 0.0...+.. Received 41 byte packet from UDP: [127.0.0.1]:64530->[127.0.0.1]:161 0000: 30 27 02 01 01 04 0D 63 6D 74 79 5F 6D 79 73 77 0'.....cmty_mysw 0016: 69 74 63 68 A1 13 02 02 6E A5 02 01 00 02 01 00 itch¡...n¥...... 0032: 30 07 30 05 06 01 2B 05 00 0.0...+.. Received 41 byte packet from UDP: [127.0.0.1]:64530->[127.0.0.1]:161 0000: 30 27 02 01 01 04 0D 63 6D 74 79 5F 6D 79 73 77 0'.....cmty_mysw 0016: 69 74 63 68 A1 13 02 02 6E A5 02 01 00 02 01 00 itch¡...n¥...... 0032: 30 07 30 05 06 01 2B 05 00 0.0...+.. Received 41 byte packet from UDP: [127.0.0.1]:64530->[127.0.0.1]:161 0000: 30 27 02 01 01 04 0D 63 6D 74 79 5F 6D 79 73 77 0'.....cmty_mysw 0016: 69 74 63 68 A1 13 02 02 6E A5 02 01 00 02 01 00 itch¡...n¥...... 0032: 30 07 30 05 06 01 2B 05 00 0.0...+.. Received 41 byte packet from UDP: [127.0.0.1]:64530->[127.0.0.1]:161 0000: 30 27 02 01 01 04 0D 63 6D 74 79 5F 6D 79 73 77 0'.....cmty_mysw 0016: 69 74 63 68 A1 13 02 02 6E A5 02 01 00 02 01 00 itch¡...n¥...... 0032: 30 07 30 05 06 01 2B 05 00 0.0...+.. Received 41 byte packet from UDP: [127.0.0.1]:64530->[127.0.0.1]:161 0000: 30 27 02 01 01 04 0D 63 6D 74 79 5F 6D 79 73 77 0'.....cmty_mysw 0016: 69 74 63 68 A1 13 02 02 6E A5 02 01 00 02 01 00 itch¡...n¥...... 0032: 30 07 30 05 06 01 2B 05 00 0.0...+..
snmpd.conf
Description: Binary data
C:\Users\markw>snmpd -d -Dnetsnmp_udp_parse_security,netsnmp_udp6_parse_security,netsnmp_unix_parse_security,tls,tsm. registered debug token netsnmp_udp_parse_security, 1 registered debug token netsnmp_udp6_parse_security, 1 registered debug token netsnmp_unix_parse_security, 1 registered debug token tls, 1 registered debug token tsm., 1 netsnmp_udp_parse_security: <"public", 0.0.0.0/0.0.0.0> => "comm3" netsnmp_udp_parse_security: <"private", 0.0.0.0/0.0.0.0> => "comm4" netsnmp_udp_parse_security: <"cmty_myswitch", 0.0.0.0/0.0.0.0> => "notConfigUser" NET-SNMP version 5.8 Received 34 byte packet from UDP: [127.0.0.1]:58693->[127.0.0.1]:161 0000: 30 20 02 01 01 04 06 70 75 62 6C 69 63 A1 13 02 0 .....public¡.. 0016: 02 69 A3 02 01 00 02 01 00 30 07 30 05 06 01 2C .i£......0.0..., 0032: 05 00 .. Sending 38 bytes to UDP: [192.94.214.205]:161->[0.0.0.0]:0 0000: 30 24 02 01 01 04 0A 64 65 6D 6F 70 75 62 6C 69 0$.....demopubli 0016: 63 A1 13 02 02 6B FE 02 01 00 02 01 00 30 07 30 c¡...k_......0.0 0032: 05 06 01 2B 05 00 ...+.. Received 62 byte packet from UDP: [192.94.214.205]:161->[0.0.0.0]:58694 0000: 30 3C 02 01 01 04 0A 64 65 6D 6F 70 75 62 6C 69 0<.....demopubli 0016: 63 A2 2B 02 02 6B FE 02 01 00 02 01 00 30 1F 30 c¢+..k_......0.0 0032: 1D 06 08 2B 06 01 02 01 01 01 00 04 11 74 65 73 ...+.........tes 0048: 74 2E 6E 65 74 2D 73 6E 6D 70 2E 6F 72 67 t.net-snmp.org Sending 58 bytes to UDP: [127.0.0.1]:58693->[127.0.0.1]:161 0000: 30 38 02 01 01 04 06 70 75 62 6C 69 63 A2 2B 02 08.....public¢+. 0016: 02 69 A3 02 01 00 02 01 00 30 1F 30 1D 06 08 2C .i£......0.0..., 0032: 06 01 02 01 01 01 00 04 11 74 65 73 74 2E 6E 65 .........test.ne 0048: 74 2D 73 6E 6D 70 2E 6F 72 67 t-snmp.org
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders