• 検索結果がありません。

コマンドの補完

ドキュメント内 FXC9024XG_MG.book (ページ 37-40)

3. コマンドラインインタフェース

3.2 コマンド入力

3.2.3 コマンドの補完

コマンドを入力している途中でTabキーを押すと、CLIが自動的にコマンドの残りを補完 し、キーワードが入力されます。例えば"logging history"コマンドを入力する際に、"log"

と入力してTabキーを押すと"logging"とキーワードがすべて入力されます。

Console>enable

Console#show startup-config

Console(config)#username admin password 0 smith

コマンド入力

コマンドの表示

コマンド上で"?"と入力すると、現在のコマンドクラスの第一階層にあるすべてのキーワー ドが表示されます。また特定のコマンドのキーワードを表示することもできます。例えば

"show ?"と入力すると、"show"コマンド内で使用できるコマンド一覧が表示されます。

Console#show ?

access-group Access groups access-list Access lists

arp Information of ARP cache bridge-ext Bridge extension information calendar Date and time information class-map Display class maps

dns DNS information dot1q-tunnel QinQ content dot1x 802.1x content garp GARP properties

gvrp GVRP interface information history History information

hosts Host information interfaces Interface information ip IP information

ipv6 IPv6 information lacp LACP statistics line TTY line information log Login records

logging Logging setting mac MAC access list

mac-address-table Configuration of the address table management Show management information

map Maps priority

mvr Show mvr interface information policy-map Display policy maps

port Port characteristics protocol-vlan Protocol-VLAN information public-key Public key information pvlan Private VLAN information queue Priority queue information radius-server RADIUS server information rip RIP

router Router

running-config Information on the running configuration snmp Simple Network Management Protocol statistics sntp Simple Network Time Protocol configuration ssh Secure shell server connections

startup-config Startup system configuration system System information

tacacs-server TACACS server settings

users Information about terminal lines version System hardware and software versions

コマンド入力

"show interfaces ?"と入力した場合には、以下のような情報が表示されます。

3.2.5 キーワードの検索

キーワードの一部と共に"?"を入力すると、入力した文字列から始まるすべてのキーワード が表示されます(入力する際に文字列と"?"の間にスペースを空けないで下さい)例えば、

"s?"と入力すると、以下のように"s"から始まるすべてのキーワードが表示されます。

3.2.6 コマンドのキャンセル

多くのコマンドにおいて、コマンドの前に"no"と入力することでコマンド実行の取り消 し、又は初期設定へのリセットを行うことができます。例えば、"logging"コマンドではホ ストサーバにシステムメッセージを保存します。"no logging"コマンドを使用するとシス テムメッセージの保存が無効となります。

本マニュアルでは、各コマンドの解説で"no"を利用してコマンドのキャンセルができる場 合にはその旨の記載がしてあります。

3.2.7 コマンド入力履歴の利用

CLIでは入力されたコマンドの履歴が保存されています。「↑」キーを押すことで、以前入 力した履歴が表示されます。表示された履歴は、再びコマンドとして利用することができる 他、履歴に表示されたコマンドの一部を修正して利用することもできます。

また、"show history"コマンドを使用すると最近利用したコマンドの一覧が表示されます。

Console#show interfaces ?

counters Interface counters information protocol-vlan Protocol-VLAN information status Interface status information switchport Interface switchport information Console#show interfaces

Console#show s?

snmp sntp  ssh  startup-config system

Console#show s

コマンド入力

ドキュメント内 FXC9024XG_MG.book (ページ 37-40)