Programmatic GET doesn't always work

"David Arthur" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <001f01c73c11$ff908380$500010ac@gx520>
Hello all,

I am trying to GET some information from a subagent programmatically, from
an application I am writing. I have the master agent (snmpd) running, and
the SMUX subagent from which I wish to GET information. My application also
contains an embedded AgentX subagent, to serve unrelated SNMP information.

When I get to the point of the programmatic GET, I have verified that the
master, SMUX, and AgentX agents are all running. My GET code goes into a
tight loop (apparently) as top shows my application using 99.9% CPU, and I
have verified that the place where this occurs is the snmp_synch_response
function call. Also, the tight loop never breaks, continues forever.

The weird part:
I added some code to have the app stop and wait for a kbhit before making
the snmp_synch_response call. If I let it run up to the kbhit point, then
open another shell and perform a manual GET of the data (snmpget), then
provide the kbhit for the app to continue, the programmatic GET works.
*When* the programmatic GET works, it works perfectly.

OS: SuSE Linux Enterprise Server 9
Net-SNMP: v5.3.1

Has anyone seen something like this? If so, please do tell!
Thank you in advance,
DWA


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.