Home
You are not currently signed in.

MIB Smithy

  1. Up to Table of Contents

Cancelling Requests

Pending requests are those that have been sent to the agent but no response has yet been received back. Sometimes it is desireable to cancel pending requests if, for example, session configuration has changed or it is determined that no response will be received before the timeout occurs.

Syntax:

% snmpcmd cancel ?id ...?

Where:

snmpcmd
is the name of the session; and
id
are zero or more request identifiers (returned by prior asynchronous request calls) that are to be cancelled.

Returns:

  • Nothing.

Example - Cancel All

% foreach id [$sess pending] { $sess cancel $id }

...or...

% eval $sess cancel [$sess pending]

Example (Tcl 8.5+)

% $sess cancel {expand}[$sess pending]
  1. Up to Table of Contents