Creating an alias for a cli command – Brocade Communications Systems Brocade ICX 6650 User Manual
Page 28

10
Brocade ICX 6650 Administration Guide
53-1002600-01
Using slot number, and port number with CLI commands
1
If you want to filter for a special character instead of using the special character as described in the
table above, enter “\” (backslash) in front of the character. For example, to filter on output
containing an asterisk, enter the asterisk portion of the regular expression as “\*”.
Brocade#show ip route bgp | include \*
Creating an alias for a CLI command
You can create aliases for CLI commands. An alias serves as a shorthand version of a longer CLI
command. For example, you can create an alias called shoro for the CLI command show ip route.
Then when you enter shoro at the command prompt, the show ip route command is executed.
To create an alias called shoro for the CLI command show ip route, enter the alias shoro = show ip
route command.
Brocade(config)#alias shoro = show ip route
Syntax: [no] alias
The
After the alias is configured, entering shoro at either the Privileged EXEC or CONFIG levels of the
CLI, executes the show ip route command.
To create an alias called wrsbc for the CLI command copy running-config tftp 10.10.10.10 test.cfg,
enter the following command.
Brocade(config)#alias wrsbc = copy running-config tftp 10.10.10.10 test.cfg
To remove the wrsbc alias from the configuration, enter one of the following commands.
Brocade(config)#no alias wrsbc
or
Brocade(config)#unalias wrsbc
Syntax: unalias
The specified
device.
To display the aliases currently configured on the Brocade device, enter the following command at
either the Privileged EXEC or CONFIG levels of the CLI.
Brocade#alias
wrsbc copy running-config tftp 10.10.10.10 test.cfg
shoro show ip route
Syntax: alias
Configuration notes for creating a command alias
The following configuration notes apply to this feature:
•
You cannot include additional parameters with the alias at the command prompt. For
example, after you create the shoro alias, shoro bgp would not be a valid command.