| < Prev | Back to Table of Contents | Next > |
It may be useful sometimes, when using asynchronous forms for SNMP request functions, to determine the number of "outstanding" requests (that is, requests that have been sent but have not yet received a response or timed out). In particular, this can be used to wait for all requests to time out before closing a custom tool, for example, so that callbacks are not triggered when they are no longer pertinent.
% snmpcmd pending
..where snmpcmd is the name of
session.
An integer representing the number of pending requests.
% snmplib pending 0 % snmplib get -callback myCallback sysDescr.0 23 % snmplib pending 1
| < Prev | Back to Table of Contents | Next > |