メイン コンテンツに進む
  • すばやく簡単にご注文が可能
  • 注文内容の表示、配送状況をトラック
  • 会員限定の特典や割引のご利用
  • 製品リストの作成とアクセスが可能
  • 「Company Administration(会社情報の管理)」では、お使いのDell EMCのサイトや製品、製品レベルでのコンタクト先に関する情報を管理できます。

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

PDF

alias

Creates a command alias.

Syntax

alias alias-name alias-value

Parameters
  • alias-name — Enter the name of the alias. A maximum of 20 characters.
  • alias-value — Enter the command to execute in double quotation marks, then $ followed by either numbers ranging from 1 to 9 or an asterisk (*) with the parameters to execute in the command. Use asterisk (*) to represent any number of parameters.
Default
Not configured
Command Mode

EXEC

CONFIGURATION

Usage Information

Use this command to create a shortcut to long commands along with arguments. Use the numbers 1 to 9 along with $ to provide input parameters. The no version of this command deletes an alias.

Example

In this example, when you enter showint status, note that the text on the CLI changes to show interface status. The alias changes to the command specified in the alias definition.

OS10# alias showint "show interface $*"
OS10# showint status
---------------------------------------------------------------------------------
Port            Description     Status   Speed    Duplex   Mode Vlan Tagged-Vlans
---------------------------------------------------------------------------------
Eth 1/1/1                       up       40G               A    1    -
Eth 1/1/2                       up       40G               A    1    -
Eth 1/1/3                       up       40G               A    1    -
Eth 1/1/4                       up       40G               A    1    -
Eth 1/1/5                       up       40G               A    1    -
Eth 1/1/6                       up       40G               A    1    -
Eth 1/1/7                       up       40G               A    1    -
Eth 1/1/8                       up       40G               A    1    -
Eth 1/1/9                       up       40G               A    1    -
Eth 1/1/10                      up       40G               A    1    -
Eth 1/1/11                      up       40G               A    1    -
Eth 1/1/12                      up       40G               A    1    -
Eth 1/1/13                      up       40G               A    1    -
Eth 1/1/14                      up       40G               A    1    -
Eth 1/1/15                      up       40G               A    1    -
Eth 1/1/16                      up       40G               A    1    -
Eth 1/1/17                      up       40G               A    1    -
Eth 1/1/18                      up       40G               A    1    -
Eth 1/1/19                      up       40G               A    1    -
Eth 1/1/20                      up       40G               A    1    -
Eth 1/1/21                      up       40G               A    1    -
Eth 1/1/22                      up       40G               A    1    -
Eth 1/1/23                      up       40G               A    1    -
Eth 1/1/24                      up       40G               A    1    -
Eth 1/1/25                      up       40G               A    1    -
Eth 1/1/26                      up       40G               A    1    -
Eth 1/1/27                      up       40G               A    1    -
Eth 1/1/28                      up       40G               A    1    -
Eth 1/1/29                      up       40G               A    1    -
Eth 1/1/30                      up       40G               A    1    -
Eth 1/1/31                      up       40G               A    1    -
Eth 1/1/32                      up       40G               A    1    -
--------------------------------------------------------------------------------

In this example, when you enter goint 1/1/1, note that the text on the CLI changes to interface ethernet 1/1/1.

OS10(config)# alias goint "interface ethernet $1"
OS10(config)# goint 1/1/1
OS10(conf-if-eth1/1/1)#
Supported Releases
10.3.0E or later

このコンテンツを評価する

正確
有益
分かりやすい
この記事は役に立ちましたか?
0/3000 characters
  1~5個の星の数で評価してください。
  1~5個の星の数で評価してください。
  1~5個の星の数で評価してください。
  この記事は役に立ちましたか?
  コメントでは、以下の特殊文字は利用できません: <>()\