Command Alias Configuration; Introduction; Configuring Command Alias - H3C S3100 Series Operation Manual

H3c s3100 series ethernet switches operation manual
Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Command Alias Configuration

Introduction

As the network environment becomes more complex and network products become increasingly
diverse, users always use network devices from several vendors in real networking environments. In
this case, command keywords differences of devices from different vendors greatly increase the
complexity of device configurations by network administrators.
The command alias function can solve this problem. You can replace the first keyword of a command
supported by the switch with your preferred keyword by configuring the command alias function. For
example, if you configure show as the replacement of the display keyword for each display command,
you can input the command alias show xx to execute the display xx command. In addition, the original
form of the command display xx is still effective.
The command alias function well meets the users' requirements for preferred form of frequently used
commands, and thus facilitates network configurations as well as respects users' usage habits.

Configuring Command Alias

Follow these steps to configure command aliases:
To do...
Enter system view
Enable the command alias function
Configure command aliases
Display defined command aliases
and the corresponding commands
You can replace only the first keyword of a non-undo command instead of the complete command
with an alias; and you can replace only the second keyword of undo commands with aliases.
When you input a command alias, the system displays and saves the command in its original
format instead of its alias. That is, you can define and use a command alias but the command is not
saved and restored in its alias.
If you press Tab after you input the keyword of an alias, the original format of the keyword will be
displayed.
When you define a command alias, the cmdkey and alias arguments must be in complete form.
At present, the device supports up to 20 command aliases. In addition, different commands must
be configured with different aliases.
Use the command...
system-view
command-alias enable
command-alias mapping cmdkey
alias
display command-alias
2-1
Remarks
Required
Disabled by default, that is, you
cannot configure command
aliases.
Required
Not configured by default.
Available in any view

Advertisement

Chapters

Table of Contents
loading

Table of Contents