Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
10.3
NN47263-506, 04.01
October 2010
Copyright
Except where expressly stated otherwise, no use should be made of
materials on this site, the Documentation(s) and Product(s) provided
by Avaya. All content on this site, the documentation(s) and the
product(s) provided by Avaya including the selection, arrangement and
design of the content is owned either by Avaya or its licensors and is
October 2010
Contents
Chapter 1: New in this release.................................................................................................5
Other changes...................................................................................................................................................5
Chapter 2: Introduction.............................................................................................................7
Navigation.........................................................................................................................................................7
October 2010
October 2010
Other changes
This document is rebranded to Avaya.
October 2010
October 2010
Chapter 2: Introduction
This document describes the basic functionality and navigation of the Command Line Interface (CLI) for
the Avaya Secure Router 2330/4134 (Avaya SR2330/4134).
Navigation
CLI fundamentals on page 9
Boot CLI fundamentals on page 19
Basic CLI operations on page 23
File management on page 33
October 2010
Introduction
October 2010
Navigation
Top-level commands on page 9
Global commands on page 10
Configuration mode on page 11
Context-sensitive configuration commands on page 11
CLI user access levels on page 12
Multiple concurrent CLI users on page 12
Context-sensitive help on page 13
Command-specific help on page 13
Command tree on page 14
Navigation keys on page 14
Navigation commands on page 15
no command on page 15
Command abbreviations on page 16
Command history on page 16
Configuration file on page 16
Module slot and port numbering on page 16
Top-level commands
When you log on to the switch, you enter the top level of the CLI hierarchy. From this level,
you can access various top-level commands, including debugging, system file configuration,
October 2010
CLI fundamentals
password configuration, testing, and rebooting. The configure command is also available for
entering the configuration mode, or configuring the switch from an existing configuration file.
The following table lists the commands that are accessible only from the top level of the CLI.
Table 1: Top-level commands
Command
Definition
configure
debug
file
password
reboot
test
Global commands
From the top level of the CLI, you can also access additional operational commands including
clear, pin, save, show, telnet, and trace. These commands are available from any level of the
CLI.
The following table lists the global commands are available from any level of the CLI.
Table 2: Global commands
Command
10
Definition
clear
ping
ping6
save
show
telnet
trace
trace6
October 2010
Configuration mode
Configuration mode
To configure the router system parameters, you must enter the configuration mode using the
configure terminal command. For example:
SR4134# configure terminal
SR4134/configure#
From the configuration mode, you can configure router system parameters for the
SR2330/4134. You can also access configuration commands for specific interfaces, modules,
or features. For detailed configuration commands, refer to
October 2010
11
CLI fundamentals
Privilege name
Definition
1 (highest)
PRIVILEGE_ADMIN
PRIVILEGE_CONFIGURE
PRIVILEGE_TEST
4 (lowest)
PRIVILEGE_NORMAL
12
October 2010
Context-sensitive help
Context-sensitive help
The CLI provides text-based, context-sensitive help. To access this help, enter a question mark
(?) at the current command level, or after typing a partial or full command string. The CLI
displays the commands available at that level, or the options available for the specified
command.
The following figure shows a sample output for the show ? command.
In addition, you can also manually scroll through the options available at the current command
level or to complete a particular command string by repeatedly pressing the Tab key.
Command-specific help
The help <cmd> command displays help for the command specified in <cmd>. This help
provides the same description of command options available through context-sensitive help.
However, command-specific help also provides a description of the command itself, as well as
the correct syntax required for the command.
The following figure shows a sample output for the help configure command.
October 2010
13
CLI fundamentals
Command tree
The tree command displays a tree of all CLI commands associated with the current command
mode or level.
The following figure shows a sample output for the tree command.
Navigation keys
You can change the location of the cursor and edit commands in the CLI using the key
combinations shown in the following table.
The help edit command displays a table containing most of the information below.
Table 3: help edit output
Key stroke
14
Action
TAB
Esc+B
Esc+F
Esc+DEL
BackSpace
Ctrl+A
Ctrl+D / DEL
delete a character
October 2010
Navigation commands
Key stroke
Action
OR
if the line is empty, go up one level
Ctrl+E
Ctrl-K
Ctrl+L
Ctrl+P / Up arrow ()
Ctrl+U
Ctrl+W
Ctrl+Z
Navigation commands
The following commands provide additional navigation in the CLI.
Table 4: Navigation commands
Command
Definition
exit
Exit <level nos> exits the specified number of command levels. When
this command is executed from the top level, it terminates the CLI
session.
pop
In configuration mode, the pop command sets the command level back
to the main configuration mode level ( SR4134/configure# .
no command
The no command is always used as a prefix to a command to negate the action performed by
that command. The no command removes or clears the configuration or operation controlled
by the specified command.
October 2010
15
CLI fundamentals
Command abbreviations
The SR2330/4134 accepts abbreviations for commands, as long as there is only one possible
choice to complete the abbreviated command. For example, sh in 2/3 is an acceptable
abbreviation for the show interface command.
Command history
The CLI maintains a list of entered commands. From the command line, you can scroll through
the list of previously executed commands by pressing the up arrow key (). The CLI stores a
maximum of 100 commands.
Configuration file
In addition to manual configuration, you can set the router system parameters using a
configuration file stored in flash memory, or on a network server. This is useful for restoring a
saved configuration to your router, or for copying a saved configuration to another router.
Configuration files have a .cfg extension.
Create a config file by using the save command.
16
October 2010
Slots 1 through 4 are Small Module slots, and slots 5 through 7 are Medium Module slots. If
you insert a Large Module, it spans slots 6 and 7. In this case, the Large Module is identified
in the Command Line Interface (CLI) as slot 6.
The slot/port format also applies to the onboard Chassis Ethernet ports, but for these ports,
the assigned slot number is 0. As a result, the rear panel Fast Ethernet management port is
numbered 0/0, and the front panel Gigabit Ethernet ports are number 0/1 through 0/4.
With the Secure Router 2330, all slots and ports are labelled directly on the chassis.
The following figure shows the front panel of the Secure Router 2330.
The following table describes the built-in slots and ports available on the front panel of the
Secure Router 2330.
Table 5: Secure Router 2330 front panel description
Item
Description
Power input
October 2010
17
CLI fundamentals
Item
Description
Two 10/100/1000Base-T ports (GE 0/5 and 0/6), which use dual RJ-45
connector with integrated Gigabit Ethernet magnetics
Two Small Form-factor Pluggable (SFP) ports (GE 0/7 and 0/8), for plug-in SFP
modules
Console port
10
Ground lug
For more information about the supported modules for the SR2330/4134, see Avaya Secure
Router 2330/4134 Installation Hardware Components (NN47263-500).
18
October 2010
g <adrs>
go to address
d adrs[,n]
display memory
m <adrs>
modify memory
f adrs, nbytes,
value
fill memory
t adrs, adrs,
nbytes
copy memory
n netif
October 2010
19
L [0|1]
F [0|1]
V adrs, nbytes,
value
cold reset
Checksum enable:
0
No bootrom update
20
NORMAL boot
image
GOLDEN boot
image
Backup boot image saved on the GOLDEN boot area - GOLDEN image
area should not be corrupted
October 2010
From the CLI, you can view the configure boot parameters using the show boot command.
You can also configure boot parameters using the boot_params command.
October 2010
21
22
October 2010
Prerequisites
Valid CLI username and password. (Default username is admin and default password is
setup).
Navigation
Logging on on page 24
Configuring the router from a terminal on page 24
Configuring users on page 24
Modifying the administrator account user name on page 25
Modifying passwords for other users on page 26
Modifying your own password on page 26
Saving the current configuration to file on page 27
Encrypting password display on page 27
Adding a header to the configuration file on page 28
Adding comments at the beginning of a configuration on page 28
Adding comments to the end of a configuration on page 28
Configuring the router using configuration files from flash on page 29
Configuring the router using configuration files from the network on page 29
Configuring the timeout for console sessions on page 30
Displaying the console timeout on page 30
Displaying configured user accounts on page 30
Displaying connected users on page 30
October 2010
23
Logging on
Log on to the CLI to access the switch configuration commands.
Procedure steps
1. After the Avaya Secure Router 2330/4134 powers on and the following login prompt
appears:
login
enter the username (default is admin)
The CLI prompts for the password:
password:
2. Enter your user password (default is setup)
For detailed information about configuring passwords and administering users, refer to Avaya
Secure Router 2330/4134 Commissioning (NN47263-500).
Procedure steps
To configure the router from a terminal, enter:
configure terminal
Configuring users
Configure additional usernames and passwords to provide access to the SR2330/4134 to
others.
24
October 2010
To configure users, you must log in with level 1 user privileges using the administrator account.
You can configure any new user to have a user privilege level from 2 to 4. The administrator
account is the only account that has level 1 privileges.
Procedure steps
1. To enter the configuration mode, enter:
configure terminal
2. To create a user, enter:
user <user-name> [<user-level>]
The system prompts you to enter a password:
Please enter new password:
3. Enter the password.
The system prompts you to confirm the password:
Please re-enter password:
4. Reenter the password.
The system provides a system message confirming that the user has been added:
password is set user is added
Procedure steps
1. To enter the configuration mode, enter:
configure terminal
2. To modify the administrator account name, enter:
admin_name <admin-name>
October 2010
25
Procedure steps
1. To change a user password, enter:
password
The system prompts you for the user name:
name:
2. Enter the user name.
The system prompts you to enter the new password:
new password:
3. Enter the new password.
The system prompts you to reenter the new password:
re-enter password:
4. Reenter the new password.
The system confirms the password change:
password has been changed
Procedure steps
1. To change the existing password for your account, enter:
password
The system prompts you to enter the old password:
old password:
2. Enter the old password.
The system prompts you to enter the new password:
26
October 2010
new password:
3. Enter the new password.
The system prompts you to reenter the new password:
re-enter password:
4. Reenter the new password.
The system confirms the password change:
password has been changed
Procedure steps
To save the current configuration file, enter:
save {local <filename> | network <IP address> <file path>}
Procedure steps
1. To enter the configuration mode, enter:
configure terminal
2. To encrypt the passwords, enter:
[no] secure_passwords
October 2010
27
Procedure steps
1. To enter the configuration mode, enter:
configure terminal
2. To add a header to the configuration file, enter:
header "<header>"
3. To save the header information to the configuration file, enter:
save local <filename>
Procedure steps
1. To enter the configuration mode, enter:
configure terminal
2. To add comments at the beginning of a configuration, enter:
SYS_REM "<comments>"
28
October 2010
Procedure steps
1. To enter the configuration mode, enter:
configure terminal
2. To add comments to the end of a configuration, enter:
SYS_REM_ "<comments>"
Procedure steps
1. To configure the router using configuration files saved in flash, enter:
configure flash
The router responds with the following prompt:
filename:
2. Enter the full file name, for example .
SR4134.cfg
Procedure steps
1. To configure the router using configuration files saved in a network location, enter:
configure network
The router responds with the following prompt:
host:
2. Enter the DNS host name or IP address
The router responds with the following prompt:
filename:
3. Enter the full file name, for example :
October 2010
29
SR4134.cfg
Procedure steps
1. To enter the configuration mode, enter:
configure terminal
2. To configure the timeout for a console session, enter:
console_timeout <0-3600>
Procedure steps
To display the timeout value for console sessions, enter:
show console_timeout
Procedure steps
To display all configured users and their associated account levels, enter:
show user_accounts
30
October 2010
Procedure steps
To display all users who are actively connected to the router, enter:
show users
Procedure steps
To display the user account used for the current session, enter:
show whoami
Procedure steps
To display the running configuration , enter:
show configuration running
Procedure steps
To display the stored configuration , enter:
show configuration stored
October 2010
31
With release 10.2, the output of the show system configuration is modified so that the
slot allocation is shown in consecutive order.
Procedure steps
To display the system configuration , enter:
show system configuration
32
October 2010
Navigation
Copying files to and from compact flash or USB on page 33
Downloading files from the network to compact flash or USB on page 34
Uploading a file from compact flash or USB to the network on page 34
Formatting a compact flash or USB device on page 35
Renaming a file on compact flash or USB on page 35
Removing a file from compact flash or USB on page 36
Uploading the event log to the network on page 36
Displaying the file list from compact flash or USB on page 36
Displaying image file versions from compact flash or USB on page 36
Displaying Boot ROM file information on page 37
Procedure steps
To copy a file to or from compact flash or USB, enter:
October 2010
33
File management
Value
Specifies the source filename to be copied.
Procedure steps
To download a file to compact flash or USB, enter:
file download <source-host-ip> <source-dirpath/filename> {/cf0/
<filename> | /cf1/<filename> | /usb0/<filename>}
Table 8: Variable definitions
Variable
Value
<source-host-ip>
<source-dirpath/filename>
34
October 2010
Value
<dest-host-ip>
<dest-path/filename>
[<outgoing-interface>]
[<user-id>]
[<password>]
Procedure steps
To format the compact flash or USB, enter:
file format [/cf0 | /cf1 | /usb0]
Procedure steps
To rename a file on compact flash or USB, enter:
October 2010
35
File management
Procedure steps
To remove a file from compact flash or USB, enter:
file rm {/cf0/<filename> | /cf1/<filename> | /usb0/<filename>}
Procedure steps
To display the file list, enter:
[show] file ls [/cf0 | /cf1 | /usb0]
Procedure steps
To display the image file versions, enter:
36
October 2010
Procedure steps
To display the Boot ROM information, enter:
file show_boot
October 2010
37
File management
38
October 2010