NetWorker: nsr_shutdown fails to shut down NetWorker when the TIMEOUT variable is externally set to read only.
概要: NetWorker services cannot be shut down when nsr_shutdown is invoked and one of the variables within the script (TIMEOUT) is externally set to read-only.
この記事は次に適用されます:
この記事は次には適用されません:
この記事は、特定の製品に関連付けられていません。
すべての製品パージョンがこの記事に記載されているわけではありません。
現象
- The NetWorker system is on a Linux/UNIX operating system.
- NetWorker 19.7.0.1 or prior is installed.
- The nsr_shutdown command is issued to stop NetWorker services but fails with the following error.
nwsystem:/ # . /usr/bin/nsr_shutdown ksh: TIMEOUT: This variable is read only. nwsystem:/ #
原因
The nsr_shutdown unix script uses "TIMEOUT" as a local variable but this is actually a well-known global environment variable which can be made globally read-only by the user. When this happens, nsr_shutdown fails when it tries to set the TIMEOUT variable.
解決方法
Workaround
Edit the /usr/bin/nsr_shutdown script and change all instances of the variable TIMEOUT to any other variable name, example NSR_TIMEOUT.
Example:
TIMEOUT=`expr $TIMESTAMP + $TIMETOKILL`
while [ "`cat $NSR_SERVICES`" ] && [ $TIMEOUT -gt `GetTime` ]; do
Change to:
NSR_TIMEOUT=`expr $TIMESTAMP + $TIMETOKILL`
while [ "`cat $NSR_SERVICES`" ] && [ $NSR_TIMEOUT -gt `GetTime` ]; do
NetWorker engineering has updated the script to use a different variable. This fix will be incorporated in the next cumulative hotfix version of 19.7 after 19.7.0.1.
対象製品
NetWorker, NetWorker Series文書のプロパティ
文書番号: 000204196
文書の種類: Solution
最終更新: 19 7月 2023
バージョン: 3
質問に対する他のDellユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。