Configuring and using command keyword aliases

The command keyword alias function allows you to use your own keywords to replace the following keywords when you execute a command:

For example, if you configure the alias show for the display keyword, you can enter either show clock or display clock to execute the display clock command.

Usage guidelines

Configuration procedure

To configure a command keyword alias:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable the command keyword alias function.

command-alias enable

By default, the command keyword alias function is disabled.

3. Configure a command keyword alias.

command-alias mapping cmdkey alias

By default, no command keyword alias is configured.

You must enter the cmdkey and alias arguments in their complete form.

4. (Optional.) Display command keyword alias information.

display command-alias

This command is available in any view.