2-1Command Alias ConfigurationIntroductionAs the network environment becomes more complex and network products become increasinglydiverse, users always use network devices from several vendors in real networking environments. Inthis case, command keywords differences of devices from different vendors greatly increase thecomplexity of device configurations by network administrators.The command alias function can solve this problem. You can replace the first keyword of a commandsupported by the switch with your preferred keyword by configuring the command alias function. Forexample, 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 originalform of the command display xx is still effective.The command alias function well meets the users’ requirements for preferred form of frequently usedcommands, and thus facilitates network configurations as well as respects users' usage habits.Configuring Command AliasFollow these steps to configure command aliases:To do… Use the command… RemarksEnter system view system-view —Enable the command aliasfunction command-alias enableRequiredDisabled by default, that is, youcannot configure commandaliases.Configure command aliases command-alias mappingcmdkey aliasRequiredNot configured by default.Display defined commandaliases and the correspondingcommandsdisplay command-alias Available in any viewz You can replace only the first keyword of a non-undo command instead of the complete commandwith an alias; and you can replace only the second keyword of undo commands with aliases.z When you input a command alias, the system displays and saves the command in its originalformat instead of its alias. That is, you can define and use a command alias but the command is notsaved and restored in its alias.z If you press Tab after you input the keyword of an alias, the original format of the keyword will bedisplayed.z When you define a command alias, the cmdkey and alias arguments must be in complete form.z At present, the device supports up to 20 command aliases. In addition, different commands mustbe configured with different aliases.