|
Table Of Contents
Command-Line Interface Command Summary
Accessing the CLI Using a Remote Connection
Accessing the CLI Using a Serial Connection
Global Configuration Command Summary
Interface Configuration Command Summary
Command-Line Interface Command Summary
This chapter provides a summary of the command-line interface (CLI) commands included in the Cisco Global Site Selector Command Reference. The command summary tables are grouped alphabetically in five categories: user-level EXEC commands, privileged-level EXEC commands, global configuration commands, interface configuration commands, and show EXEC commands. The CLI can be accessed through the console port or Telnet.
Accessing the CLI
You can access the command-line interface by establishing a remote connection or by connecting directly to the device using a dedicated terminal.
Accessing the CLI Using a Remote Connection
You can establish a remote connection with a Global Site Selector (GSS) using Telnet or Secure Shell (SSH).
In a single Telnet or SSH session, you cannot connect to more than one device; you can have several Telnet or SSH sessions running in parallel for different devices.
SSH connections are strongly recommended because SSH lets you communicate securely over insecure channels and provides strong authentication.
Use your preferred SSH or Telnet client, entering the host name or IP address of the GSS device (Global Site Selector or Global Site Selector Manager) as the host name, and using your GSS administrative username and password to log on to the device through a remote connection.
Once you have logged on, you will be limited in your interaction with the GSS device to the commands described in this document.
Accessing the CLI Using a Serial Connection
Establish a serial connection between your terminal and the GSS device. For information on how to establish a serial connection with your device, refer to the Cisco Global Site Selector 4480 Hardware Installation Guide.
Once you are connected, you can use any terminal communications application to access the CLI. The following procedure uses HyperTerminal.
Step 1 Launch HyperTerminal.
The Connection Description window appears.
Step 2 Enter a name for your session in the Name field.
Step 3 Click OK.
The Connect To window appears.
Step 4 From the drop-down list, choose the COM port to which the device is connected.
Step 5 Click OK.
The Port Properties window appears. Set the port properties as follows:
•Baud Rate = 9600
•Data Bits = 8
•Flow Control = none
•Parity = none
•Stop Bits = 1
Step 6 Click OK to connect.
Step 7 Press Enter to display the command-line interface prompt.
Once a session is created, you can save the connection description by choosing File > Save As. Saving the connection description has the following two advantages:
•The next time you launch HyperTerminal, the session is listed as an option under Start > Programs > Accessories > HyperTerminal > Name_of_session. This option lets you reach the CLI prompt directly without going through the configuration steps.
•You can connect your cable to a different device without configuring a new HyperTerminal session. If you use this option, make sure that you connect to the same port on the new device as was configured in the saved HyperTerminal session. Otherwise, a blank screen appears without a prompt.
Using Command-Line Processing
GSS software commands are not case sensitive. You can abbreviate commands and parameters as long as they contain enough letters to be different from any other currently available commands or parameters. You can scroll through the last 20 commands stored in the history buffer and enter or edit the command at the prompt. (See Table 1-1.)
Table 1-1 Command-Line Processing Keystroke Combinations
Keystroke Combination DescriptionCtrl-A
Jumps to the first character of the command line.
Ctrl-B or the Left Arrow key
Moves the cursor back one character.
Ctrl-C
Escapes and terminates prompts and tasks.
Ctrl-D
Deletes the character at the cursor.
Ctrl-E
Jumps to the end of the current command line.
Ctrl-F or the Right Arrow key1
Moves the cursor forward one character.
Ctrl-K
Deletes from the cursor to the end of the command line.
Ctrl-L
Repeats the current command line on a new line.
Ctrl-N or the Down Arrow key1
Enters the next command line in the history buffer.
Ctrl-P or the Up Arrow key1
Enters the previous command line in the history buffer.
Ctrl-T
Transposes the character at the cursor with the character to the left of the cursor.
Ctrl-U; Ctrl-X
Deletes from the cursor to the beginning of the command line.
Ctrl-W
Deletes the last word typed.
Esc-B
Moves the cursor back one word.
Esc-D
Deletes from the cursor to the end of the word.
Esc-F
Moves the cursor forward one word.
Delete key or Backspace key
Erases a mistake when entering a command; reenter the command after using this key.
1 The arrow keys function only on ANSI-compatible terminals such as VT100s.
Command Modes
There are three command modes for the GSS CLI. The three modes are:
•EXEC
•Global configuration
•Interface configuration
EXEC Mode
The two EXEC access levels are privileged and user. The enable and disable commands switch between the two levels. The user-level EXEC command line is available to users if they enter a valid password. The user-level EXEC commands are a subset of the privileged-level EXEC commands. The user-level EXEC prompt is the host name followed by a right angle bracket (>). The prompt for the privileged-level EXEC command line is the pound sign (#). To execute an EXEC command, enter the command at the EXEC system prompt and press the Return key. In the following example, a user accesses the privileged-level EXEC command line from the user level.
Host> enable
Host#
Use the Delete or Backspace key sequences to edit commands when you type commands at the EXEC prompt.
As a shortcut, you can abbreviate commands to the fewest letters that make them unique. For example, the letters sho can be entered for the show command.
Certain EXEC commands display multiple screens with the following prompt at the bottom of the screen:
--More--
Press the Spacebar to continue the output, or press Return to display the next line. Press any other key to return to the prompt. Also, at the --More-- prompt, you can enter a ? to display the help message.
To leave EXEC mode, use the exit command at the system prompt:
Host# exit
See the "EXEC Command Summary" section for a summary of EXEC-level commands.
Global Configuration Mode
To enter the global configuration mode, use the configure privileged EXEC command. You must be in global configuration mode to enter global configuration commands.
Host# configure
Host(config)#
To exit global configuration mode, use the end global configuration command:
Host(config)# end
You can also exit global configuration mode by entering the exit command or by pressing Ctrl-Z.
See the "Global Configuration Command Summary" section for a summary of Global configuration-level commands.
Interface Configuration Mode
To enter interface configuration mode, use the interface global configuration command. The following example demonstrates how to enter interface configuration mode:
Host# config
Host(config)# interface ethernet 0
Host(config-eth0)#
To exit interface configuration mode, enter exit to return to global configuration mode:
Host(config-eth0)# exit
Host(config)#
See the "Interface Configuration Command Summary" section for a summary of interface configuration-level commands.
Check Command Syntax
The user interface provides error isolation in the form of an error indicator, a caret symbol (^). The ^ symbol appears at the point in the command string where you have entered an incorrect command, keyword, or argument.
In the following example, a syntax error occurs in the process of setting the device clock. Context-sensitive help is then used to check the syntax for setting the clock and correct the mistake.
Host#clock 20:06:00 26 march 2002
^
% Invalid input detected at '^' marker.
Host#clock ?
set Set the time and date
timezone Set timezone
The help output shows that the set keyword is required. Press the Up Arrow to automatically repeat the previous command entry. Then add a space and question mark (?) to display the additional arguments:
Host#clock set ?
<0-23>: Current Time (hh:mm:ss)
Host#clock set 20:00:00
% Incomplete command.
Host#clock set 20:00:00?
<0-59>
Host#clock set 20:00:00 ?
<1-31> Day of Month
april
august
december
february
january Month of the Year
july
june
march
may
november
october
september
Host#clock set 20:00:00 march ?
<1-31> Day of Month
Host#clock set 20:00:00 march 26 ?
<1993-2035> Year
Host#clock set 20:00:00 march 26 2002
Controlling Command Output
You can control the output of your GSS CLI commands—filtering it, or saving it to a file—using special operators that are added to your command syntax. The following table presents information on the various command options that allow you to control the output generated by GSS commands.
System Help
You can obtain help when you enter commands by using the following methods:
•For a brief description of the context-sensitive help system, enter help.
•To list all commands for a command mode, enter a question mark (?) at the system prompt.
•To obtain a list of commands that start with a particular character set, enter an abbreviated command immediately followed by a question mark (?).
Host# cl?
clear clock
•To list the command keywords or arguments, enter a space and a question mark (?) after the command:
Host# clock ?
clear Clear the current time from the battery-backed clock
save Save the current time into the battery-backed clock
set Set the local time and date
Save Configuration Changes
To avoid losing new configurations, save them to NVRAM using the copy or write commands, as shown in the following example:
Host# copy running-config startup-config
or
Host# write
See the command description for the copy running-config startup-config command for more information on "running" and "saved" configuration modes.
EXEC Command Summary
The GSS software EXEC commands are entered in EXEC mode. Table 1-3 lists the user-level EXEC commands. Table 1-4 lists the privileged-level EXEC commands.
Global Configuration Command Summary
The global configuration Content Engine commands are entered in global configuration mode. Table 1-5 lists the global configuration commands.
Interface Configuration Command Summary
The interface configuration commands are entered in the interface configuration mode. Enable interface configuration mode by entering the interface command in global configuration mode.
For example:
Host# config
Host(config)# interface
Host(config-if)# autosense
To exit interface configuration mode, enter exit to return to global configuration mode.
Host(config-if)# exit
Host(config)#
Table 1-6 lists the interface configuration commands.
Posted: Mon Mar 21 11:30:51 PST 2005
All contents are Copyright © 1992--2005 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.