Reference Guide

Table Of Contents
Example
In the following example, when you enter showint status, note that the text on the CLI changes to show
interface status. The alias changes to the actual command that you have specified in the alias definition.
OS10# alias showint "show interface $*"
OS10# showint status
---------------------------------------------------------------------------------
Port Description Status Speed Duplex Mode Vlan Tagged-Vlans
---------------------------------------------------------------------------------
Eth 1/1/1 up 40G A 1 -
Eth 1/1/2 up 40G A 1 -
Eth 1/1/3 up 40G A 1 -
Eth 1/1/4 up 40G A 1 -
Eth 1/1/5 up 40G A 1 -
Eth 1/1/6 up 40G A 1 -
Eth 1/1/7 up 40G A 1 -
Eth 1/1/8 up 40G A 1 -
Eth 1/1/9 up 40G A 1 -
Eth 1/1/10 up 40G A 1 -
Eth 1/1/11 up 40G A 1 -
Eth 1/1/12 up 40G A 1 -
Eth 1/1/13 up 40G A 1 -
Eth 1/1/14 up 40G A 1 -
Eth 1/1/15 up 40G A 1 -
Eth 1/1/16 up 40G A 1 -
Eth 1/1/17 up 40G A 1 -
Eth 1/1/18 up 40G A 1 -
Eth 1/1/19 up 40G A 1 -
Eth 1/1/20 up 40G A 1 -
Eth 1/1/21 up 40G A 1 -
Eth 1/1/22 up 40G A 1 -
Eth 1/1/23 up 40G A 1 -
Eth 1/1/24 up 40G A 1 -
Eth 1/1/25 up 40G A 1 -
Eth 1/1/26 up 40G A 1 -
Eth 1/1/27 up 40G A 1 -
Eth 1/1/28 up 40G A 1 -
Eth 1/1/29 up 40G A 1 -
Eth 1/1/30 up 40G A 1 -
Eth 1/1/31 up 40G A 1 -
Eth 1/1/32 up 40G A 1 -
--------------------------------------------------------------------------------
In the following example, when you enter goint 1/1/1, note that the text on the CLI changes to interface
ethernet 1/1/1.
OS10# configure terminal
OS10(config)# alias goint "interface ethernet $1"
OS10(config)# goint 1/1/1
OS10(conf-if-eth1/1/1)#
Supported
Releases
10.3.0E or later
alias (multi-line)
Creates a mulit-line command alias.
Syntax
alias alias-name
Parameters alias-name Enter the name of the alias (up to 20 characters).
Default Not configured
Command Mode CONFIGURATION
Usage
Information
Use this command to save a series of multiple commands in an alias. The switch enters the ALIAS
mode when you create an alias. You can enter the series of commands to be executed using the line
command.
Getting Started 51