API Guide

命令模式
ALIAS
使用情况信息
此命令的 no 版本将从多行别名中删除行号和相应的命令。
示例
OS10(config)# alias mTest
OS10(config-alias-mTest)# line 1 "interface $1 $2"
OS10(config-alias-mTest)# line 2 "no shutdown"
OS10(config-alias-mTest)# line 3 "show configuration"
支持的版本
10.4.0E(R1) or later
Identifier GUID-876F06EA-634B-4E04-92AB-78F5B5C80D99
Version 4
Status Translation approved
show alias
显示在持久和非持久模式下均可用的已配置别名命令。
语法
show alias [brief | detail]
参数
brief 显示别名的简要信息。
detail 显示别名的详细信息。
默认
命令模式
EXEC
使用情况信息
示例
OS10# show alias
Name Type
---- ----
govlt Config
goint Config
mTest Config
shconfig Local
showint Local
shver Local
Number of config aliases : 3
Number of local aliases : 3
示例简要 显示
别名值的前 10 个字
))
OS10# show alias brief
Name Type Value
---- ---- -----
govlt Config "vlt-domain..."
goint Config "interface ..."
mTest Config line 1 "interface ..."
line 2 "no shutdow..."
line 3 "show confi..."
default 1 "ethernet"
default 2 "1/1/1"
shconfig Local "show runni..."
showint Local "show inter..."
shver Local "show versi..."
Number of config aliases : 3
Number of local aliases : 3
示例详情 显示
整个别名值
OS10# show alias detail
Name Type Value
---- ---- -----
govlt Config "vlt-domain $1"
goint Config "interface ethernet $1"
mTest Config line 1 "interface $1 $2"
line 2 "no shutdown"
94 高级 CLI 任务