Cisco Catalyst 2960 series Configuration Manual page 1936

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

cli_read_pattern
This Tcl command extension will block waiting for the end of line to show up in the contents read.
Note
cli_read_pattern
Reads the command output from the specified command-line interface (CLI) channel handler until the pattern
that is to be matched occurs in the contents read. Returns all the contents read up to the match.
The pattern matching logic attempts a match by looking at the command output data as it is delivered from
Note
the Cisco IOS command. The match is always done on the most recent 256 characters in the output buffer
unless there are fewer characters available, in which case the match is done on fewer characters. If more
than 256 characters in the output buffer are required for the match to succeed, the pattern will not match.
Syntax
cli_read_pattern fd ptn
Arguments
fd
ptn
Result String
All the contents read.
Set _cerrno
None
Note
This Tcl command extension will block waiting for the specified pattern to show up in the contents read.
cli_run
Iterates over the items in the clist and assumes that each one is a command-line-interface (CLI) command to
be executed in the enable mode. On success, returns the output of all executed commands and on failure,
returns error from the failure.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1854
(Mandatory) The CLI channel handler.
(Mandatory) The pattern to be matched when reading
the command output from the channel.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents