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 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。