![Cisco ASR 9000 Serie Скачать руководство пользователя страница 201](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679201.webp)
Syntax
cli_read_line fd
Arguments
(Mandatory) CLI channel handler.
fd
Result String
The line read.
Set _cerrno
None
This Tcl command extension blocks 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 XR software 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) CLI channel handler.
fd
(Mandatory) Pattern to be matched when reading the
command output from the channel.
ptn
Result String
All the contents read.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
185
Configuring and Managing Embedded Event Manager Policies
CLI Library Command Extensions