•
cli_run, page 1854
•
cli_run_interactive, page 1855
•
cli_write, page 1856
cli_close
Closes the exec process and releases the vty and the specified channel handler connected to the command-line
interface (CLI).
Syntax
cli_close fd tty_id
Arguments
(Mandatory) The CLI channel handler.fd
(Mandatory) The TTY ID returned from the cli_open
command extension.
tty_id
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
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1850
cli_close