On Tue, 5 Sept 2023 at 22:16, Teus Benschop <teusjanne...@gmail.com> wrote:
> I could not find a way to display the port number, also not using the > various debug tokens. > I ran snmpd as snmpd -f -Le -Dnetsnmp_udp 2000,3000 and got netsnmp_udp: recvfrom fd 6 got 41 bytes (from UDP: [127.0.0.1]:36600->[127.0.0.1]:2000) or port 3000 if I targeted that. Port 36600 is my snmpwalk UDP port (i.e. the "remote" address) and 2000 is what the agent was listening to. That information looks like its filled in by netsnmp_udp_recvfrom() - Craig
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders