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

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

PDF

Command alias

To create shortcuts for commonly used or long commands, use the alias command. A command alias executes long commands with parameters.
  • To create a command alias that is persistent and available in other OS10 sessions, create the alias in CONFIGURATION mode.
  • To create a command alias that is non-persistent and is used only in the current OS10 session, create the alias in EXEC mode. After you close the session, the alias is removed from the switch.
  • Create a command alias in EXEC or CONFIGURATION mode.
    alias alias-name alias-value
    • The alias-name is case-sensitive and has a maximum of 20 characters. It does not support existing keywords, parameters, and short form of keywords.
    • The alias-value is the CLI command executed by the alias name. To enter command parameters, enter $n, where n is a number from 1 to 9 or an asterisk (*). Enter $* to enter up to nine parameters with the alias name.
    • You cannot create a shortcut for the alias command.
    • To delete an alias, use the no alias alias-name command.
    • To view the currently configured aliases, use the show alias [brief | detail] command.
Create an alias
OS10# alias showint "show interface $*"
OS10(config)# alias goint "interface ethernet $1"
View alias output for showint
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    -
...
View alias output for goint
OS10(config)# goint 1/1/1
OS10(conf-if-eth1/1/1)#
View alias information
OS10# show alias
Name                 Type
----                 ----
govlt                Config
goint                Config
shconfig             Local
showint              Local
shver                Local

Number of config aliases : 2
Number of local aliases : 3
View alias information brief. Displays the first 10 characters of the alias value.
OS10# show alias brief
Name                 Type        Value
----                 ----        -----
govlt                Config      "vlt-domain..."
goint                Config      "interface ..."
shconfig             Local       "show runni..."
showint              Local       "show inter..."
shver                Local       "show versi..."

Number of config aliases : 2
Number of local aliases : 3
View alias information in detail. Displays the entire alias value.
OS10# show alias detail
Name                 Type        Value
----                 ----        -----
govlt                Config      "vlt-domain $1"
goint                Config      "interface ethernet $1"
shconfig             Local       "show running-configuration"
showint              Local       "show interface $*"
shver                Local       "show version"

Number of config aliases : 2
Number of local aliases : 3

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

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