1 Using slot number, and port number with CLI commands

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 <alias-name> = <cli-command>

The <alias-name>must be a single word, without spaces.

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 <alias-name>

The specified <alias-name>must be the name of an alias already configured on the Brocade 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

copy running-config tftp 10.10.10.10 test.cfg

wrsbc

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.

10

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Page 28
Image 28
Brocade Communications Systems 6650 Creating an alias for a CLI command, Configuration notes for creating a command alias