Cli_Read_Line - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Configuring and Managing Embedded Event Manager Policies
Syntax
cli_read_line fd
Arguments
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
Note
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.
Syntax
cli_read_pattern fd ptn
Arguments
fd
ptn
Result String
All the contents read.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
CLI Library Command Extensions
(Mandatory) CLI channel handler.
(Mandatory) CLI channel handler.
(Mandatory) Pattern to be matched when reading the
command output from the channel.
185

Advertisement

Table of Contents
loading

Table of Contents