Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl and SNMP

by !unlike (Beadle)
on Jan 23, 2003 at 14:04 UTC ( [id://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. :)

!unlike

"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..)

    C.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-19 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found