NetWorker: il comando dbg ha esito negativo con errore "Impossibile aprire il file temporaneo '/nsr/tmp/lgdbg.tmp'"

Summary: Il comando dbg ha esito negativo con il messaggio "Impossibile aprire il file temporaneo '/nsr/tmp/lgdbg.tmp'" quando non si è connessi come root. Utilizzare su [Utente sostituto] o sudo [Super-user Do] per eseguire il comando. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Problema identificato

La colonna dbgcommand Ha esito negativo se non si effettua l'accesso come root.

Cannot open temporary file '/nsr/tmp/lgdbg.tmp'.

Messaggio di errore

Il messaggio di errore indica che il dbgcommand Impossibile aprire un file temporaneo.

[USERNAME@HOSTNAME logs]$ dbgcommand -n nsrsnmd Debug=1
Process ID List : 2454232
Processing PID:2454232
Cannot open temporary file '/nsr/tmp/lgdbg.tmp'.

Cause

Root cause del problema

La root cause del problema è che il dbgcommand Ha esito negativo quando non viene eseguito come utente root.

Ciò è dovuto al fatto che dbgcommand Tentativo di accesso a un file temporaneo '/nsr/tmp/lgdbg.tmp' che non può aprire quando viene eseguito da un nome utente non root.

Condizioni specifiche

Il problema si pone quando il dbgcommand viene eseguita da un nome utente senza privilegi root.

Messaggi di errore rilevanti

Viene visualizzato il messaggio di errore "Cannot open temporary file '/nsr/tmp/lgdbg.tmpè un indicatore chiave della root cause del problema.
Inoltre, quando l'utente tenta di eseguire il comando con sudo, il messaggio di errore quando non si trova su sudo Elenco

$ sudo dbgcommand -n nsrsnmd Debug=1

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for DELLEMC:
DELLEMC is not in the sudoers file.  This incident will be reported.

Resolution

Per risolvere il problema, eseguire il comando dbgcommand con privilegi elevati utilizzando il metodo su oppure sudo .

$ whoami
$ su -
Password: 
# dbgcommand -n nsrsnmd Debug=1

In alternativa, se l'utente è nell'elenco sudo'ers, può utilizzare il metodo sudo per eseguire il comando dbgcommand.

$ sudo dbgcommand -n nsrsnmd Debug=1
NOTA: Se l'utente non si trova nel file sudoers, l'utente riceve un messaggio di errore e l'incidente verrà segnalato.

Verifica della risoluzione

Dopo aver eseguito il comando dbgcommand Con privilegi elevati, verificare che il problema sia stato risolto controllando l'output del comando. Inoltre, esaminando il log del daemon con nsr_render_log per il messaggio "nsrsnmd SYSTEM notice Changing Debug level from 0 to 1".

Additional Information

Affected Products

NetWorker

Products

NetWorker Family
Article Properties
Article Number: 000331479
Article Type: Solution
Last Modified: 25 مايو 2026
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.