![Cisco ASR 9000 Serie Скачать руководство пользователя страница 199](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679199.webp)
Set _cerrno
None
cli_open
Allocates a vty, creates an EXEC command-line interface (CLI) session, and connects the vty to a channel
handler. Returns an array including the channel handler.
Each call to
cli_open
initiates a Cisco IOS XR software EXEC session that allocates a Cisco IOS XR
software vty. The vty remains in use until the cli_close routine is called. Vtys are allocated from the pool
of vtys that are configured using the
line vty vty-pool
CLI configuration command. Be aware that the
cli_open routine fails when two or fewer vtys are available, preserving the remaining vtys for Telnet use.
Note
Syntax
cli_open
Arguments
None
Result String
"tty_id {%s} pty {%d} tty {%d} fd {%d}"
Description
Event 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 router prompt occurs in the contents read. Returns all the contents read up to the match.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
183
Configuring and Managing Embedded Event Manager Policies
CLI Library Command Extensions