This Tcl command extension will block waiting for the device prompt to show up in the contents read.
Note
cli_read_drain
Reads and drains the command output of the specified command-line interface (CLI) channel handler. Returns
all the contents read.
Syntax
cli_read_drain fd
Arguments
fd
Result String
All the contents read.
Set _cerrno
None
cli_read_line
Reads one line of the command output from the specified command-line interface (CLI) channel handler.
Returns the line read.
Syntax
cli_read_line fd
Arguments
fd
Result String
The line read.
Set _cerrno
None
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
(Mandatory) The CLI channel handler.
(Mandatory) The CLI channel handler.
cli_read_drain
1853