Administration Commands : cli

cli
Description
Use the cli command to configure CLI shell options.
Syntax
cli clear-history
cli default allow-all-show {enable | disable}
cli default auto-logout <number of minutes>
no cli default auto-logout
cli session auto-logout <number of minutes>
no cli session auto-logout
cli session paging enable
no cli session paging
enable
cli session terminal length <number of lines>
cli session terminal type {xterm | ansi | vt100}
no cli session terminal type
cli session terminal width <number of characters>
Arguments
default auto-logout <number of minutes>
Configures—for all future sessions—the amount of time for keyboard inactivity before automatically logging out a user.
The default auto-logout setting is 15 minutes.
Use the no form of this command to prevent users from being automatically logged out because of keyboard inactivity.
session auto-logout <number of minutes>
Configures—for this session only—how long the keyboard can be inactive before automatically logging out a user.
Use the no form of this command to prevent users from being automatically logged out because of keyboard inactivity.
Configures—for this session only—the ability to view text one screen at a time. Paging is enabled, by default.
Use the no form of this command to prevent parsing of text into individual, sequential screens.
session terminal length <number of lines>
Sets—for this session only—the number of lines of text for this terminal. The default terminal length is 24 rows.
Sets—for this session only—the terminal type:
xterm – Sets terminal type to xterm.
ansi – Sets terminal type to ANSI.
vt100 – Sets terminal type to VT100.
The default type is xterm. Use the no form of the command to clear the terminal type.
session terminal width <number of characters>
Sets—for this session only—the maximum number of characters in a line.
Defaults
n
n
n
n
n
Command Mode
User EXEC Mode
Privileged EXEC Mode
Global Configuration Mode
See Also
See “show cli”.
Usage Guidelines
None.
Examples
To set 1.5 hours as the maximum time a session will last without keyboard activity, for this session only:
(config) # cli session auto-logout 75
To set the number of lines of text per page to 30 rows:
(config) # cli session terminal length 30

Please send comments or suggestions regarding user documentation to techpubs@silver-peak.com.