Negating the Effect of Commands
When accessing the management interface for the switch over a direct connection to the switch's RJ-11 console port, the remote access module's DB-9 console port, or via a Telnet connection, the switch can be managed by entering command keywords and parameters at the prompt. Using the switch's command-line interface (CLI) is very similar to entering commands on a UNIX system.
To access the switch through the console port, perform these steps:
After connecting to the system through the console port, the login screen displays:
User Access Verification Username: admin CLI
session with the PowerEdge 1655MC is opened. switch1_1234123# |
NOTE: The hostname used for the console prompt is set dynamically by the remote managment module. An example is provided in this console screen, but is not displayed in the remainder of the manual. |
Telnet operates over the IP transport protocol. In this environment, your management station and any network device you want to manage over the network must have a valid IP address.
To access the switch through a Telnet session, you must first set the IP address for the switch, and set the default gateway if you are managing the switch from a different IP subnet. For example,
(config)#interface vlan 1 |
If your corporate network is connected to another network outside your office or to the Internet, you need to apply for a registered IP address. However, if you are attached to an isolated network, then you can use any IP address that matches the network segment to which you are attached.
After you configure the switch with an IP address, you can open a Telnet session by performing these steps.
After entering the Telnet command, the login screen displays:
User Access Verification Username: admin CLI
session with the PowerEdge 1655MC is opened. # |
NOTE: You can open up to four sessions to the switch via Telnet. |
NOTE: If this is your first time to log into the configuration program, you should define a new password using the "enable password" command, record it and put it in a safe place. |
Passwords can consist of up to 15 alphanumeric characters and are not case sensitive. To prevent unauthorized access to the switch, set the passwords as follows:
NOTE: CLI configuration commands only modify the running configuration file and are not saved when the switch is rebooted. To save all your configuration changes in nonvolatile storage, you must copy the running configuration file to the startup configuration file using the copy command. |
You must assign an IP address to this device to gain management access over your network. You may also need to a establish a default gateway between this device and management stations that exist on another network segment. You can manually configure a specific IP address, or direct the device to obtain an address from a Boot Protocol (BOOTP) or Dynamic Host Configuration Protocol (DHCP) server when it is powered on. Valid IP addresses consist of four decimal numbers, 0 to 255, separated by periods. Anything outside this format will not be accepted by the CLI program.
NOTE: The IP address for this switch is assigned via DHCP by default. |
Before you can assign an IP address to the switch, you must obtain the following information from your network administrator:
To assign an IP address to the switch, complete the following steps:
#config |
If you select the "bootp" or "dhcp" option as shown in the following example, IP is enabled but will not function until a BOOTP or DHCP reply has been received. Requests will be broadcast periodically by this device in an effort to learn its IP address. (BOOTP and DHCP values can include the IP address, subnet mask, and default gateway).
#config |
At this point, you are ready to use appropriate network cabling to connect devices to the switchs external RJ-45 connectors. For information on making network connections, see Connecting Network Devices.
This section describes how to enter CLI commands.
A CLI command is a series of keywords and arguments. Keywords identify a command and arguments specify configuration parameters. For example, in the command "show interfaces status ethernet 1/5," show, interfaces and status are keywords, ethernet is an argument that specifies the interface type, and 1/5 specifies the unit/port.
You can enter commands as follows:
The CLI will accept a minimum number of characters that uniquely identify a command. For example, the command "logging console" can be entered as logging c. If an entry is ambiguous, the system will prompt for further input.
If you terminate input with a Tab key, the CLI will print remaining characters of a partial keyword up to the point of ambiguity. In the "logging console" example, typing log followed by a tab will result in printing the command up to "logging ."
You can display a brief description of the help system by entering the help command. You can also display command syntax by using the "?" character to list keywords or parameters.
If you enter a "?" at the command prompt, the system will display the first level of keywords for the current command class (Normal Exec or Privileged Exec) or configuration class (Global, Interface, Line, or VLAN Database). You can also display a list of valid keywords for a specific command. For example, the command "show ?" displays a list of possible show commands:
#show
? bridge Bridge information bridge-ext Bridge extend information garp Garp property gvrp Show gvrp information of interface history Information of history interfaces Information of interfaces ip Ip line TTY line information logging Show the contents of logging buffers map Map priority port Characteristics of the port queue Information of priority queue radius-server Radius server information running-config The system configuration of running snmp SNMP statistics startup-config The system configuration of starting up system Information of system users Display information about terminal lines version System hardware and software status vlan Switch VLAN Virtual Interface |
The command "show interfaces ?" will display the following information:
#show interfaces ? |
NOTE: This switch is a standalone unit, so the interface unit number is always "1." For example, you should enter "1/5" for port 5. Ports 1 - 6 connect to server blades via the chassis middle plane, Ports 7 - 10 are external uplink ports, and Port 11 connects to the remote access module. |
If you terminate a partial keyword with a question mark, alternatives that match the initial letters are provided. (Remember not to leave a space between the command and question mark.) For example "s?" shows all the keywords starting with "s."
#show s? |
For many configuration commands you can enter the prefix keyword "no" to cancel the effect of a command or reset the configuration to the default value. For example, the logging command will log system messages to a host server. To disable logging, specify the no logging command. This guide describes the negation effect for all applicable commands.
The CLI maintains a history of commands that have been entered. You can scroll up or down through the history of commands by pressing the up or down arrow keys. Any command displayed in the history list can be executed again, or first modified and then executed.
Using the show history command displays a longer list of recently executed commands.
The command set is divided into Exec and Configuration classes. Exec commands generally display information on system status or clear statistical counters. Configuration commands, on the other hand, modify interface parameters or enable certain switching functions. These classes are further divided into different modes. Available commands depend on the selected mode. You can always enter a question mark "?" at the prompt to display a list of the commands available for the current mode. The command classes and associated modes are displayed in the following table:
Class | Mode | |
Exec |
Normal |
|
Configuration* |
Global |
*You must be in Privileged Exec mode to access any of the configuration modes.
When you open a new console session on switch with the user name "guest," the system enters Normal Exec command mode (or guest mode). The command prompt displays as ">" for Normal Exec mode. Only a limited number of the commands are available in this mode.
You can access all the commands only in Privileged Exec command mode (or administrator mode). To access Privilege Exec mode, open a new console session with the user name "admin." However, if you are currently in Normal Exec mode, you can also access Privilege Exec mode by entering the enable command (followed by the privileged level password if so configured). The command prompt displays as "#" for Privileged Exec mode.
To enter Privileged Exec mode, enter the following commands and passwords:
Username:admin CLI
session with the PowerEdge 1655MC is opened. # |
Username:guest CLI
session with the PowerEdge 1655MC is opened. >enable |
Configuration commands are privileged level commands used to modify switch settings. These commands modify the running configuration only and are not saved when the switch is rebooted. To store the running configuration in nonvolatile storage, use the copy running-config startup-config command.
The configuration commands are organized into three different modes:
To enter the Global Configuration mode, enter the command configure in Privileged Exec mode. The system prompt will change to "(config)# " which gives you access privilege to all Global Configuration commands.
#configure |
To enter Interface, Line Configuration, or VLAN mode, you must enter the "interface ," "line " or "vlan database" command while in Global Configuration mode. The system prompt will change to "(config-if)#," "(config-line)#" or "(config-vlan)" indicating that you have access privileges to the associated commands. You can use the end command to return to the Privileged Exec mode.
(config)#interface ethernet 1/5 |
Commands are not case sensitive. You can abbreviate commands and parameters as long as they contain enough letters to differentiate them from any other currently available commands or parameters. You can use the Tab key to complete partial commands, or enter a partial command followed by the "?" character to display a list of possible matches. You can also use the following editing keystrokes for command-line processing:
Keystroke | Function |
Ctrl-A | Shifts cursor to start of command line. |
Ctrl-B | Backspaces one character. |
Ctrl-E | Shifts cursor to end of command line. |
Ctrl-P | Shows the last command. |
Ctrl-U | Deletes the entire line. |
Ctrl-W | Deletes the last word typed. |
Delete key or backspace key |
Erases a mistake when entering a command. |