運用コマンドレファレンス Vol.1


uninstall script

本装置にインストールされているPythonスクリプトファイルを削除します。常駐スクリプトとして起動中,または監視イベント発生を契機に起動中のスクリプトファイルを指定した場合,該当するプロセスを停止してファイルを削除します。

[入力形式]

uninstall script [-f] {all | <file name>}

[入力モード]

装置管理者モード

[パラメータ]

-f

確認メッセージを出力しないでコマンドを実行します。

本パラメータ省略時の動作

確認メッセージを出力します。

{all | <file name>}
all

本装置にインストールされているすべてのスクリプトファイルを削除します。

<file name>

指定したスクリプトファイルを削除します。ファイル名だけを指定してください。ファイルパス指定はできません。

<file name>には,英数字とドット(.),ハイフン(-),アンダースコア(_),チルダ(~),ハット(^)を使用できます。

カレントディレクトリの表示をしません。

[実行例]

図19‒5 スクリプトファイル(testscript.py)の削除
# uninstall script testscript.py
Do you want to delete the specified script file? (y/n): y
#

[表示説明]

なし

[通信への影響]

なし

[応答メッセージ]

表19‒5 uninstall scriptコマンドの応答メッセージ一覧

メッセージ

内容

The command cannot be executed because you are in user mode.

このコマンドは一般ユーザモードでは実行できません。

The command cannot be executed in the standby system.

このコマンドは待機系では実行できません。

The command cannot be executed. Try again.

コマンドを実行できません。再実行してください。

The command is not authorized by the RADIUS/TACACS+ server or the configuration.

このコマンドはRADIUSサーバ,TACACS+サーバ,またはコンフィグレーションで承認されていません。

The specified script file is not installed. (file name = <file name>)

指定したスクリプトファイルはインストールされていません。

<file name>:スクリプトファイル名

[注意事項]

なし