Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

CHAPTER
Send feedback to nx5000-docfeedback@cisco.com
2-1
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
2
Using the Command-Line Interface
This chapter describes the command-line interface (CLI) and CLI command modes. It includes the
following sections:
Accessing the Command Line Interface, page 2-1
Using the CLI, page 2-2
Using Commands, page 2-6
Using CLI Variables, page 2-9
Using Command Aliases, page 2-10
Defining Command Aliases, page 2-10
Command Scripts, page 2-11
Accessing the Command Line Interface
You can connect to the switch using a terminal plugged into the console port. See Console Settings,
page 3-3 for information on how to set console port parameters.
You can also connect to the switch with Telnet or SSH. The switch supports up to eight simultaneous
Telnet and SSH connections. To connect with Telnet or SSH, you need to know the hostname or IP
address of the switch.
To make a Telnet connection to the switch, perform these steps:
Command Purpose
Step 1
telnet {hostname | ip_addr}
Makes a Telnet connection from your host to the switch that you
want to access.
Step 2
Login: admin
Password: password
Initiates authentication.
Note If no password has been configured, press Return.
Step 3
switch# exit
Exits the session when finished.