NetWorker: nsr_shutdown fails to shut down NetWorker when the TIMEOUT variable is externally set to read only.
Resumen: 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.
Este artículo se aplica a
Este artículo no se aplica a
Este artículo no está vinculado a ningún producto específico.
No se identifican todas las versiones del producto en este artículo.
Síntomas
- 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:/ #
Causa
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.
Resolución
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.
Productos afectados
NetWorker, NetWorker SeriesPropiedades del artículo
Número del artículo: 000204196
Tipo de artículo: Solution
Última modificación: 19 jul 2023
Versión: 3
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.