NetWorker:如何启用 AUTHC 调试以进行故障排除

Summary: 本知识库文章概述了如何为 NetWorker 的身份验证服务 (authc) 启用调试。不建议将启用调试作为初始故障处理步骤。当默认日志记录不能充分详细说明 authc 中遇到的问题时,建议执行此过程。

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.

Instructions

必须在 NetWorker (AUTHC) 服务器上修改两个文件。

(1) 

Linux: /nsr/authc/webapps/auth-server/WEB-INF/classes/log4j.properties
Windows: ..\Program Files\EMC NetWorker\nsr\authc-server\tomcat\webapps\auth-server\WEB-INF\classes\log4j.properties

(2)
Linux: /opt/nsr/authc-server/conf/authc-cli-log4j.properties
Windows: ..\Program Files\EMC NetWorker\nsr\authc-server\conf\authc-cli-log4j.properties
 
提醒:在更改这些文件之前,请创建每个文件的拷贝。

(1) log4j.properties:

log4j.properties 您应该会看到:

appender.app.policies.size.size=2000KB
appender.audit.policies.size.size=2000KB
logger.audit.level = error
rootLogger.level = warn

更改为:

appender.app.policies.size.size=100MB
appender.audit.policies.size.size=100MB
logger.audit.level = debug
rootLogger.level= debug

 

(2) authc-cli-log4j.properties:

authc-cli-log4j.properties 您应该看到的文件:

appender.syslog.policies.size.size=100KB
rootLogger.level = error
更改为:
appender.syslog.policies.size.size=100MB
rootLogger.level= debug

 

重新启动服务:

必须重新启动 NetWorker 服务器服务才能使调试更改生效。

Linux:

nsr_shutdown 
systemctl start networker 

Windows:

net stop nsrd
net start nsrd

 

监视 NetWorker 服务器daemon.raw有关 NetWorker 服务器服务 (nsrd) 启动的消息:

Linux: /nsr/logs/daemon.raw
Windows: ..\Program Files\EMC NetWorker\nsr\logs\daemon.raw

NetWorker:如何使用nsr_render_log呈现.raw日志文件

 

标记为 DEBUG 的消息应显示在 authc-server-audit.logauthc-server.log 

Linux: /nsr/authc/logs/
Windows: ..\Program Files\EMC NetWorker\nsr\authc-server\tomcat\logs\

禁用调试:

log4j.propertiesauthc-cli-log4j.properties 添加到应用调试设置之前创建的原始拷贝。如果未创建拷贝,请设置上面概述的默认参数。需要重新启动 NetWorker 服务器服务才能在不应用调试的情况下重新加载身份验证服务。

Additional Information

Affected Products

NetWorker

Products

NetWorker Family, NetWorker Series
Article Properties
Article Number: 000196412
Article Type: How To
Last Modified: 09 Jul 2025
Version:  9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.