Arguments
None
Result String
"tty_id {%s} pty {%d} tty {%d} fd {%d}"
DescriptionEvent Type
TTY ID.tty_id
PTY device name.pty
TTY device name.tty
CLI channel handler.fd
Set _cerrno
•
Cannot get pty for EXEC.
•
Cannot create an EXEC CLI session.
•
Error reading the first prompt.
cli_read
Reads the command output from the specified command-line interface (CLI) channel handler until the pattern
of the device prompt occurs in the contents read. Returns all the contents read up to the match.
Syntax
cli_read fd
Arguments
(Mandatory) The CLI channel handler.fd
Result String
All the contents read.
Set _cerrno
Cannot get device name.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1852
cli_read