Basic Operation Guide 2013/06
Table Of Contents
- Switch Software
- Contents
- 1 Commands found in the Basic Operation Guide
- 2 Getting started
- 3 Using the Menu Interface
- 4 Using the Command Line Interface (CLI)
- Overview
- Accessing the CLI
- Using the CLI
- Return message types with CLI commands
- CLI interactive commands
- CLI control and editing
- 5 Using the HP WebAgent
- 6 Switch memory and configuration
- Overview
- Configuration file management
- Using the CLI to implement configuration changes
- Creating a custom default configuration
- Using the menu and WebAgent to implement configuration changes configuration file
- Zeroization
- Using Primary and Secondary flash image options
- Multiple configuration files
- Display configuration of selected interface
- Automatic configuration update with DHCP Option 66
- 7 Interface access and system information
- 8 Configuring IP addressing
- Overview
- IP configuration
- Loopback interfaces
- IP Preserve: retaining VLAN-1 IP addressing across configuration file downloads
- Configuring a single source IP address
- 9 Software management
- Downloading switch documentation and software from the web
- Viewing or downloading the software manual set
- Downloading software updates for your switch
- Software signing and verification
- Saving configurations while using the CLI
- Important: Best Practices for software updates
- Updating the switch: overview
- Updating the switch: detailed steps
- Rolling back switch software
- Viewing or transferring alternate configuration files
- Downloading switch documentation and software from the web
- Index

Creates a shortcut alias name to use in place of a commonly used command. The
alias command is executed from the current config context.
name: Specifies the new command name to use to simplify keystrokes and aid
memory.
command: Specifies an existing command to be aliased. The command must be
enclosed in quotes.
Use the no form of the command to remove the alias.
For example, if you use the show interface custom command to specify the output, you can configure
an alias for the command to simplify execution. It is recommended that you use an alias that does
not have an existing tab completion in the CLI. For example, using an alias that starts with "show"
or "int" would complete to "show" and "interface" respectively when you use the tab completion
function.
Example 25 Using the alias command with show int custom
HP Switch(config)# show int custom 1-4 port name:4 type vlan intrusion speed
enabled mdi
Status and Counters - Custom Port Status
Intrusion
Port Name Type VLAN Alert Speed Enabled MDI-mode
---- -------- ---------- ----- --------- ------- ------- -------
1 Acco 100/1000T 1 No 1000FDx Yes Auto
2 Huma 100/1000T 1 No 1000FDx Yes Auto
3 Deve 100/1000T 1 No 1000FDx Yes Auto
4 Lab1 100/1000T 1 No 1000FDx Yes Auto
HP Switch(config)# alias sic "show int custom 1-4 port name:4 type vlan intrusion
speed enabled mdi"
HP Switch(config)#
HP Switch(config)# sic
Status and Counters - Custom Port Status
Intrusion
Port Name Type VLAN Alert Speed Enabled MDI-mode
---- -------- ---------- ----- --------- ------- ------- -------
1 Acco 100/1000T 1 No 1000FDx Yes Auto
2 Huma 100/1000T 1 No 1000FDx Yes Auto
3 Deve 100/1000T 1 No 1000FDx Yes Auto
4 Lab1 100/1000T 1 No 1000FDx Yes Auto
NOTE: Remember to enclose the command being aliased in quotes.
Command parameters for the aliased command can be added at the end of the alias command
string. For example:
HP Switch(config)# alias sc "show config"
HP Switch(config)# sc status
To change the command that is aliased, re-execute the alias name with new command options.
The new options are used when the alias is executed.
To display the alias commands that have been configured, enter the show alias command.
42 Using the Command Line Interface (CLI)










