Table Of Contents
Command-Line Interface
Logging into and Exiting the CLI
Using CLI Commands
Syntax Conventions
Variable Argument Conventions
CLI Command Keyboard Shortcuts
Understanding CLI Syntax Checking and Error Messages
Getting CLI Help
CLI Reference
delete
delete admin
delete lb
delete route
download log
edit admin
enable
ping
quit
reboot
set
set admin
set am
set condenser
set console
set date
set dns
set hostname
set interface
set lb cluster
set lb server
set lb status
set log-server
set ntp
set route
show
show admin
show am
show condenser
show console
show date
show dns
show hostname
show interface
show inventory
show lb
show log
show log-server
show ntp
show route
show sys-stat
show timezone
sysopen
traceroute
Command-Line Interface
This chapter describes the command-line interface (CLI) that you can use to configure certain basic operating parameters of the Cisco AVS software. The CLI is available on both the application appliance and the management station, although certain commands apply only to one device.
This chapter consists of these sections:
•
Logging into and Exiting the CLI
•
Using CLI Commands
•
Getting CLI Help
•
CLI Reference
Logging into and Exiting the CLI
To log in to the AVS device and access the CLI, you can use a terminal device connected to the console port on the AVS device, or you can use Secure Shell (SSH) over the network.
You can use the CLI from any terminal device that is compatible with ANSI, VT52, or VT100 characteristics. ANSI and VT100 devices let you use these cursor-control and cursor-movement keys: left-arrow, up-arrow, down-arrow, right-arrow, Delete, and Backspace. The CLI senses the use of cursor-control keys and automatically uses the optimal device characteristics.
Note
The first time you log in to the CLI, use the default login name of fgn and the default password of fineground.
To exit from the CLI, use the quit command.
Using CLI Commands
This section provides information on:
•
Syntax Conventions
•
Variable Argument Conventions
•
CLI Command Keyboard Shortcuts
•
Understanding CLI Syntax Checking and Error Messages
Syntax Conventions
To help you identify the parts of a CLI command, see Table 4-1 for a list of these syntax conventions and their descriptions.
Table 4-1 Syntax Conventions
Syntax Convention
|
Description
|
boldface
|
Identifies commands and options that you must enter exactly as shown.
|
italics
|
Identifies variables that you must supply. For more information on variable arguments, see the next section.
|
... (ellipsis)
|
Identifies the continuation of the command.
|
| (vertical bar)
|
Identifies mutually exclusive choices.
|
{ } (braces)
|
Encloses alternatives or variables that are required.
|
[ ] (square brackets)
|
Encloses optional keywords or variables.
|
Note
Do not enter the ellipsis, brackets, vertical bar, or braces in command lines. This publication uses these conventions only to show the types of entries.
CLI commands and options are in lowercase and are case sensitive. For example, when you enter the ping command, enter it all in lowercase, not PING or Ping. Text entries that you create are also case sensitive. For example, if you set a username to Sys1, enter it exactly, not sys1 or SYS1.
Variable Argument Conventions
Some commands require variable arguments for information that you must supply. CLI command variable arguments generally consist of integers, quoted and unquoted text strings, IP addresses and subnet masks, hostnames, and interfaces.
Table 4-2 lists the types of arguments that you may encounter and their conventions.
Table 4-2 Variable Arguments
Variable Argument
|
Convention
|
host names
|
Enter hostnames in mnemonic host-name format, as follows: myhost.mydomain.com
|
integers
|
Enter only whole numbers with no decimal points, as follows: 200
|
Internet Protocol (IP) Addresses and Subnet Masks
|
Enter IP addresses and subnet masks in dotted-decimal notation. This notation is four groups of up to three decimal numbers, separated by periods. Each group has a maximum number of 255, as follows:
192.168.11.1
255.255.255.0
|
Interface
|
Interface entries specify physical interfaces present in the AVS. Enter interfaces in groups of four characters, as follows:
eth0 eth1
|
text strings, unquoted
|
Enter unquoted text strings as contiguous alphanumeric characters without spaces or quotation marks, as follows:
Sys_1 MyLink
|
CLI Command Keyboard Shortcuts
Table 4-3 lists the CLI keyboard shortcuts to help you enter and edit command lines.
Table 4-3 CLI Command Keyboard Shortcuts
Action
|
Keyboard Shortcut
|
Cancel the current operation, or delete the current line.
|
Ctrl-C
|
Capitalize the character at the cursor.
|
Esc-C
|
Change:
|
The word at the cursor to lowercase.
|
Esc-L
|
The word at the cursor to uppercase.
|
Esc-U
|
Delete:
|
A character at the cursor.
|
Ctrl-D
|
A character to the left of the cursor.
|
Ctrl-H or Backspace
|
All characters from the cursor to the beginning of the line.
|
Ctrl-U
|
All characters from the cursor to the end of the line.
|
Ctrl-K
|
All characters from the cursor to the end of the word.
|
Esc-D
|
The word to the left of the cursor.
|
Ctrl-W or Esc-Backspace
|
Display the buffer's:
|
Next line.
|
Ctrl-N or Down Arrow
|
Previous line.
|
Ctrl-P or Up-Arrow
|
Display multi- screen output:
|
Continue to next page of output.
|
any key except q
|
Exit from displaying output.
|
q
|
Enter an Enter or Return key character.
|
Ctrl-M
|
Expand the command or abbreviation.
|
Ctrl-I or Tab
|
Move the cursor:
|
One character to the left (back).
|
Ctrl-B or Left Arrow
|
One character to the right (forward).
|
Ctrl-F or Right Arrow
|
One word to the left (back) to the beginning of the current or previous word.
|
Esc-B
|
One word to the right (forward) to the end of the current or next word.
|
Esc-F
|
To the beginning of the line.
|
Ctrl-A
|
To the end of the line.
|
Ctrl-E
|
Redisplay the current line.
|
Ctrl-L or Ctrl-R
|
Transpose a character at the cursor with a character to left of the cursor.
|
Ctrl-T
|
Understanding CLI Syntax Checking and Error Messages
If you enter an invalid or incomplete command, the CLI responds with an error message. The following example shows the CLI response when you enter an invalid command:
Unknown/Unacceptable token
The following example shows the CLI response when you enter an incomplete command:
a required option was not found
required option "current" is missing
Getting CLI Help
The question mark (?) character allows you to get the following type of help about a command at the command line:
Question Mark Usage
|
Command Help Type
|
? at command prompt
|
All commands for that mode
|
command ?
|
All options for a command
|
command option ?
|
All arguments for a command and its option
|
CLI Reference
This section provides detailed information for the CLI commands. The description for each command includes the following:
•
The syntax for the command
•
Any related commands, when appropriate
The following commands are available:
delete
To delete an administrator account, a load-balancing configuration, or a static route, use the delete command. The options for this command are:
delete admin
To delete an administrator account, use the delete admin command.
delete admin name name
Syntax Description
name name
|
Username of the account to delete
|
Usage Guidelines
Only the fgn account can delete other accounts.
Related Commands
edit admin
set admin
show admin
delete lb
To delete a load-balancing configuration, use the delete lb command.
delete lb cluster name [server {all | name}]
Syntax Description
cluster name
|
Specifies the name of the load-balancing virtual server to delete; or the name of the virtual server that contains the real server to delete
|
server all
|
(Optional) Deletes all load-balancing real servers from the specified cluster
|
server name
|
(Optional) Specifies the name of the load-balancing real server to delete
|
Usage Guidelines
The delete lb command is available only on the AVS 3120. For more information about configuring load balancing, see "Availability Manager Clustering."
Related Commands
set lb cluster
set lb server
delete route
To delete a static route, use the delete route command.
delete route ip ip netmask mask gateway g_ip
Syntax Description
ip ip
|
Specifies the destination IP address
|
netmask mask
|
Specifies the IP subnet mask
|
gateway g_ip
|
Specifies the gateway IP address
|
Related Commands
set route
show route
download log
To download a log file, use the download log command.
download log {security | event} to user index {id | all}
Syntax Description
security | event
|
Downloads the security log or the event log
|
to user
|
Specifies the destination user and system IP address to which to download the log, in the format user@ip_address
|
index
|
Specifies which log file(s) to download.
|
id
|
Integer index of the log file to download. There may be multiple security or event log files and this specifies the one you want.
|
all
|
Downloads all log files of the type specified (security or event)
|
Usage Guidelines
The download log command requires a SSH server at the remote end (corresponding to the specified IP address). The log file is placed in the user's home directory on the destination server. This behavior can be overridden by additional SSHD/SSH configuration in the destination server.
To list the indexes of the log files that are available, use the show log security | event index all command. Entering this command will list the log files in order, beginning with index 0, as follows:
velocity>show log security index all
Log File Order Last Modification
0-secure Wed Oct 26 15:45:38 2005
1-secure Tue Oct 25 11:11:16 2005
The index is the number at the left of each row.
Related Commands
set log-server
show log
show log-server
edit admin
To change the username or password for an administrator account, use the edit admin command.
edit admin current-name name [new-name newname] [new-password password]
Syntax Description
name
|
Current username of the account to edit
|
new-name newname
|
(Optional) Specifies a new username for the account
|
new-password password
|
(Optional) Specifies a new password for the account
|
Usage Guidelines
Only the fgn account can change other accounts.
Related Commands
delete admin
set admin
show admin
enable
To enable the writing of system configuration parameters, use the enable command.
enable
Usage Guidelines
The enable command must be used in a console session before any of the set commands can be used.
If the user that is logged in does not have write privileges, this command will fail because this user is not allowed to use the set commands. Write privileges are set by the set admin command that creates an account. Write privileges can be enabled for only one logged-in user at a time.
ping
To send Internet Control Message Protocol (ICMP) echo requests to test network connectivity, use the ping command.
ping ip_or_host
Syntax Description
ip_or_host
|
IP address for the host that you want to test. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1) or in mnemonic hostname format (for example, myhost.mydomain.com).
|
Related Commands
traceroute
quit
To exit the console session and log off the device, use the quit command.
quit
reboot
To reboot the device, use the reboot command.
reboot [safe-mode]
Syntax Description
safe-mode
|
(Optional) Directs the device to reboot in safe mode. This mode is used only for upgrade and maintenance procedures and not in normal operation.
|
set
To set a system configuration parameter, use the set command. The options for this command are as follows:
set admin
To create an administrator account, use the set admin command.
set admin name name password password {read | write}
Syntax Description
name name
|
Specifies the username of the new account
|
password password
|
Specifies the password for the account
|
read | write
|
Enables the account for read-only access or for read/write access
|
Usage Guidelines
Only the fgn account can create accounts.
Related Commands
delete admin
edit admin
show admin
set am
To configure the Availability Manager global settings, use the set am command.
set am [enable | disable] [backup-server {active | inactive}] [primary p_ip] [secondary s_ip]
[frequency f_secs] [dead-detection-interval d_secs]
Syntax Description
enable | disable
|
(Optional) Enables or disables the AM feature
|
backup-server active | inactive
|
(Optional) Activates or deactivates AM failover
|
primary p_ip
|
(Optional) Specifies the IP address of the primary AM server
|
secondary s_ip
|
(Optional) Specifies the IP address of the secondary (standby) AM server
|
frequency f_secs
|
(Optional) Specifies the number of seconds between heartbeats (a check to see if the active AM is still operating). Typically, you use a short interval, such as 1.
|
dead-detection-interval d_secs
|
(Optional) Specifies the number of seconds to wait before declaring a non-responding AM dead and initiating failover. Typically, you use a short interval, such as 3, that is a multiple of the frequency option.
|
Usage Guidelines
The set am command is available only on the AVS 3120. For more information about configuring the Availability Manager, see "Availability Manager Clustering."
Related Commands
delete lb
set lb cluster
set lb server
set lb status
show am
set condenser
To start, stop, or restart the Condenser, use the set condenser command.
set condenser {start | stop | restart} [ssl {enable | disable}]
Syntax Description
start | stop | restart
|
Starts, stops, or restarts the Condenser
|
ssl enable | disable
|
(Optional) Enables or disables SSL mode when starting the Condenser
|
Usage Guidelines
The set condenser command is available only on the AVS 3120.
Related Commands
set console
show condenser
set console
To start, stop or restart the Management Console, use the set console command.
set console {start | stop | restart}
Syntax Description
start | stop | restart
|
Starts, stops, or restarts the Management Console
|
Usage Guidelines
On the AVS 3180, the set console command also controls the starting and stopping of the Postgres database in addition to the Management Console.
Related Commands
set condenser
show console
set date
To set the system date, use the set date command.
set date [time MM:DD:hh:mm:YYYY] [tz timezone]
Syntax Description
time MM:DD:hh:mm:YYYY
|
(Optional) Specifies the time to set in the format MM:DD:hh:mm:YYYY (that is, month:day:hour:minute:year)
|
tz timezone
|
(Optional) Specifies the current city/time zone name, such as America/New_York. To see a list of available city/time zone names, use the show timezone all command.
|
Related Commands
set ntp
show date
show ntp
show timezone
set dns
To set the DNS servers, use the set dns command.
set dns [primary ip_or_value] [secondary ip_or_value]
Syntax Description
primary ip_or_value
|
(Optional) Specifies the IP address or hostname value of the primary DNS server.
|
secondary ip_or_value
|
(Optional) Specifies the IP address or hostname value of the secondary DNS server.
|
Related Commands
show dns
set hostname
To set the hostname of the AVS device, use the set hostname command.
set hostname name
Syntax Description
Related Commands
show hostname
set interface
To configure the network interface of Ethernet port 1, use the set interface command.
set interface [ip ip] [netmask mask] [default-gateway g_ip] [duplex {half | full}]
[speed {10 | 100 | 1000}] [auto-neg {on | off}]
Syntax Description
ip ip
|
(Optional) Specifies the interface IP address
|
netmask mask
|
(Optional) Specifies the interface IP subnet mask
|
default-gateway g_ip
|
(Optional) Specifies the gateway IP address
|
duplex {half | full}
|
(Optional) Specify half or full to manually set the duplex of the interface. Do not specify this option if you specify the auto-neg on option, because that causes the duplex and speed to be auto negotiated.
|
speed {10 | 100 | 1000}
|
(Optional) Specify 10, 100, or 1000 (Mbits/sec) to manually set the speed of the interface. Do not specify this option if you specify the auto-neg on option, because that causes the duplex and speed to be auto negotiated.
|
auto-neg {on | off}
|
(Optional) Specify on to auto negotiate the interface duplex and speed, or off to disable auto negotiation. The default is on.
|
Usage Guidelines
The other network interfaces do not need to be configured.
Related Commands
set dns
show dns
show interface
set lb cluster
To configure the load-balancing cluster parameters for the Availability Manager, use the set lb cluster command.
set lb cluster name name vip ip [netmask mask] [active | inactive [port port] [persistence p_sec]
[re-entry r_sec] [timeout t_sec]
Syntax Description
name
|
Virtual server name. The name must have the prefix fgncluster, for example: fgncluster_http
|
ip
|
Virtual server IP address. This is a floating IP address that has been associated with a fully-qualified domain name.
|
netmask mask
|
(Optional) Specifies the virtual server IP subnet mask
|
active | inactive
|
(Optional) Specify active to enable this virtual IP address; specify inactive to disable it.
|
port port
|
(Optional) Specifies the virtual server listening port
|
persistence p_sec
|
(Optional) If greater than zero, enables persistent connection support and specifies a timeout value in seconds. In order to use delta optimization, you must specify a value greater than zero.
|
re-entry r_sec
|
(Optional) Specifies the number of seconds that a restored performance node must remain alive before being re-added to the routing table
|
timeout t_sec
|
(Optional) Specifies the number of seconds that must lapse before a performance node that is determined to be dead is removed from the routing table.
|
Usage Guidelines
The set lb cluster command is available only on the AVS 3120. For more information about configuring the Availability Manager, see "Availability Manager Clustering."
Related Commands
delete lb
set am
set lb server
set lb status
show lb
set lb server
To configure the load-balancing server parameters for the Availability Manager, use the set lb server command.
set lb server [cluster v_name] [server name] [ip ip] [weight num] [active | inactive]
Syntax Description
cluster v_name
|
(Optional) Specifies the virtual server name under which this real server appears. This name is specified for the virtual server in the set lb cluster command.
|
server name
|
(Optional) Specifies the real server name. This name must be unique.
|
ip ip
|
(Optional) Specifies the real server IP address. It must be on the same subnet of the VIP.
|
weight num
|
(Optional) Specifies an integer that indicates this server's processing capacity relative to that of other performance nodes. For example, a server assigned 2000 has twice the capacity of a server assigned 1000.
|
active | inactive
|
(Optional) Specify active to enable this performance node; specify inactive to disable it.
|
Usage Guidelines
You must configure each AM server separately using a set lb server command.
The set lb cluster command is available only on the AVS 3120. For more information about configuring the Availability Manager, see "Availability Manager Clustering."
Related Commands
delete lb
set am
set lb cluster
set lb status
show lb
set lb status
To activate or deactivate the Availability Manager, use the set lb status command.
set lb status {am-active | am-inactive | server-only}
Syntax Description
am-active
|
Activates the AM on this server
|
am-inactive
|
Deactivates the AM on this server
|
server-only
|
Configures this server to operate as an additional performance node only, not as the primary or standby AM server
|
Usage Guidelines
The set lb status command is available only on the AVS 3120. For more information about configuring the Availability Manager, see "Availability Manager Clustering."
Related Commands
delete lb
set am
set lb cluster
set lb server
show lb
set log-server
To configure remote logging, use the set log-server command.
set log-server {local | remote ip}
Syntax Description
local
|
Configures logs to be stored on the local system
|
remote ip
|
Configures logs to be stored on a remote system that is identified by its IP address
|
Usage Guidelines
On the AVS 3180, when you specify remote, two log files are not sent to the remote host: the jboss server log and the localhost-access log. For more information about logging, see "Logs."
Note
This command does not apply to web application security firewall logging, which is managed by the web application security firewall module itself. For details see the "Log Server Config" section.
Related Commands
download log
show log
show log-server
set ntp
To configure an NTP server, use the set ntp command.
set ntp {stop | start} [ntp_ ip]...
Syntax Description
stop | start
|
Stops or starts using an NTP server to set the system time
|
ntp_ip
|
(Optional) IP address or hostname of one or more NTP servers (separated by spaces)
|
Related Commands
set date
show date
show ntp
show timezone
set route
To configure a static route, use the set route command.
set route ip ip netmask mask gateway g_ip
Syntax Description
ip ip
|
Specifies the destination IP address
|
netmask mask
|
Specifies the IP subnet mask
|
gateway g_ip
|
Specifies the gateway IP address
|
Related Commands
delete route
show route
show
To display current system information, use the show command. The options for this command are as follows:
show admin
|
Displays a list of administrator accounts
|
show am
|
Displays the Availability Manager global settings
|
show condenser
|
Displays the Condenser status
|
show console
|
Displays the Management Console status
|
show date
|
Displays the system date and time zone
|
show dns
|
Displays the DNS servers
|
show hostname
|
Displays the hostname of the AVS device
|
show interface
|
Displays the network interface settings for Ethernet port 1
|
show inventory
|
Displays the serial and model numbers and other information about the application appliance
|
show lb
|
Displays the load-balancing cluster, server, and status settings for the Availability Manager
|
show log
|
Displays a log file
|
show log-server
|
Displays the remote logging configuration
|
show ntp
|
Displays the NTP servers
|
show route
|
Displays static routes
|
show sys-stat
|
Displays system information
|
show timezone
|
Displays the current time zone or all time zones
|
show admin
To display a list of administrator accounts, use the show admin command. The information includes a list of the accounts that have read-only access and a list of the accounts with read-write access.
show admin
Related Commands
delete admin
edit admin
set admin
show am
To display the Availability Manager global settings, use the show am command.
show am
Usage Guidelines
The show am command is available only on the AVS 3120. For more information about configuring the Availability Manager, see "Availability Manager Clustering."
Related Commands
set am
set lb cluster
set lb server
set lb status
show lb
show condenser
To display the Condenser status, use the show condenser command. The status shows if the Condenser is running and if SSL is configured.
show condenser
Usage Guidelines
The show condenser command is available only on the AVS 3120.
Related Commands
set condenser
show console
show console
To display the Management Console status, use the show console command. The status shows if Java, the database, and the node manager are running.
show console
Related Commands
set console
show condenser
show date
To display the system date and time zone, use the show date command.
show date
Related Commands
set date
set ntp
show ntp
show timezone
show dns
To display the DNS servers, use the show dns command.
show dns
Related Commands
set dns
set interface
show hostname
To display the hostname of the AVS device, use the show hostname command.
show hostname
Related Commands
set hostname
show interface
To display the network interface settings of Ethernet port 1, use the show interface command.
show interface
Related Commands
set dns
set interface
show inventory
To display information about the application appliance such as its name, serial number, description, model name, and hardware revision, use the show inventory command.
show inventory
Usage Guidelines
The information that is displayed by this command is also available through SNMP. For details, see Table B-2.
show lb
To display the load-balancing cluster, server, and status settings for the Availability Manager, use the show lb command.
show lb {[cluster name | all] | status}
Syntax Description
cluster name
|
(Optional) Specifies the name of the virtual server
|
all
|
(Optional) Displays the settings for all virtual servers
|
status
|
(Optional) Displays the Availability Manager status
|
Usage Guidelines
The show lb command is available only on the AVS 3120. For more information about configuring the Availability Manager, see "Availability Manager Clustering."
Related Commands
delete lb
set lb cluster
set lb server
set lb status
show am
show log
To display a log file, use the show log command.
show log {security | event | condenser | console | nmgr | postgres} index {id | all}} [tail]
Syntax Description
security | event | condenser | console | nmgr | postgres
|
Name of the log to display. On the AVS 3180, the condenser and ngmr logs are not available.
|
index
|
Specifies which log file to display.
|
id
|
Integer index of the log file to display. There may be multiple log files of one type and this specifies which one you want.
|
all
|
Displays a list of log files of the specified type
|
tail
|
(Optional) Displays the last several lines of the selected log file. You cannot use this option with the index all option.
|
Usage Guidelines
To list the indexes of the log files that are available, use the index all option. This option will list the log files in order, beginning with index 0, as follows:
velocity>show log security index all
Log File Order Last Modification
0-secure Wed Oct 26 15:45:38 2005
1-secure Tue Oct 25 11:11:16 2005
The index is the number at the left of each row.
Related Commands
download log
set log-server
show log-server
To display the remote logging configuration, use the show log-server command.
show log-server
Related Commands
set log-server
show ntp
To display the NTP servers, use the show ntp command.
show ntp
Related Commands
set date
set ntp
show date
show timezone
show route
To display static routes, use the show route command.
show route
Related Commands
delete route
set route
show sys-stat
To display system information, use the show sys-stat command.
show sys-stat {cpu | memory | io} [help]
Syntax Description
cpu | memory | io
|
Specifies the type of system information to display
|
help
|
(Optional) Displays help information about the returned statistics
|
show timezone
To display the current time zone or all time zones, use the show timezone command.
show timezone {all | current}
Syntax Description
all
|
Lists all time zones
|
current
|
Displays the current time zone
|
Related Commands
set date
show date
show ntp
sysopen
To access the system shell, use the sysopen command.
sysopen
traceroute
To trace the connectivity and the path to an IP address, use the traceroute command.
traceroute ip_or_host
Syntax Description
ip_or_host
|
IP address that you want to trace. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1) or in mnemonic hostname format (for example, myhost.mydomain.com).
|
Related Commands
ping