Re: [tkined] Scotty asynchronous walk request Ids

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Tue, 30 Mar 1999 10:29:29 +0200

>>>>> Matthew Upton writes:

Matthew> Thanks for the quick response. I am interested in the
Matthew> request Ids to quickly identify what to do with the response;
Matthew> since I have one procedure that will be receiving all
Matthew> responses (I may be querying the same OID from different
Matthew> agents at the same time, so the OID is not sufficient to
Matthew> distinguish what to do with the result). I can just use %A
Matthew> to get the IP address to help me identify where to send the
Matthew> response.

I suggest to solve this problem without relying on the request ID.
There are several possibilities. You can use the IP address, the SNMP
session handle, or you can create your own "tag" which you pass to the
callback function in order to quickly identify the response.

I never really needed the request ID in my scripts. The only reason
for making the request ID available at all is that it helps to debug
things.
Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3289)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.