Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Perl and SNMP

by !unlike (Beadle)
on Jan 23, 2003 at 14:04 UTC ( #229312=note: print w/replies, xml ) Need Help??

in reply to Perl and SNMP

Assuming that the IPC between your users query and the sub-agent uses either a filehandle or socket, then How do I print to more than one file at once? might be of some use.

You could use this trick so that if the sub-agent already has a handle open (i.e. it is currently in the process of getting the required data) it could just tack on to the handle the other users query. That way the sub-agent could satify both requests with just one lookup.

Of course I'm making assumptions about how the IPC works and so this advice could be totally useless. :)


"The price if ignorance, which is of course that you must learn from those who know." Scorates (paraphrased)

Replies are listed 'Best First'.
Re: Re: Perl and SNMP
by castaway (Parson) on Jan 24, 2003 at 12:33 UTC
    Hmm, 'fraid not, I think. The problem is that the subagent doesn't call the script for the users request, if its waiting for an answer from a previous call. It uses popen() to open a pipe to the script and then waits for it to return. (Not sure if/how I can change this yet..)


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://229312]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2023-05-28 12:56 GMT
Find Nodes?
    Voting Booth?

    No recent polls found