![Cisco ASR 9000 Serie Скачать руководство пользователя страница 198](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679198.webp)
Result String
None
Set _cerrno
Cannot close the channel.
cli_exec
Writes the command to the specified channel handler to execute the command. Then reads the output of the
command from the channel and returns the output.
Syntax
cli_exec fd cmd
Arguments
(Mandatory) The command-line interface (CLI)
channel handler.
fd
(Mandatory) The CLI command to execute.
cmd
Result String
The output of the CLI command executed.
Set _cerrno
Error reading the channel.
cli_get_ttyname
Returns the real and pseudo tty names for a given TTY ID.
Syntax
cli_get_ttyname tty_id
Arguments
(Mandatory) The TTY ID returned from the
cli_open
command extension.
tty_id
Result String
pty %s tty %s
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
182
Configuring and Managing Embedded Event Manager Policies
CLI Library Command Extensions