I can't get the snmpd agent I built to listed to connections. Here is what happens when I start it,
> sudo -i snmpd -f -Lo udp:161 -C -c /home/abraham/snmpd.conf NET-SNMP version 5.5 and no more output. It just stays stuck like that. But from another console on the same system I try this, > snmpget -v 2c -c private localhost sysUpTime.0 Timeout: No Response from localhost. > snmpget -v 2c -c private 127.0.0.1 sysUpTime.0 Timeout: No Response from 127.0.0.1. > It just returns with timeout - which doesn't make sense as I can see the snmpd agent is running using "ps -ae" command. To check the port settings I try sockstat and here is the result, > sudo sockstat USER PROCESS PID PROTO SOURCE ADDRESS FOREIGN ADDRESS STATE root sshd 531 tcp4 *:22 *:* LISTEN avahi avahi-daemon 548 udp4 *:5353 *:* CLOSED avahi avahi-daemon 548 udp4 *:60892 *:* CLOSED root dhclient 572 udp4 *:68 *:* CLOSED root cupsd 769 tcp4 127.0.0.1:631 *:* LISTEN root sshd 1191 tcp4 192.168.1.6:22 192.168.1.5:4167 ESTABLISHED root sshd 1262 tcp4 192.168.1.6:22 192.168.1.5:4167 ESTABLISHED root sshd 1302 tcp4 192.168.1.6:22 192.168.1.5:4170 ESTABLISHED root sshd 1366 tcp4 192.168.1.6:22 192.168.1.5:4170 ESTABLISHED root snmpd 1519 udp4 *:161 *:* CLOSED > >From the above (last line) it looks like the snmpd agent is doing SOMETHING on port 161, but it's in a CLOSED state. Shouldn't it be in LISTEN ? Can someone please hint me on what could be wrong ? I'm running net-snmp (ver 5.5) on Ubuntu10.04 (i386 of course!) running inside VirtualBox. I compiled it following the instructions in the INSTALL file. Puzzled, Abraham Varricatt ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
