NetWorker:如何配置策略电子邮件通知
Summary: 本知识库文章概述了 NetWorker 日志记录以及如何为基于策略的作配置简单邮件传输协议 (SMTP) 电子邮件通知。
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 通知可以使用 NetWorker 服务器的作系统邮件命令通过 SMTP 将备份信息发送到默认日志或电子邮件地址。
日志位置:
Linux:/nsr/logs
窗户:..\Program Files\EMC NetWorker\nsr\logs
窗户:..\Program Files\EMC NetWorker\nsr\logs
提醒:默认情况下,策略日志转到 /nsr/logs/policy,即使电子邮件而不是 nsrlog 用于通知也是如此。“nsrlog -f filename”命令用于将策略完成详细信息发送到 /nsr/logs 下的指定文件。默认文件为 /nsr/logs/policy_notifications.log。
电子邮件命令:
Linux:
mail [-s smtphost] [-s subject] [-r sender] recipient [recipient[...]]Windows:
smtpmail [-s subject] [-h smtphost] [-p port] [-f sender] recipient [recipient[...]]
有关这些命令的更多信息,请参阅作系统 mail 命令的手册页:
- mail/mailx: https://linux.die.net/man/1/mail
- smtpmail:https://www.mkssoftware.com/docs/man1/smtpmail.1.asp
提醒:邮件命令的主题可以使用不同的变量来自动提取信息(例如:策略名称、工作流名称、完成状态)。这些变量可能因 NetWorker 版本而异,请参阅《NetWorker Command Reference Guide》的“通知变量”部分,网址为: https://www.dell.com/support/home/product-support/product/networker/docs
“发送通知”条件包含以下选项:
- 失败时仅在作业失败时发送通知。
- 完成时,系统会发送一封电子邮件,说明备份是成功还是失败。
通知在 POLICY、WORKFLOW或 ACTION级别配置。
例如,在“Protection-->Policies”下设置 POLICY 通知:
默认情况下,工作流和作通知设置为“在策略级别设置”:
工作流通知设置:
作通知设置:
使用此配置时,将收到以下消息:
1完成后 策略中每个 工作流的“摘要通知报告”。
1此政策下 每项 行动的“行动报告”。
1此政策下 每项 行动的“行动报告”。
例如,使用此配置时,“服务器保护”策略将发送三封电子邮件:
1显示每个工作流完成时间和状态的“摘要通知报告”通知。
2“Action Report”通知显示每个 ACTION 的完成时间/状态和信息,例如:“Expiration”和“Server db backup”ACTIONS。
2“Action Report”通知显示每个 ACTION 的完成时间/状态和信息,例如:“Expiration”和“Server db backup”ACTIONS。
对于一个策略,这么多电子邮件可能是不需要的。您无法在 WORKFLOW 或 ACTION 字段中设置“Do not notify”,但可以将输出重定向到 ..\nsr\logs(通过配置以下内容):
政策:完成/失败时 — 特定于作系统的邮件命令和选项。请参阅 电子邮件命令。
工作流程:完成或失败时 -“nsrlog-f policy_notifications.log”
ACTION (expiration only):完成/失败时 — “nsrlog -f policy_notifications.log”
使用此配置时,将收到一封电子邮件,其中显示备份详细信息,工作流通知和“过期”作详细信息将发送到默认policy_notifications.log
Additional Information
Affected Products
NetWorkerProducts
NetWorker Family, NetWorker SeriesArticle Properties
Article Number: 000156456
Article Type: How To
Last Modified: 11 Nov 2025
Version: 9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.