cc/td/doc/product/lan/cat5000/c5k3_1
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Command-Line Interfaces

Command-Line Interfaces

This chapter describes the Catalyst 5000 series switch command-line interface (CLI), the Asynchronous Transfer Mode (ATM) module CLI, and the Route Switch Module (RSM) CLI. For descriptions of all switch CLI, and ATM and RSM module CLI commands, refer to the Catalyst 5000 Series Command Reference publication. For additional information on IOS commands, refer to the Configuration Fundamentals Command Reference publication.

Switch Command-Line Interface

The Catalyst 5000 series switch CLI is a basic command-line interpreter, similar to the UNIX C shell, that provides command-line editing, history substitution, and the creation of aliases.

Accessing the Switch CLI

You can access the CLI from a console terminal connected to an EIA/TIA-232 port or through a Telnet session. Telnet sessions automatically disconnect after remaining idle for a configurable time period.


Note EIA/TIA-232 was known as recommended standard RS-232 before its acceptance as a standard by the Electronic Industries Association (EIA) and Telecommunications Industry Association (TIA).

Accessing the CLI through the EIA/TIA-232 Port

To access the switch through the EIA/TIA-232 port, perform these steps:

Task Command
Step 1 From the Catalyst 5000 series switch console prompt, press Return. None
Step 2 At the prompt, enter the system password. The Console> prompt appears, indicating that you have accessed the CLI in normal mode. None
Step 3 Enter the necessary commands to complete your desired tasks. Appropriate commands
Step 4 When finished, exit the session. quit

After accessing the switch through the console port (EIA/TIA-232), you see this display:

Cisco Systems Console
Enter password:
Console>
Console>
Console> quit

Accessing the CLI through Telnet

To use Telnet, you must first set the Internet Protocol (IP) address for the switch. Refer to "Configuring the Supervisor Software," for information about setting the IP address. You can conduct multiple sessions through Telnet.

To access the switch from a remote host with Telnet, perform these steps:

Task Command
Step 1 From the remote host, enter the telnet command, and designate the name or IP address of the switch you want to access. telnet hostname | ip address
Step 2 At the prompt, enter the password for the CLI. The default password is Return unless a password was previously established by entering the set password command. None
Step 3 Enter the necessary commands to complete your desired tasks. Appropriate commands
Step 4 When finished, exit the Telnet session. quit

After connecting through a Telnet session, you see this display:

% telnet catalyst1
Trying 123.236.273.11...
Connected to catalyst1.
Escape character is '^]'.
Cisco Systems Console                   Fri Mar 10 1995, 17:50:45

Enter password:
Sorry.  Try again.
Enter password:
Console>
Console>
Console> quit
Connection closed by foreign host.
%

Operating the Switch CLI

This section describes how to access the command modes and operate the switch CLI.

Accessing the Command Modes

There are two modes of operation, both password protected: normal and privileged. Enter normal-mode commands for everyday system monitoring. Enter privileged commands for system configuration and basic troubleshooting.

After you log in, the system automatically enters normal mode, which gives you access to normal-mode commands only. You can enter privileged mode by entering the enable command followed by a second password. To return to normal mode, enter the disable command at the prompt.

The following sample session shows how to enable privileged mode:

Cisco Systems Console                   Fri Mar 10 1995, 17:50:45
Enter password:
Console>
Console>
Console> enable
Enter Password:
Console> (enable) 
Performing Command Line Processing

The switch administration command sets are not case sensitive. In addition, commands and parameters can be abbreviated as long as they contain enough letters to be unique with reference to the other commands or parameters at that level.

Command Function
Ctrl-W Deletes last word typed.
Ctrl-U Deletes entire line.
Ctrl-C Escapes and terminates prompts and lengthy tasks.
Delete key or Backspace key Erases mistake when entering a command; reenter command after using this key.
Performing History Substitution

Commands that you enter during each terminal session are stored in a history buffer. Commands in the history buffer can be repeated or edited in a style similar to using the UNIX C shell. The history buffer stores the last 20 commands entered during a terminal session.

To repeat a recent command:

!! - repeat the most recent command
!-nn - repeat the nnth most recent command
!nn - repeat command nn
!aaa - repeat the command beginning with string aaa
!?aaa - repeat the command containing the string aaa

To modify and repeat the most recent command:

^aaa^bbb - replace the string aaa with the string bbb in the most recent command

To add a string to the end of a previous command and repeat it:

!!aaa - add string aaa to the end of the most recent command
!nn aaa - add string aaa to the end of command nn
!aaa bbb - add string bbb to the end of the command beginning with string aaa
!?aaa bbb - add string bbb to the end of the command containing the string aaa
Accessing Command Help

Enter help or ? in normal or privileged mode to see a listing of the commands available in those modes. On selected commands, entering help or ? after a command provides additional information. In general, command usage, the help menu, and when appropriate, parameter ranges are provided if you enter a command using the wrong number of arguments or inappropriate arguments.

The ? command allows you to display usage and syntax information about a specific command or to list groups of commands. In normal mode, enter the ? command to display a list of top-level commands, as follows:

Console> ?
Commands:
----------------------------------------------------------------------
enable                Enable privileged mode
help                  Show this message
history               Show contents of history substitution buffer
ping                  Send echo packets to hosts
quit                  Exit from the Admin session
set                   Set, use 'set help' for more info
session               Tunnel in ATM or RSM Module
show                  Show, use 'show help' for more info
wait                  Wait for x seconds
Console>

Note The overall function of the ? command is the same as the help command. You can enter the ? command appended to any command associated with a group of commands, for example, clear, set, and show. Or you can append ? to any specific command for a list of usage and syntax information. For an example of how to enter the ? command to display usage and syntax information about a specific command, refer to the Catalyst 5000 Series Command Reference publication.

In privileged mode, enter the ? command to display a list of commands, as follows:

Console> enable
Enter password:
Console> (enable) ?
Commands:
----------------------------------------------------------------------
clear               Clear, use 'clear help' for more info
configure           Configure system from terminal/network
disable             Disable privileged mode
disconnect          Disconnect user session
download            Download code to a processor
enable              Enable privileged mode
help                Show this message
history             Show contents of history substitution buffer
ping                Send echo packets to hosts
quit                Exit from the Admin session
reconfirm           Reconfirm VMPS
reset               Reset system or module
session	             Sets alias for command
set                 Set, use 'set help' for more info
show                Show, use 'show help' for more info
slip                Attach/detach Serial Line IP interface
switch              Switch to standby 
telnet              Starts a telnet connection from a remote host
test                Test, use 'test help' for more info
upload              Upload code from a processor
wait                Wait for x seconds
write               Write system configuration to terminal/network
Console> (enable)

The Catalyst 5000 series switch is a multimodule system. Commands you enter from the CLI can apply to the entire system or to a specific module, port, or virtual LAN (VLAN).

Catalyst 5000 series module slots, ports, and VLANs are numbered starting with 1. The supervisor engine module is module 1, residing in the top slot. If you have a Catalyst 5505 or 5500 switch with a redundant supervisor engine, the supervisor modules reside in slots 1 and 2. On each module, port 1 is the left-most port. To reference a specific port on a specific module, the command syntax is mod_num/port_num. For example, 3/1 denotes module 3, port 1. In some commands, such as set trunk, set cam, and set vlan commands, you can enter lists of ports and VLANs.

To designate ports, enter the module and port number pairs, separated by commas. To specify a range of ports, use a hyphen (-) between the module number and port number pairs. Hyphens take precedence over commas. The following examples show several ways of designating ports:

Example 1.  2/1,2/3 denotes module 2, port 1 and module 2, port 3.

Example 2.  2/1-12 denotes module 2, ports 1 through 12.

Example 3.  2/1-2/12 is the same as Example 2.

Each VLAN is designated by a single number. You specify lists of VLANs the same way you do for ports. Individual VLANs are separated by commas (,); ranges are separated by hyphens (-). In the following example, VLAN numbers 1 through 10 and VLAN 1000 are specified:

1-10,1000
Designating MAC Addresses, IP Addresses, and IP Aliases

Some commands require a Media Access Control (MAC) address, IP address, or IP alias, which must be designated in a standard format. The MAC address format must be six hexadecimal numbers separated by hyphens, as shown in the following example:

00-00-0c-24-d2-fe

The IP address format is 32 bits, written as 4 octets separated by periods (dotted decimal format) that are made up of a network section, an optional subnet section, and a host section, as shown in the following example:

126.2.54.1

If the IP alias table is configured, you can use IP aliases in place of the dotted decimal IP address. This is true for most commands that use an IP address, except for commands that define the IP address or IP alias. For more information about the set interface and set ip alias commands, refer to the Catalyst 5000 Series Command Reference publication.

ATM Module Command-Line Interface

The ATM module uses a subset of the Cisco IOS software. The Cisco IOS user interface provides access to several different command modes. Each command mode provides a group of related commands.

For security purposes, Cisco IOS software provides two command access modes: user EXEC and privileged EXEC. The user EXEC mode does not require a password, and allows you direct access only to the ATM module with which you have established a session. The commands available in user EXEC mode are a subset of the commands available in privileged EXEC mode.

The privileged EXEC mode requires a password (the default password is atm). From the privileged level, you can access the six configuration modes: user EXEC, privileged EXEC, global configuration, interface configuration, line configuration, and LAN Emulation (LANE) database configuration. Entering a question mark (?) at the system prompt displays a list of commands available for each command mode.

Almost every configuration command also has a no form. In general, enter the no form to disable a feature or function. Enter the command without the keyword no to reenable a disabled feature or to enable a feature that is disabled by default. Refer to the Catalyst 5000 Series Command Reference publication for more information about the ATM module commands.

The user interface also provides context-sensitive help on command syntax. The section "Getting Context-Sensitive Help" (later in this chapter) describes how to use the help system. It also describes the command editing and command history features that enable you to recall previous command entries and easily edit command entries.

Accessing the ATM Module

To access an ATM module installed in a Catalyst 5000 series switch, enter the session mod_num command at the Console> prompt. The switch responds with the Enter Password prompt. Enter atm as the default password. The ATM module responds with the ATM> prompt. At this point, you are in user EXEC command mode, and you have direct access only to the ATM module with which you have established a session.

The following example shows how to open a session on an ATM module:

Console> session mod_num 
Console> Enter Password: atm
ATM> 

Operating the ATM Module CLI

This section describes the command modes and functions that allow you to access and operate the ATM module CLI.

Accessing the Command Modes

Table 2-1 lists the command modes, how to access each mode, the prompt you see while you are in that mode, the main uses for each configuration mode, and the method to exit that mode. The prompts listed assume the default name ATM.


Table  2-1: Command Modes Summary
Command Mode Access Method Prompt Exit and Reenter Methods
User EXEC Begin a session with the ATM module. ATM> Enter the logout command.
Privileged EXEC From user EXEC mode, enter the enable EXEC command.
When the Enter Password: prompt appears, enter the default password atm.
ATM# To exit to user EXEC mode, enter the disable command.

To enter global configuration mode, enter the configure privileged EXEC command.

Global configuration From privileged EXEC mode, enter the configure privileged EXEC command. ATM (config)# To exit to privileged EXEC mode, enter the exit or end command, or press Ctrl-Z.

To enter interface configuration mode, enter an interface configuration command.

Interface configuration From global configuration mode, enter by specifying an interface with an interface command. ATM (config-if)# To exit to global configuration mode, enter the end command.

To exit to privileged EXEC mode, enter the exit command, or press Ctrl-Z.

To enter subinterface configuration mode, specify a subinterface with the interface command. On the ATM module, the LANE client is considered a subinterface.

Line configuration From global configuration mode, enter by specifying a line with a line command. ATM (config-line)# To exit to global configuration mode, enter the exit command.

To enter privileged EXEC mode, enter the end command or press Ctrl-Z.

LANE database configuration From global EXEC mode, enter the lane database command. ATM (config-if)# To exit to global configuration mode, enter the exit command.

To exit to privileged EXEC mode, enter the end command, or press Ctrl-Z.

Accessing User EXEC Mode

After you log in to the ATM module, you are automatically in user EXEC command mode. The user EXEC commands are a subset of the privileged EXEC commands. The user EXEC commands allow you to change terminal settings on a temporary basis, perform basic tests, and list system information.

To list the user EXEC commands, complete this task:

Task Command
List the user EXEC commands. ?

The user-level prompt is as follows:

ATM>

To list the commands available in user EXEC mode, enter a question mark (?) at the ATM> prompt, as shown in the following example:

ATM> ?
Exec commands:
  connect           Open a terminal connection
  disable           Turn off privileged commands
  disconnect        Disconnect an existing network connection
  enable            Turn on privileged commands
  exit              Exit from the EXEC
  help              Description of the interactive help system
  lock              Lock the terminal
  login             Log in as a particular user
  logout            Exit from the EXEC
  name-connection   Name an existing network connection
  ping              Send echo messages
  resume            Resume an active network connection
  show              Show running system information
  systat            Display information about terminal lines
  telnet            Open a telnet connection
  terminal          Set terminal line parameters
  traceroute        Trace route to destination
  tunnel            Open a tunnel connection
  where             List active connection
ATM>

Note The following user EXEC commands are not supported in this software release: connect, disconnect, lock, login, name-connection, ping, resume, telnet, traceroute, tunnel, and where.
Accessing Privileged EXEC Mode

Because many privileged commands set operating parameters, use password protection to restrict access to privileged EXEC mode. The privileged EXEC command set includes those commands contained in user EXEC mode, as well as the configure command through which you can access the remaining command modes. Privileged EXEC mode also includes high-level testing commands, such as debug.

To access and list the privileged EXEC commands, complete these steps:

Task Command
Step 1 Enter the privileged EXEC mode. enable password
Step 2 List privileged EXEC commands. ?

If the system administrator has set a password, you are prompted to enter it before being allowed access to privileged EXEC mode. The password is not displayed on the screen and is case-sensitive. If an enable password has not been set, you can only access privileged EXEC mode from the console. The default password for the ATM module is atm.

The following example shows how to access privileged EXEC mode and list privileged EXEC commands:

ATM> enable
Password: 
ATM# ?
Exec commands:
  clear                   Reset functions
  clock                   Manage the system clock
  configure               Enter configuration mode
  connect                 Open a terminal connection
  copy                    Copy a config file to or from a tftp server
  debug                   Debugging functions (see also 'undebug')
  disable                 Turn off privileged commands
  disconnect              Disconnect an existing network connection
  enable                  Turn on privileged commands
  exit                    Exit from the EXEC
  help                    Description of the interactive help system
  lock                    Lock the terminal
  login                   Log in as a particular user
  logout                  Exit from the EXEC
  name-connection         Name an existing network connection
  no                      Disable debugging functions
  ping                    Send echo messages
  reload                  Halt and perform a cold restart
  resume                  Resume an active network connection
  rsh                     Execute a remote command
  send                    Send a message to other tty lines
  setup                   Run the SETUP command facility
  show                    Show running system information
  systat                  Display information about terminal lines
  telnet                  Open a telnet connection
  terminal                Set terminal line parameters
  test                    Test subsystems, memory, and interfaces
  traceroute              Trace route to destination
  tunnel                  Open a tunnel connection
  undebug                 Disable debugging functions (see also 'debug')
  where                   List active connections
  write                   Write running configuration to memory, network, or terminal
 
ATM#

Note The following privileged EXEC commands are not supported in this software release: clock, connect, copy, disconnect, lock, login, name-connection, ping, resume, rsh, send, setup, telnet, test, traceroute, tunnel, where, and write network.

From the privileged EXEC mode, you can access global configuration mode. For instructions, see the following section "Accessing Global Configuration Mode."

To return from privileged EXEC mode to user EXEC mode, perform this task:

Task Command
Go from privileged EXEC mode to user EXEC mode. disable
Accessing Global Configuration Mode

Global configuration commands apply to features that affect the ATM module as a whole. To enter global configuration mode, enter the configure privileged EXEC command. When you enter this command, the privileged EXEC mode prompts you for the source of the configuration commands, as follows:

Configuring from terminal, memory, or network [terminal]?

You can then specify either the terminal, nonvolatile random-access memory (NVRAM), or a file stored on a network server as the source of configuration commands (see the "System Image, Microcode Image, and Configuration File Load Commands" chapter in the Router Products Command Reference publication). The default is to enter commands from the console terminal. Pressing Return begins this configuration method.

To access and list the global configuration commands, complete these steps:

Task Command
Step 1 At the console terminal, from the privileged EXEC mode, enter global configuration mode. configure
Step 2 List the global configuration commands. ?

The following example shows how to access global configuration mode and list global configuration commands:

ATM# configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
ATM(config)# ?
Configure commands:
  aaa                         Authentication, Authorization and Accounting.
  access-list                 Add an access list entry
  alias                       Create command alias
  arp                         Set a static ARP entry
  async-bootp                 Modify system bootp parameters
  banner                      Define a login banner
  boot                        Modify system boot parameters
  buffers                     Adjust system buffer pool parameters
  clock                       Configure time-of-day clock
  config-register             Define the configuration register
  downward-compatible config  Generate a configuration compatible with older software
  default-value               Default character-bits values
  dnsix-dmdp                  Provide DMDP service for DNSIX
  dnsix-nat                   Provide DNSIX service for audit trails
  enable                      Modify enable password parameters
  end                         Exit from configure mode
  exit                        Exit from configure mode
  help                        Description of the interactive help system
  hostname                    Set system's network name
  interface                   Select an interface to configure
  ip                          Global IP configuration subcommands
  lane                        Configure LAN Emulation
  line                        Configure a terminal line
  logging                     Modify message logging facilities
  map-class                   Configure static map class
  map-list                    Configure static map list
  priority-list               Build a priority list
  privilege                   Command privilege parameters
  queue-list                  Build a custom queue list
  scheduler                   Scheduler parameters
  service                     Modify use of network based services
  snmp-server                 Modify SNMP parameters
  tacacs-server               Modify TACACS query parameters
  tftp-server                 Provide TFTP service for netload requests
  username                    Establish User Name Authentication

Note The following global configuration commands are not supported in this software release: aaa, access-list, arp, async-boot, boot, clock, config-register, dnsix-dmdp, dnsix-nat, enable, hostname, ip, map-class, map-list, priority-list, queue-list, tacacs-server, tftp-server, and username.

To exit global configuration command mode and return to privileged EXEC mode, enter one of these commands:

Task Command
Exit global configuration mode. exit
end
Ctrl-Z
Accessing Interface Configuration Mode

Interface configuration commands modify the operation of the ATM interface. Interface configuration commands always follow an interface global configuration command, which defines the interface type.

To access and list the interface configuration commands, complete these steps:

Task Command
Step 1 From global configuration mode, enter interface configuration mode. interface type-number1
Step 2 List the interface configuration commands. ?

1 Always specify the type-number as 0 for the Catalyst 5000 series ATM module.

The following example shows how to access interface configuration mode and list interface configuration commands to configure ATM interface 0:

ATM(config)# interface atm 0
ATM(config-if)# ?
Interface configuration commands:
  arp                 Set arp type (arpa, probe, snap) or timeout
  asig                ATM Signalling Interface Subcommands
  atm                 Modify ATM parameters
  backup              Modify dial-backup parameters
  bandwidth           Set bandwidth informational parameter
  custom-queue-list   Assign a custom queue list to an interface
  delay               Specify interface throughput delay
  description         Interface specific description
  exit                Exit from interface configuration mode
  Fair-queue          Enable Fair Queuing on an Interface
  help                Description of the interactive help system
  hold-queue          Set hold queue depth
  ip                  Interface Internet Protocol config commands
  keepalive           Enable keepalive
  lane                Modify LANE parameters
  load-interval       Specify interval for load calculation for an interface
  loopback            Configure internal loopback on an interface
  map-group           Configure static map group
  mtu                 Set the interface Maximum Transmission Unit (MTU)
  no                  Negate a command or set its defaults
  priority-group      Assign a priority group to an interface
  shutdown            Shutdown the selected interface
  snmp                Modify SNMP interface parameters
  sscop               SSCOP Interface Subcommands
  transmit-interface  Assign a transmit interface to a receive-only interface
  tx-queue-limit      Configure card level transmit queue limit
 
ATM(config-if)#

Note The following interface configuration commands are not supported in this software release: arp, backup, bandwidth, custom-queue-list, delay, Fair-queue, hold-queue, ip, keepalive, load-interval, loopback, map-group, priority-group, transmit-interface, and tx-queue-limit.

To exit interface configuration mode and return to global configuration mode, enter the following command:

Task Command
Exit interface configuration mode. exit

To exit global configuration mode and return to privileged EXEC mode, enter one of the following commands:

Task Command
Exit global configuration mode. end
Ctrl-Z
Accessing Line Configuration Mode

Line configuration commands modify the operation of a terminal line. Line configuration commands always follow a line command, which defines a line number. These commands change terminal parameter settings either on a line-by-line basis or for a range of lines.

To access and list the virtual terminal line configuration commands, complete these steps:

Task Command
Step 1 From global configuration mode, configure a virtual terminal line. line {vty} line-number [ending-line-number]1
Step 2 List the line configuration commands. ?

1 This command is documented in the "Terminal Lines and Modem Support Commands" chapter in the Router Products Command Reference publication.

The following example shows how to enter line configuration mode for virtual terminal line 4 and list the line configuration commands. The ATM (config-line)# prompt indicates line configuration mode:

ATM(config)# line 0 4
ATM(config-line)# ?
Line configuration commands:
  access-class                Filter connections based on an IP access list
  autocommand                 Automatically execute an EXEC command
  ata-character-bits          Size of characters being handled
  databits                    Set number of data bits per character
  editing                     Enable command line editing
  escape-character            Change the current line's escape character
  exec                        Start an EXEC process
  exec-banner                 Enable the display of the EXEC banner
  exec-character-bits         Size of characters to the command exec
  exec-timeout                Set the EXEC timeout
  exit                        Exit from line configuration mode
  flowcontrol                 Set the flow control
  full-help                   Provide help to unprivileged user
  help                        Description of the interactive help system
  history                     Enable and control the command history function
  ip                          IP options
  length                      Set number of lines on a screen
  location                    Enter terminal location description
  logging                     Modify message logging facilities
  login                       Enable password checking
  modem                       Configure the Modem Control Lines
  monitor                     Copy debug output to the current terminal line
  no                          Negate a command or set its defaults
  notify                      Inform users of output from concurrent sessions
  padding                     Set padding for a specified output character
  parity                      Set terminal parity
  password                    Set a password
  privilege                   Change privilege level for line
  refuse-message              Define a refuse banner
  rotary                      Add line to a rotary group
  rxspeed                     Set the receive speed
  session-timeout             Set interval when there is no input traffic
  special-character bits      Size of the escape (and other special) characters
  speed                       Set the transmit and receive speeds
  start-character             Define the start character
  stop-character              Define the stop character
  stopbits                    Set async line stop bits
  terminal-type               Set the terminal type
  transport                   Define transport protocols for line
  txspeed                     Set the transmit speeds
  vacant-message              Define a vacant banner
  width                       Set width of the display terminal

Note The following line configuration commands are not supported in this software release: access-class, ata-character-bits, databits, flowcontrol, ip, login, modem, padding, parity, privilege, refuse-message, rotary, rxspeed, special-character-bits, speed, start-character, stop-character, and stopbits.

To exit line configuration mode and return to global configuration mode, enter the following command:

Task Command
Exit line configuration mode. exit

To exit global configuration mode and return to privileged EXEC mode, enter one of the following commands:

Task Command
Exit global configuration mode. end
Ctrl-Z

Performing ATM Module Functions

This section describes the following functions that are performed by the ATM module:

Getting Context-Sensitive Help

The previous sections described the first level of help available with the user interface. Entering a question mark (?) at the system prompt displays the commands for each command mode. You can also get a list of any command's associated keywords and arguments with the context-sensitive help feature.

To get help specific to a command mode, a command, a keyword, or arguments, perform one of these tasks:

Task Command
Obtain a brief description of the help system in any command mode. help
Configure a line or lines to receive help for the full set of user-level commands when you enter ?. full-help
Configure a line to receive help for the full set of user-level commands for this EXEC session. terminal full-help1
Obtain a list of commands that begin with a particular character string. abbreviated-command-entry?
Complete a partial command name. abbreviated-command-entry<Tab>
List all commands available for a particular command mode. ?
List a command's associated keywords. command ?
List a keyword's associated arguments. command keyword ?

1 This command is documented in the Cisco Access Connection Guide.

When using context-sensitive help, the space (or lack of a space) before the question mark (?) is significant.

To obtain a list of commands that begin with a particular character sequence, enter the form of help called word help. Type in characters followed immediately by the question mark (?). Do not include a space. This form of help completes the word for you.

To list keywords or arguments, enter the form of help called command syntax help. Enter a question mark (?) in place of a keyword or argument. Include a space before the ?. This form of help reminds you which keywords or arguments are applicable based on the command, keywords, and arguments you have already entered.

You can abbreviate commands and keywords by using a number of characters that allow a unique abbreviation. For example, you can abbreviate the show command to sh.

Enter the help command (which is available in any command mode) for a brief description of the help system:

ATM# help
Help may be requested at any point in a command by entering
a question mark '?'. If nothing matches, the help list will
be empty and you must back up until entering a '?' shows the
available options.
Two styles of help are provided:
1. Full help is available when you are ready to enter a
   command argument (e.g. 'show ?') and describes each possible
   argument.
2. Partial help is provided when an abbreviated argument is entered
   and you want to know what arguments match the input
   (e.g. 'show pr?'.)

You can enter a partial command name and a question mark (?) to obtain a list of commands beginning with a particular character set. See the bullet "Completing a Partial Command Name" in the "Using the Editing Features" section for more details.

The following example illustrates how context-sensitive help enables you to create an access list from configuration mode. Enter the letters co at the system prompt followed by a question mark (?). Do not leave a space between the last letter and the question mark (?). The system provides the commands that begin with co.

ATM# co?
configure  connect  copy

Enter the configure command followed by a space and a question mark (?) to list the command's keywords and a brief explanation:

ATM# configure ?
  memory    Configure from NV memory
  network   Configure from a TFTP network host
  terminal  Configure from the terminal
  
Checking Command Syntax

An error indicator (^) symbol appears at the point in the command string where you have entered an incorrect command, keyword, or argument. The error location indicator and interactive help system allow you to easily find and correct syntax errors.

In the following example, suppose you want to clear a virtual circuit. First, use context-sensitive help to check the syntax for the command:

ATM# clear ?
  access-list  Clear access list statistical information
  arp-cache    Clear the entire ARP cache
  atm-vc       Clear ATM virtual circuits on an interface
  counters     Clear counters on one or all interfaces
  host         Delete host table entries
  interface    Clear the hardware logic on an interface
  ip           IP
  lane         lane
  line         Reset a terminal line

The help output shows that the atm-vc keyword is required. Next, check the syntax for specifying the type of virtual circuit:

ATM# clear atm-vc ?
ATM  ATM interface

Enter the type of virtual circuit:

ATM# clear atm-vc atm 0
% Incomplete command.

The system indicates that you need to provide additional arguments to complete the command. Press Ctrl-P (see the next section, "Using the Command History Features") to automatically repeat the previous command entry. Then add a space and question mark (?) to reveal the additional arguments:

ATM# clear atm-vc atm 0 ?
  <1-4095>  Virtual Circuit Number (VCD)

Now you can complete the command entry:

ATM# clear atm-vc atm 0 4096
                          ^
% Invalid input detected at '^' marker.

The caret symbol (^) and help response indicate an error at 4096. To list the correct syntax, enter the command up to the point where the error occurred, and then enter a question mark (?):

ATM# clear atm-vc atm 0 ?
  <1-4095>  Virtual Circuit Number (VCD)

Enter the year using the correct syntax, and press Return to execute the command:

ATM# clear atm-vc atm 0 11
Using the Command History Features

The command history feature keeps a record of commands you have entered and allows you to recall these commands. The functions of the command history feature are as follows:

By default, the system records ten command lines in its history buffer. To set the number of command lines the system will record during the current terminal session, complete this task in EXEC mode:

Task Command
Enable the command history feature for the current terminal session. terminal history [size number-of-lines]1

1 This command is documented in the Cisco Access Connection Guide.
The terminal no history size command resets the number of lines saved by history to the default of 10 lines.
To configure the number of command lines the system will record, complete this task in line configuration mode:

Task Command
Enable the command history feature. history [size number-of-lines]1

1 The no history command turns off command history for the line.
To recall commands from the history buffer, perform one of these tasks:

Task Key Sequence/Command
Recall commands in the history buffer, beginning with the most recent command. Repeat the key sequence to recall successively older commands. Press Ctrl-P or the up arrow key.1
Return to more recent commands in the history buffer after recalling commands with Ctrl-P or the up arrow key. Repeat the key sequence to recall successively more recent commands. Press Ctrl-N or the down arrow key.1
While in EXEC mode, list the last several commands you have just entered. show history

1 The arrow keys function only on ANSI-compatible terminals such as VT100s.
The command history feature is automatically enabled. To disable it during the current terminal session, complete this task in EXEC mode:

Task Command
Disable the command history feature for the current session. terminal no history1

1 This command is documented in the Cisco Access Connection Guide.
To configure a specific line so that the command history feature is disabled, complete this task in line configuration mode:

Task Command
Configure the line so that the command history feature is disabled. no history
Using the Editing Features

Catalyst 5000 series software release 2.3 and above includes an enhanced editing mode that provides a set of editing key functions similar to those of the Emacs editor. You can enter commands in uppercase, lowercase, or a mix of both. Only passwords are case sensitive. You can abbreviate commands and keywords to the number of characters that allow a unique abbreviation.

For example, you can abbreviate the show command to sh. After entering the command at the system prompt, press Return to execute the command. The editing features are as follows:

Although enhanced editing mode is automatically enabled with this software release, you can disable it and revert to the editing mode of previous software releases. See the section "Ending a Session" later in this chapter.
To reenable the enhanced editing mode for the current terminal session, complete this task in EXEC mode:
Task Command
Enable the enhanced editing features for the current terminal session. terminal editing1

1 This command is documented in the Cisco Access Connection Guide.
To reconfigure a specific line to have enhanced editing mode, complete this task in line configuration mode:
Task Command
Enable the enhanced editing features. editing
Perform these tasks to move the cursor around on the command line for corrections or changes:
Task Keystrokes
Move the cursor back one character. Press Ctrl-B or
press the left arrow key.1
Move the cursor forward one character. Press Ctrl-F or
press the right arrow key.1
Move the cursor to the beginning of the command line. Press Ctrl-A.
Move the cursor to the end of the command line. Press Ctrl-E.
Move the cursor back one word. Press Esc-B.
Move the cursor forward one word. Press Esc-F.

1 The arrow keys function only on ANSI-compatible terminals such as VT100s.
If you cannot remember a complete command name, press the Tab key to allow the system to complete a partial entry. To do so, perform this task:
Task Keystrokes
Complete a command name. Enter the first few letters and press the Tab key.
If your keyboard does not have a Tab key, press Ctrl-I instead.
In the following example, when you enter the letters conf and press the Tab key, the system provides the complete command:
ATM# conf
ATM# configure
If you enter a set of characters that could indicate more than one command, the system beeps to indicate an error. Enter a question mark (?) to obtain a list of commands that begin with that set of characters. Do not leave a space between the last letter and the question mark (?).
For example, three commands in privileged mode start with co. To see what they are, enter co? at the privileged EXEC prompt. The system displays all commands that begin with co, as follows:
ATM# co?
configure  connect  copy
The system provides a buffer that contains the last ten items you deleted. You can recall these items and paste them in the command line by performing the following steps:
Task Keystrokes
Step 1 Recall the most recent entry in the buffer. Press Ctrl-Y.
Step 2 Recall the next buffer entry. Press Esc-Y.
The buffer contains only the last ten items you have deleted or cut. If you press Esc-Y more than ten times, you cycle back to the first buffer entry.
The new editing command set provides a wraparound feature for commands that extend beyond a single line on the screen. When the cursor reaches the right margin, the command line shifts ten spaces to the left. You cannot see the first ten characters of the line, but you can scroll back and check the syntax at the beginning of the command. To scroll back, perform this task:
Task Keystrokes
Return to the beginning of a command line to verify that you have entered a lengthy command correctly. Press Ctrl-B or the left arrow key repeatedly until you scroll back to the beginning of the command entry, or press Ctrl-A to return directly to the beginning of the line.1

1 The arrow keys function only on ANSI-compatible terminals such as VT100s.
In the following example, the lane config-atm-address command entry extends beyond one line. When the cursor first reaches the end of the line, the line shifts ten spaces to the left and is redisplayed. The dollar sign ($) indicates that the line has been scrolled to the left. Each time the cursor reaches the end of the line, the line shifts ten spaces to the left.
ATM(config-subif)# lane config-atm-address 39.000000000000014155551211.080020
ATM(config-subif)#$ -atm-address 39.000000000000014155551211.0800200c1001.00
When you complete the entry, press Ctrl-A to check the complete syntax, and then press Return to execute the command. The dollar sign ($) appears at the end of the line to indicate that the line has been scrolled to the right:
ATM(config-subif)# lane config-atm-address 39.000000000000014155551211.080020 $
The system assumes your terminal screen is 80 columns wide. If your screen has a different width, enter the terminal width command to tell the router the correct width of your screen.
Use line wrapping with the command history feature to recall and modify previous complex command entries. See the "Recalling Commands" bullet in the "Using the Command History Features" section earlier in this chapter for information about recalling previous command entries.
Perform any of these tasks to delete command entries if you make a mistake or change your mind:
Task Keystrokes
Erase the character to the left of the cursor. Press the Delete or Backspace key.
Delete the character at the cursor. Press Ctrl-D.
Delete from the cursor to the end of the command line. Press Ctrl-K.
Delete from the cursor to the beginning of the command line. Press Ctrl-U or Ctrl-X.
Delete the word to the left of the cursor. Press Ctrl-W.
Delete from the cursor to the end of the word. Press Esc-D.
When you use the help facility to list the commands in a particular mode, the list is often longer than the terminal screen can display. In such cases, a ---More--- prompt is displayed at the bottom of the screen. To view the next line or screen, complete these tasks:
Task Keystrokes
Scroll down one line. Press the Return key.
Scroll down one screen. Press the Spacebar.

Note The ---More--- prompt is used for any output that has more lines than can be displayed on the terminal screen, including show command output.
If you enter a command and the system suddenly sends a message to your screen, you can easily recall your current command line entry. To do so, perform this task:
Task Keystrokes
Redisplay the current command line. Press Ctrl-L or Ctrl-R.
If you mistype a command entry, you can transpose the mistyped characters by performing this task:
Task Keystrokes
Transpose the character to the left of the cursor with the character located at the cursor. Press Ctrl-T.
You can change words to uppercase or lowercase, or capitalize a set of letters, with simple keystroke sequences, as shown in the following examples:
Task Keystrokes
Capitalize at the cursor. Press Esc-C.
Change the word at the cursor to lowercase. Press Esc-L.
Capitalize letters from the cursor to the end of the word. Press Esc-U.
Sometimes you might want to use a particular keystroke as an executable command. Complete this task:
Task Keystrokes
Insert a code to indicate to the system that the keystroke immediately following should be treated as a command entry, not an editing key. Press Ctrl-V or Esc-Q.
Ending a Session

After entering the setup command or other configuration commands, exit the ATM module and quit the session.

To end a session, perform this task:

Task Command
Enter the quit EXEC command. quit

RSM Command-Line Interface

The RSM is a fully-functional router running Cisco IOS software. The Cisco IOS user interface provides access to several different command modes. Each command mode provides a group of related commands.

For security purposes, Cisco IOS software provides two levels of access to commands: user and privileged. The unprivileged user mode is called user EXEC mode. The privileged mode is called privileged EXEC mode and requires a password. The commands available in user EXEC mode are a subset of the commands available in privileged EXEC mode.

From the privileged level, you can access global configuration mode and six specific configuration modes: interface, subinterface, line, router, ipx-router, and route-map configuration. Entering a question mark (?) at the system prompt displays a list of commands available for each command mode.

Almost every configuration command also has a no form. In general, enter the no form to disable a feature or function. Enter the command without the keyword no to reenable a disabled feature or to enable a feature that is disabled by default. Refer to the Catalyst 5000 Series Route Switch Module Installation and Configuration Note, Catalyst 5000 Series Command Reference, and the Cisco IOS Configuration Fundamental Command Reference publications for more information about the RSM commands.

The user interface also provides context-sensitive help on command syntax. It also describes the command editing and command history features that enable you to recall previous command entries and easily edit command entries.

Accessing the RSM

To access an RSM installed in a Catalyst 5000 series switch, enter the session mod_num command at the Console> prompt. The switch responds with the Enter Password prompt. Enter the password for the RSM. The RSM responds with the Router> prompt. At this point, you are in user EXEC command mode, and you have direct access only to the RSM with which you have established a session.

The following example shows how to open a session on an RSM:

Console> session mod_num 
Console> Enter Password:
Router> 

Accessing the VIP2 Port Adapters

When you use the RSM with the Catalyst VIP2, the combination is a double-wide card module that occupies two consecutive Catalyst 5505, Catalyst 5000, or Catalyst 5500 slots. The Catalyst VIP2 data and control interface is through two ribbon cables. Power to the Catalyst VIP2 is through the Catalyst VIP2 backplane connector.

For more information, refer to the Route Switch Module Catalyst VIP2-15 and VIP2-40 Installation and Configuration Note.


Note The RSM/VIP2 combination can be installed in Catalyst 5505, Catalyst 5000, and Catalyst 5500 switches. The standalone RSM can be used in the Catalyst 5002 switch.

Operating the RSM CLI

Refer to the Configuration Fundamentals Command Reference publication for router commands and instructions on how to use the CLI.


hometocprevnextglossaryfeedbacksearchhelp
Copyright 1989-1997 © Cisco Systems Inc.