NetWorker:dbgcommand 失败,并显示“无法打开临时文件'/nsr/tmp/lgdbg.tmp'”

Summary: 未以 root 用户身份登录时,dbg命令失败,并显示 “无法打开临时文件'/nsr/tmp/lgdbg.tmp'”。使用 su [Substitute User] 或 sudo [Super User Do] 运行命令。

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

已确定的问题

dbgcommand 未以 root 用户身份登录时失败。

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

错误消息

错误消息指示 dbgcommand 无法打开临时文件。

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

Cause

问题的根本原因

此问题的根本原因是 dbgcommand 未以根用户身份运行时失败。

这是由于 dbgcommand 尝试访问临时文件/nsr/tmp/lgdbg.tmp“,当使用非 root 用户名运行时,它无法打开。

特定条件

当 dbgcommand 通过没有 root 权限的用户名执行。

相关错误消息

错误消息”Cannot open temporary file '/nsr/tmp/lgdbg.tmp“”是指示问题根本原因的关键指示器。
此外,当用户尝试使用 sudo 运行命令时,错误消息不在 sudo 列表

$ 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

要解决此问题,请运行 dbgcommand 使用 提升的权限 susudo 命令验证每个 SP 是处于正常模式还是修复模式。

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

或者,如果用户在 sudo'ers 列表中,则用户可以使用 sudo 命令以运行 dbgcommand

$ sudo dbgcommand -n nsrsnmd Debug=1
提醒:如果用户不在 sudoers 文件中,则用户会收到一条错误消息,并将报告事件。

验证解决方案

运行 dbgcommand 使用提升的权限时,通过检查命令的输出来验证问题是否已解决。此外,通过使用以下命令查看守护程序日志: nsr_render_log 对于消息”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.