Cli_Exec; Cli_Get_Ttyname - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

CLI Library Command Extensions
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
fd
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
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
(Mandatory) The command-line interface (CLI)
channel handler.
(Mandatory) The CLI command to execute.
(Mandatory) The TTY ID returned from the cli_open
command extension.

Advertisement

Table of Contents
loading

Table of Contents