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

General (一般コマンド)

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

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

3.4 General (一般コマンド)

コマンド 機能 モード ページ

enable Privilegedモードの有効化 NE P28

disable PrivilegedモードからNormalモードへの変更 PE P30

configure Global Configurationモードの有効化 PE P31

show history コマンド履歴バッファの表示 NE,PE P32

reload 本機の再起動 PE P33

prompt CLIプロンプトのカスタマイズ GC P33

end Privileged Execモードへの変更 GC,IC,

LC,VC P34 exit 前の設定モードに戻る。

又はCLIセッションを終了

すべて P34 quit CLIセッションを終了 NE,PE P35

General(一般コマンド)

enable

Privileged Execモードを有効にする際に使用します。Privileged Execモードでは他のコマ

ンドを使用することができ、スイッチの情報を表示することができます。詳しくはP22

「コマンドモード」を参照して下さい。

文法

enable [

level

]

level

― Privilege Levelの設定

本機では2つの異なるモードが存在します。

0: Normal Exec、15: Privileged Exec

Privileged Execモードにアクセスするためにはlevel「15」を入力して下さい。

初期設定

Level 15

コマンドモード

Normal Exec

コマンド解説

• "super"がNormal ExecからPrivileged Execモードに変更するための初期設定パス ワードになります(パスワードの設定・変更を行う場合は、P105 「enable password」

を参照して下さい)

• プロンプトの最後に"#"が表示されている場合は、Privileged Execモードを表します。

関連するコマンド

disable (P30)

enable password (P105) Console>enable

Password: [privileged level password]

Console#

General(一般コマンド)

disable

Privileged ExecからNormal Execに変更する際に使用します。

Normal Execモードでは、本機の設定及び統計情報の基本的な情報の表示しか行えません。

すべてのコマンドを使用するためにはPrivileged Execモードにする必要があります。

詳細はP22 「コマンドモード」を参照して下さい。

初期設定

なし

コマンドモード

Privileged Exec

コマンド解説

プロンプトの最後に">"が表示されている場合はNormal Execモードを表します。

関連するコマンド

enable (P29)

Console#disable Console>

General(一般コマンド)

configure

Global Configurationモードを有効にする場合に使用します。スイッチの設定を行うためには

Global Configurationモードにする必要があります。さらにInterface Configuration, Line

Configuration, VLAN Database Configurationなどを行うためには、その先のモードにアクセスし ます。詳細はP22 「コマンドモード」を参照して下さい。

初期設定

なし

コマンドモード

Privileged Exec

関連するコマンド

end (P34)

Console#configure Console(config)#

General(一般コマンド)

show history

保存されているコマンドの履歴を表示する際に利用します。

初期設定

なし

コマンドモード

Normal Exec, Privileged Exec

コマンド解説

本機に保存できるコマンド履歴はExecutionコマンドとConfigurationコマンドがそれぞれ 最大10コマンドです。

本例では、コマンド履歴として保存されているコマンドを表示しています。

"!"コマンドを用いると、履歴のコマンドを実行することが可能です。Normal又は

Privileged Execモード時にはExecutionコマンドを、Configurationモード時には

Configurationコマンドの実行が行えます。

本例では、"!2"コマンドを入力することで、Executionコマンド履歴内の2番目のコマンド

("config"コマンド)を実行しています。

Console#show history

Execution command history:

2 config

1 show history

Configuration command history:

4 interface vlan 1 3 exit

2 interface vlan 1 1 end

Console#

Console#!2 Console#config Console(config)#

General(一般コマンド)

reload

システムの再起動を行う際に利用します。

[注意] 再起動時にはPower-On Self-testが実行されます。

初期設定

なし

コマンドモード

Privileged Exec

コマンド解説

システム全体の再起動を行います。

本機の再起動方法を示しています。

prompt

CLIプロンプトのカスタマイズを行います。"no"を前に置くことで初期設定に戻ります。

初期設定

Console

コマンドモード

Global Configuration

本例は、Interface ConfigurationからPrivileged Execモードへの変更を示しています。

Console#reload

System will be restarted, continue <y/n>? y

Console(config)#prompt RD2 RD2(config)#

General(一般コマンド)

end

Privilegedモードに戻る際に利用します。

初期設定

なし

コマンドモード

Global Configuration Interface Configuration Line Configuration

VLAN Database Configuration

本例は、Interface ConfigurationからPrivileged Execモードへの変更を示しています。

exit

Privileged Execモードに戻る場合や、CLIを終了する場合に使用します。

初期設定

なし

コマンドモード

すべて

Global ConfigurationモードからPrivileged Execモードへの変更と、CLIの終了を示してい

ます。

Console(config-if)#end Console#

Console(config)#exit Console#exit

Press ENTER to start session User Access Verification Username:

General(一般コマンド)

quit

CLIを終了する際に利用します。

初期設定

なし

コマンドモード

Normal Exec Privileged Exec

コマンド解説

"quit"、"exit"コマンドはどちらもConfigurationモードを終了する際に利用できます。

本例は、CLIセッションの終了を示しています。

Console#quit

Press ENTER to start session User Access Verification Username:

システム管理

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