bottrap
< Prev Back to Table of Contents Next >

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 session, and zero or more id parameters specify the unique request identifiers returned by 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]
< Prev Back to Table of Contents Next >