RE: running snmpd

"Jelena Savic" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <069B6B31F6201B4389D7EEB9AD827BCA02F421A9@otis.burlington.evertz.tv>
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Jelena Savic

>> I have a script which starts up snmpd and then another 
>> process which talks to snmpd
>> I have traced the snmpd, and the parent process  forks and 
>> exits before the socket is ready..
>> 
>> Is there a way that i can notify my process when snmpd is 
>> ready without arbitrarily sleeping for some time before 
>> starting up the second process?

>$ snmpgetnext [valid creds] -t 10 -r 60 .1.3
>
>	...will wait up to ten minutes for a valid response, retrying every ten seconds.  Check the return code - 0 
>menas the agent is up, anything else means abort.
>
>
>	HTH,
>
>Mike



How do i check the return code of snmpgetnext?

Thanks


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.