(1) 在任一视图下,键入<?>获取该视图下所有的命令及其简单描述。
<Quidway> ?
Monitor view commands:
debugging Enable system debugging functions
display Display running system information
quit Exit from current command view
reboot Reset slot
reset Reset all ethernet interfaces counter information
save Save current configuration
super Enter the monitor view with specified priority level
system-view Enter the system view
undo Cancel current setting
(2) 键入一命令,后接以空格分隔的“?”,如果该位置为关键字,则列出全部关键字及其简单描述。
<Quidway>display ?
current-configuration Current configuration
diagnostic-information System information for diagnosis
hgmp Hgmp information
interface Interface status and configuration information
link-aggregation Ports aggregation mode
mac-address Configure MAC address
memory Display mem info
monitor Display the monitor port
qos-info Display Qos information
saved-configuration The saved configuration information
version System hardware and software version information
vlan Vlan configuration information
(3) 键入一字符串,其后紧接<?>,列出以该字符串开头的所有命令。
<Quidway>debugg?
Monitor view commands:
debugging Enable system debugging functions
(4) 键入一命令,后接一字符串紧接<?>,列出命令以该字符串开头的所有关键字。 <Quidway> display ver?
version System hardware and software version information
(5) 输入一命令的前面几个字母,键入<Tab>键则会将该命令的字符串补全。
<Quidway> dis<Tab>
<Quidway> display
& 说明:
如果以输入的字母打头的命令不唯一,则无法联想出命令。
2.1.5 命令行错误信息
所有用户键入的命令,如果通过语法检查,则正确执行,否则向用户报告错误信息,常见错误信息参见表2-4。
表2-4 命令行常见错误信息表,英文错误信息.错误原因
Unrecognized command