Before Accessing the ACS CLI
Before logging in to the ACS CLI, review the tasks that you should have completed during hardware installation:
Note These sections only provide an overview of the installation and configuration process for the CSACS-1121. For detailed information, see the Installation and Upgrade Guide for Cisco Secure Access Control System 5.2.
1. Starting the CSACS-1121
2. Running Setup to Configure ACS
Starting the CSACS-1121
Complete these steps before you configure the CSACS-1121 appliance:
Connect the power cord to the CSACS-1121 (see Figure 2-1
Figure 2-1 Rear View of CSACS-1121
AC power receptacle
(Blocked) Gigabit Ethernet 1
(Blocked) Gigabit Ethernet
(In Use) Gigabit Ethernet 0
USB 3 connector
USB 4 connector
Step 2 Connect the network cable to the Gigabit Ethernet 0 connector (see Figure 2-1).
The setup utility (that appears when the CSACS-1121 boots) only configures the Gigabit Ethernet 0 port. For information on connecting cables, see the Installation and Upgrade Guide for the Cisco Secure Access Control System 5.2.
Step 3 Power up the CSACS-1121.
The appliance boots automatically and the setup utility appears (see Running Setup to Configure ACS).
Running Setup to Configure ACS
When you power up the CSACS-1121 appliance for the first time, you are prompted to run the setup utility to configure the appliance. Before you run the utility using the
command, ensure that you have values for the following network configuration prompts:
This example shows sample output of the
************************************************* Please type ‘setup’ to configure the appliance ************************************************* Last login: Mon Jul 2 08:45:24 on ttyS0 Press 'Ctrl-C' to abort setup Enter IP address: 172.16.0.0 Enter IP default netmask: 255.255.255.224 Enter IP default gateway: 172.16.0.1 Enter default DNS domain: example.com Enter Primary nameserver: 172.16.12.33 Add/Edit another nameserver? Y/N : n Pinging the primary nameserver... Do not use 'Ctrl-C' from this point on... Installing applications... Generating configuration...
After you enter the required information, the appliance automatically reboots and the following login prompt appears:
identifies the hostname that you specified.
In this example, this prompt appears:
To log in, use the administrator user account (and the corresponding password) that you created during the setup process. You must also use this Admin account to log in to the ACS CLI for the first time. See Accessing the ACS CLI.
After accessing the CLI as an administrator, you can create more users (with admin and operator privileges) with SSH access to the CLI by running the username command in the Configuration mode.
Note Any users that you create from the ACS web interface cannot automatically log in to the ACS CLI. You must explicitly create users with access to the CLI. To create these users, you must log in to the CLI using the Admin account that you created during setup; then, enter the Configuration mode, and run the username command.
Accessing the ACS CLI
Before logging in to the ACS CLI, ensure that you have completed the hardware installation and configuration process outlined in Before Accessing the ACS CLI.
To log in to ACS server and access the CLI, use an SSH secure shell client or the console port. You can log in from:
A PC running Windows XP/Vista.
A PC running Linux.
An Apple computer running Mac OS X 10.4 or later.
Any terminal device compatible with VT100 or ANSI characteristics. On the VT100-type and ANSI devices, you can use cursor-control and cursor-movement key.
Keys include left arrow, up arrow, down arrow, right arrow, Delete, and Backspace. The CLI senses the use of the cursor-control keys and automatically uses the optimal device characteristics (see Supported Hardware and Software Platforms, for more information).
To exit the CLI, use the
command from the EXEC mode. If currently in one of the configuration modes and you want to exit the CLI, enter the
end, exit, Ctrl-d
command to return to the EXEC mode, and then enter the
command (see EXEC Mode).
Supported Hardware and Software Platforms
The following valid terminal types can access ACS:
See the terminfo database for a complete listing.
You can also access ACS through an SSH client or the console port.
Opening the CLI with Secure Shell
Note To access the ACS CLI environment, use any SSH client that supports SSH v2.
The following example shows you how to log in with a Secure Shell (SSH) client (connecting to a wired WAN) via a PC by using Windows XP. Assuming that ACS is preconfigured through the setup utility to accept an Admin (administrator) user, log in as Admin.
Step 1 Use any SSH client and start an SSH session.
The SSH window appears.
Step 2 Press
The Connect to Remote Host window appears.
Step 3 Enter a hostname, username, port number, and authentication method.
In this example, you enter
for the hostname,
for the username, and
for the port number; and, for the authentication method, choose
from the drop-down list.
Step 4 Click
, or press
The Enter Password window appears, overlapping the Connect to Remote Host window.
Step 5 Enter your assigned password for the administrator.
The SSH with the Add Profile window appears.
Step 6 (Optional) Enter a profile name in the text box and click
Add to Profile
Step 7 Click
on the Add Profile window.
The ACS prompt acs/admin# appears. You can now enter ACS CLI commands.
Opening the CLI Using a Local PC
If you need to configure ACS locally (without connecting to a wired LAN), you can connect a PC to the CSACS-1121 appliance’s console port (see Figure 2-1) by using a null-modem cable.
The serial console connector (port) provides access to the CLI locally by connecting a terminal—a PC running terminal-emulation software or an ASCII terminal—to the console port. The console port (EIA/TIA-232 asynchronous) requires only a null-modem cable.
To connect a PC running terminal-emulation software to the console port, use a DB-9 female to DB-9 female null-modem cable.
To connect an ASCII terminal to the console port, use a DB-9 female to DB-25 male straight-through cable with a DB-25 female to DB-25 female gender changer.
The default parameters for the console port are 9600 baud, 8 data bits, no parity, 1 stop bit, and no hardware flow control.
Note If using a Cisco switch on the other side of the connection, set the switchport to duplex auto, speed auto (the default).
To open the CLI by connecting to the console port:
Step 1 Connect a null-modem cable to the console port on the CSACS-1121 and to the COM port on your PC.
Step 2 Set up a terminal emulator to communicate with ACS. Use the following settings for the terminal emulator connection: 9600 baud, 8 data bits, no parity, 1 stop bit, and no flow control.
Step 3 When the terminal emulator activates, press Enter.
Step 4 At the window, enter your username, then press Enter.
Step 5 Enter the password, then press Enter.
When the CLI activates, you can enter CLI commands to configure ACS.
Understanding Command Modes
This section describes the ACS command modes in detail. The primary modes of operation are:
When you start a session on ACS, you begin in the Admin or EXEC mode. From the EXEC mode, you can enter the Configuration mode. Most of the EXEC commands (one-time commands), such as show commands, display the current configuration status. The Admin or EXEC mode prompt consists of the device name or hostname before a pound sign (#), as shown:
acs/admin# (Admin or EXEC mode)
Note Throughout this guide, the ACS server uses the name acs in place of the ACS server’s hostname and admin for the user account.
You can always tell when you are in the EXEC mode, the ACS configuration mode, or the Configuration mode by looking at the prompt. In the:
EXEC mode, a pound sign (#) appears after the ACS server hostname and your username. For example:
ACS Configuration mode, the (config-acs) keyword and the pound sign (#) appear after the hostname of the ACS server and your username.
You must have privileges to enter the ACS Configuration mode, and must supply the username and the password that you use to log in to the ACS web interface. See ACS Configuration Mode.
Escape character is CNTL/D. acs/acsadmin(config-acs)# (ACS configuration mode)
Configuration mode, the (config) keyword and a pound sign (#) appear after the hostname of the ACS server and your username.
Enter configuration commands, one per line. End with CNTL/Z. acs/admin(config)# (configuration mode)
If you are familiar with UNIX, you can equate the EXEC mode to root access. You could also equate it to the administrator level in Windows NT or the supervisor in NetWare. In this mode, you have permission to access everything in the ACS server, including the configuration commands.
However, you cannot enter configuration commands directly. Before you can change the ACS server’s actual configuration, you must enter the Configuration mode by running the
configure terminal (conf t)
command. Enter this command only when in the EXEC mode.
Enter configuration commands, one per line. End with CNTL-Z. acs(config)# (configuration mode)
The Configuration mode has several submodes; each has its own prompt. To enter these submodes, you must first enter the Configuration mode by entering the configure terminal command.
To exit the Configuration mode, enter the end, exit, or Ctrl-z command. To exit the EXEC mode, enter the exit command.
To exit both Configuration and EXEC modes, enter this sequence of commands:
To obtain a listing of commands in the EXEC mode, enter a question mark (?):
ACS Configuration Mode
Use the ACS Configuration mode to set the debug log level for the ACS management and runtime components, show system settings, reset server certificate and IP address access list, and manage import and export processes.
You must have privileges to enter the ACS Configuration mode. To do so, run the
command in the EXEC mode; then, enter the administrative username and password that you use to log in to the ACS web interface.
The default username and password to access the ACS web interface are
, and the first time you log in to the web interface, you will be prompted to change the default password. Cisco recommends that you do so for security reasons. You can change your password for the first time only by logging into the web interface. You will also be prompted to install the license.
Note You cannot delete the default acsadmin user. You can, however, create other users with admin privileges from the web interface.
After resetting your password and installing a valid license, use the default username (
) and changed password, or the username and password for a newly created admin user, to access the ACS CLI in the ACS Configuration mode.
When in the ACS Configuration mode, ACS expects ACS configuration commands.
From this level, you can enter commands directly into the ACS configuration. To obtain a list of commands in this mode, enter a question mark (
). For example:
You can enter exit or press
to leave the ACS configuration mode and return to the EXEC mode.
Some ethernet interface related attributes will be missing in the output while executing the CLI command ethernet-interface show-configuration in acs-config mode on the ESX machine.This is because the ESX does not support displaying all regular interface attributes.
acs243-254/acsadmin(config-acs)# ethernet-interface show-configuration Current message level: 0x00000007 (7) acs243-254/acsadmin(config-acs)#
Use the Configuration mode to make changes to the existing configuration. When you save the configuration, these commands remain across ACS server reboots, but only if you run either of these commands:
copy running-config startup-config
To enter the Configuration mode, run the
configure terminal (conf t)
command in the EXEC mode. When in the Configuration mode, ACS expects configuration commands.
Enter configuration commands, one per line. End with CNTL-Z. acs/admin(config)# (configuration mode)
From this level, you can enter commands directly into the ACS configuration. To obtain a listing of commands in this mode, enter a question mark (?):
The Configuration mode has several configuration submodes. Each of these submodes places you deeper in the prompt hierarchy. When you enter exit, ACS backs you out one level and returns you to the previous level. When you enter exit again, ACS backs you out to the EXEC level.
Note In the Configuration mode, you can alternatively enter Ctrl-z instead of the end or exit command.
In the configuration submodes, you can enter commands for specific configurations. For example:
acs/admin(config)# interface GigabitEthernet 0 acs/admin(config-GigabitEthernet)#
To obtain a list of commands in this mode, enter a question mark (?):
Use the exit or end command to exit this prompt and return to the configuration prompt.
For the previous example,
lists the commands in that configuration submode. There are other configuration submodes, including those specific to the
Table 2-1 Command Options for Configuration Submodes
interface GigabitEthernet 0
Configure ethernet interface:
end Exit from configure mode
exit Exit from this submode
no Negate a command or set its defaults
shutdown Shutdown the interface
Enter the command that you want to configure for the interface. This example uses the interface GigabitEthernet command.
Enter ? to display what you must enter next on the command line.
This example shows the available interface GigabitEthernet configuration submode commands.
address Configure IP address
Enter the command that you want to configure for the interface. This example uses the ip command.
Enter ? to display what you must enter next on the command line.
This example shows the available ip configuration submode commands.
ip address ?
Enter the command that you want to configure for the interface. This example uses the ip addresss command.
Enter ? to display what you must enter next on the command line. In this example, you must enter an IPv4 address.
A carriage return <cr> does not appear; therefore, you must enter additional arguments to complete the command.
ip address 172.16.0.1 ?
ip address 172.16.0.1
Enter the keyword or argument that you want to use. This example uses the 172.16.0.1 IP address.
Enter ? to display what you must enter next on the command line. In this example, you must enter a network mask.
A carriage return <cr> does not display; therefore, you must enter additional arguments to complete the command.
ip address 172.16.0.1 255.255.255.224 ?
ip address 172.16.0.1 255.255.255.224
Enter the network mask. This example uses the 255.255.255.224 IP address.
Enter ? to display what you must enter next on the command line. In this example, you can press Enter.
A carriage return <cr> displays; you can press Enter to complete the command.
Navigating the CLI Commands
This section describes how to navigate the commands and modes on ACS.
Use the question mark (?) and the arrow keys to help you enter commands:
For a list of available commands, enter a question mark (
To complete a command, enter a few known characters before
(with no space):
To display keywords and arguments for a command, enter
at the prompt or after entering part of a command followed by a space:
ACS displays a list and brief description of available keywords and arguments.
The <cr> symbol in command help stands for “carriage return” (Return or Enter key). The <cr> at the end of command help output indicates that you have the option to press Enter to complete the command and that the arguments and keywords in the list preceding the <cr> symbol are optional.
The <cr> symbol by itself indicates that no more arguments or keywords are available, and that you must press Enter to complete the command.
To redisplay a command that you previously entered, press the
key. Continue to press the
key to see more commands.
Using the No and Default Forms of Commands
Some EXEC or configuration commands have a no form. In general, use the no form to disable a function. Use the command without the no keyword to re-enable a disabled function or to enable a function disabled by default; for example, an IP address enabled by default. To disable the IP address, use the no ip address command; to re-enable the IP address, use the ip address command.
Configuration commands can also have a default form, which returns the command settings to the default values. Most commands disable by default, so in such cases using the default form has the same result as using the no form of the command.
However, some commands are enabled by default and have variables set to certain default values. In these cases, the default form of the command enables the command and sets the variables to their default values.
Appendix 3, “ACS Command Reference,”
for a description of the complete syntax of the configuration commands, and the no and default forms of a command.
While reading this document, you might not understand some of the information if you do not know certain basic conventions of CLI usage.
Note the following sections:
Command-Line Editing Key Conventions
ACS provides a number of keyboard shortcuts that you can use to edit an entered line.
Tries to finish the current command.
At the beginning of a line, lists all the short-form options.
When you enter a partial command, the system lists all the short form options beginning with those characters.
When only one possible option is available, the system fills in the option automatically.
Aborts the sequence. Breaks out of any executing command and returns to the previous mode.
Exits the ACS Configuration mode and returns to the EXEC mode.
Exits the Configuration mode and returns to the previous configuration mode.
You can get a list of the available commands by entering a question mark (?) at the prompt (see Getting Help).
Command-line completion makes the ACS CLI more user-friendly. It saves you extra key strokes and helps out when you cannot remember a command’s syntax.
For example, in the show running-configuration command:
acs/admin# show running-configuration
You could have used:
ACS expands the command sh run to show running-configuration.
Another shortcut is pressing the
key after you type sh; the ACS CLI fills in the best completion, in this case show.
If the ACS CLI does not understand a command, it repeats the entire command line and places a caret symbol (^) under the point at which it could not parse the command.
acs/admin# show unning-configuration % Invalid input detected at ‘^’ marker.
The caret symbol (^) points to the first letter in the command line that ACS does not understand. Usually, this means that you need to provide additional arguments to complete the command or you mispelled the command. In this case, you omitted the “r” in the “unning” command. To fix the error, retype the command.
In another form of command-line completion, you can start a command by entering the first few characters, then pressing the
key. As long as you can match one command, the ACS CLI will complete the command. For example, if you type sh and press
, ACS completes the sh with show. If ACS does not complete the command, you can enter a few more letters and press
again. For more information, see Tab.
Continuing Output at the --More-- Prompt
When working with the ACS CLI, output often extends beyond the visible screen length. For cases where output continues beyond the bottom of the screen, such as with the output of many ? or show commands, the output pauses and a
prompt appears at the bottom of the screen.
To resume output, press
to scroll down one line, or press the
to display the next full screen of output.
Tip If output pauses on your screen but you do not see the --More-- prompt, try entering a smaller value for the screen length by using the terminal length EXEC command. Command output will not pause if you set the length value to zero (0).