EasyManuals Logo

Cisco Catalyst 2960 Series User Manual

Cisco Catalyst 2960 Series
2288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1936 background imageLoading...
Page #1936 background image
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
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.
Note
Syntax
cli_read_pattern fd ptn
Arguments
(Mandatory) The CLI channel handler.fd
(Mandatory) The pattern to be matched when reading
the command output from the channel.
ptn
Result String
All the contents read.
Set _cerrno
None
This Tcl command extension will block waiting for the specified pattern to show up in the contents read.Note
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
cli_read_pattern

Table of Contents

Other manuals for Cisco Catalyst 2960 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco Catalyst 2960 Series and is the answer not in the manual?

Cisco Catalyst 2960 Series Specifications

General IconGeneral
LayerLayer 2
Power over Ethernet (PoE)Available on some models
RAM128 MB
Flash Memory32 MB
MAC Address Table Size8000
Operating Temperature0°C to 45°C (32 to 113°F)
Ports24 or 48 x 10/100/1000

Related product manuals