NetWorker:如何设置日志滚动/截断时间
Summary: NetWorker:如何设置日志滚动更新或截断时间。
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
需要将 NetWorker 日志设置为每日滚动更新,而不是允许它们增长。
Cause
。
Resolution
在服务器上运行 nsradmin:
nsradmin -p nsrexecd -s localhost
NetWorker administration program.
Use the "help" command for help, "visual" for full-screen mode.
nsradmin> p type: NSR log
当前设置:
type: NSR log;
administrator: root, "user=root,host=server.domain.com";
owner: NMC Log File;
maximum size MB: 2;
maximum versions: 10;
runtime rendered log: ;
runtime rollover by size: Disabled;
runtime rollover by time: Disabled;
name: gstd.raw;
log path: /opt/lgtonmc/logs/gstd.raw;
type: NSR log;
administrator: root, "user=root,host=server.domain.com ";
owner: NetWorker;
maximum size MB: 2;
maximum versions: 10;
runtime rendered log: ;
runtime rollover by size: Disabled;
runtime rollover by time: Disabled;
name: daemon.raw;
log path: /nsr/logs/daemon.raw;
要更新时间,请执行以下作:
nsradmin> update runtime rollover by time: "17:00"
runtime rollover by time: "17:00";
Update? y
updated resource id 14.0.236.7.47.0.0.0.11.30.125.83.192.168.123.102(3)
runtime rollover by time: "17:00";
Update? y
updated resource id 13.0.236.7.47.0.0.0.11.30.125.83.192.168.123.102(3)
nsradmin>
Additional Information
日志轮换的实际时间最多可以在指定时间之后一小时,因为日志轮换时间在 NetWorker 启动后每小时检查一次。
因此,在上面的示例中,对于从 hh:35 启动的 NetWorker,日志轮换在每天 17:35 进行。
因此,在上面的示例中,对于从 hh:35 启动的 NetWorker,日志轮换在每天 17:35 进行。
Affected Products
NetWorkerProducts
NetWorkerArticle Properties
Article Number: 000052666
Article Type: Solution
Last Modified: 10 Apr 2025
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.