FD.io VPP
v17.07.01-10-g3be13f0
Vector Packet Processing
|
Execute commands from file.
Executes a sequence of CLI commands which are read from a file.
If a command is unrecognised or otherwise invalid then the usual CLI feedback will be generated, however execution of subsequent commands from the file will continue.
Declaration: cli_exec (src/vlib/unix/cli.c line 2799)
Implementation: unix_cli_exec.
Show current session command history.
Displays the command history for the current session, if any.
Declaration: cli_unix_cli_show_history (src/vlib/unix/cli.c line 2911)
Implementation: unix_cli_show_history.
Exit CLI.
Terminates the current CLI session.
If VPP is running in interactive mode and this is the console session (that is, the session on stdin
) then this will also terminate VPP.
Declaration: unix_cli_quit_command (src/vlib/unix/cli.c line 2726)
Implementation: unix_cli_quit.
set terminal ansi [on|off].
Enables or disables the use of ANSI control sequences by this terminal. The default will vary based on terminal detection at the start of the session.
ANSI control sequences are used in a small number of places to provide, for example, color text output and to control the cursor in the pager.
Declaration: cli_unix_cli_set_terminal_ansi (src/vlib/unix/cli.c line 3135)
Implementation: unix_cli_set_terminal_ansi.
set terminal history [on|off] [limit <lines>].
Enables or disables the command history function of the current terminal. Generally this defaults to enabled.
This command also allows the maximum size of the history buffer for this session to be altered.
Declaration: cli_unix_cli_set_terminal_history (src/vlib/unix/cli.c line 3097)
Implementation: unix_cli_set_terminal_history.
set terminal pager [on|off] [limit <lines>].
Enables or disables the terminal pager for this session. Generally this defaults to enabled.
Additionally allows the pager buffer size to be set; though note that this value is set globally and not per session.
Declaration: cli_unix_cli_set_terminal_pager (src/vlib/unix/cli.c line 3034)
Implementation: unix_cli_set_terminal_pager.
Show current session terminal settings.
Displays various information about the state of the current terminal session.
vpp# show terminal
Terminal name: unix-cli-stdin
Terminal mode: char-by-char
Terminal width: 123
Terminal height: 48
ANSI capable: yes
History enabled: yes
History limit: 50
Pager enabled: yes
Pager limit: 100000
CRLF mode: LF
Declaration: cli_unix_cli_show_terminal (src/vlib/unix/cli.c line 2978)
Implementation: unix_cli_show_terminal.
Show Unix system call error history.
Declaration: cli_unix_show_errors (src/vlib/unix/cli.c line 2875)
Implementation: unix_show_errors.