Home
You are not currently signed in.

MIB Smithy

  1. Up to Table of Contents

Pending Requests

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.

Syntax:

% snmpcmd pending

Where:

snmpcmd
is the name of the session.

Returns:

  • An integer representing the number of pending requests.

Example

% snmplib pending
0
% snmplib get -callback myCallback sysDescr.0
23
% snmplib pending
1
  1. Up to Table of Contents