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
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 EXEC session that allocates a Cisco IOS vty line. The vty
remains in use until the
cli_close
routine is called. The vty lines are allocated from the pool of vty lines
that are configured using the
line vty
CLI configuration command. EEM will use a vty line when a vty
line is not being used by EEM and there are available vty lines. EEM will also use a vty line when EEM
is already using a vty line and there are three or more vty lines available. Be aware that the connection
will fail when fewer than three vty lines are available, preserving the remaining vty lines for Telnet use
Note
Syntax
cli_open
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1851
cli_get_ttyname
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......