2-9
Cisco SCE8000 Software Configuration Guide, Rel 3.1.6S
OL-16479-01
Chapter 2 Command Line Interface
Managing Command Output
Tab Completion
The CLI interface features tab completion. When you type in the first letters of a command and type
<Tab>
, the system automatically fills in the rest of the command or keyword. This feature works only
when there is one command that could be possible using the starting letters.
Example:
The letters
snm
followed by
<Tab> will
be completed to the command
snmp-server
.
SCE(config)#
snm
<Tab>
SCE(config)#snmp-server
If you type
<Enter> instead
of
<Tab>
, and there is no ambiguity, the system actually carries out the
command which would be filled in by the rest of the word.
Example:
The following example displays how the system completes a partial (unique) command for the
enable
command. Because enable does not require any parameters, the system simply carries out the
enable
command when the user presses
Enter
.
SCE>en<Enter>
Password:
sce#
FTP User Name and Password
CLI enables saving FTP user name and password to be used in FTP operations—download and upload,
per session.
These settings are effective during the current CLI session.
The following example illustrates how to set FTP password and user name and the use in these settings
for getting a file named
config.tmp
from a remote station using FTP protocol.
sce#
ip FTP password pw123
sce#
ip FTP username user1
sce#
copy ftp://@10.10.10.10/h:/config.tmp myconf.txt
connecting 10.10.10.10 (user name
user1 password pw123) to retrieve config.tmp
sce#
Managing Command Output
•
Scrolling the Screen Display, page 2-10
•
Filtering Command Output, page 2-10
•
Redirecting Command Output to a File, page 2-10
Some commands, such as many show commands, may have many lines of output. There are several ways
of managing the command output:
•
Scrolling options — When the command output is too large to be displayed all at once, you can
control whether the display scrolls line by line or refreshes the entire screen.
•
Filtering options — You can filter the output so that output lines are displayed only if they include
or exclude a specified expression.
•
Redirecting to a file — You can send the output to a specified file.