On Fri, 23 Jul 2004 10:53:19 +0800 Anupama wrote:
AQ> The second problem was the fact that snmpd would not start at some times 
AQ> - saw the log it gives udp 161 error - but when I do a ps I dont see any 
AQ> snmpd running - and I dont think I have any other process which uses 
AQ> that port number.

If this is a restart after a crash or exit of snmpd, then there may be a
timeout before the OS releases the socket.

On way around this is to add this line to the top of snmplib/snmpUDPDomain.c :

   #define ALLOW_PORT_HIJACKING 1

This will make the agent use the SO_REUSEADDR sockopt, which, if supported by
the OS, will allow a socket to be re-used immediately.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to