>>>>> On Fri, 23 Jul 2004 10:53:19 +0800, Anupama Qanungo <[EMAIL PROTECTED]> said:

Anupama> Now the problem comes when I try to set a value in a
Anupama> non-existant row. Since my program returns a NULL for that
Anupama> row - should it not show "variable does not exist"- instead
Anupama> snmpd crashes.

snmpd doesn't check to make sure the row exists.  That's because your
code should might allow for SETs to non-existent rows to create it.
Your code must properly detect non-existent rows (IE, check the row
data pointer to see if its null and set an error at that point).

Anupama> The second problem was the fact that snmpd would not start at some
Anupama> times - saw the log it gives udp 161 error - but when I do a ps I dont
Anupama> see any snmpd running - and I dont think I have any other process
Anupama> which uses that port number.

The command:

   lsof -i udp:161 

Should show you if something is using the port still.  Some OSes don't
handle port closing well and won't let anything reopen it for a while
after something crashes.


-- 
Wes Hardaker
Sparta


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to