NetWorker: nsr_shutdown fails to shut down NetWorker when the TIMEOUT variable is externally set to read only.
Podsumowanie: 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.
Ten artykuł dotyczy
Ten artykuł nie dotyczy
Ten artykuł nie jest powiązany z żadnym konkretnym produktem.
Nie wszystkie wersje produktu zostały zidentyfikowane w tym artykule.
Objawy
- 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:/ #
Przyczyna
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.
Rozwiązanie
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.
Produkty, których dotyczy problem
NetWorker, NetWorker SeriesWłaściwości artykułu
Numer artykułu: 000204196
Typ artykułu: Solution
Ostatnia modyfikacja: 19 lip 2023
Wersja: 3
Znajdź odpowiedzi na swoje pytania u innych użytkowników produktów Dell
Usługi pomocy technicznej
Sprawdź, czy Twoje urządzenie jest objęte usługą pomocy technicznej.