Learn how to configure policy notifications in Dell NetWorker to send emails upon completion or failure. This tutorial covers both Linux and Windows environments, demonstrating the use of the mail and smtpmail commands.
Dell NetWorker: How to configure policy notifications to send email. In our NetWorker Management Console, when we have the list of policies, we select the policy of interest and look in the properties. Here we can define the notifications for that policy, we defined under what circumstances we want to send a notification, here it's on completion. And then in the command, because this is a Linux NetWorker server, we use the mail command: "mail -s" and some variables. And then the destination. In this case root.
The variables that we put after the "-s" are listed in the NSR notification section of the NetWorker command reference guide. Here we can see the variables such as NSR, policy, workflow, action, and different variables that will be expanded during the notification process from NetWorker to give more details in the notification. So "mail -s" and the variables we want to define and then the destination.
In this case root. Looking on the Linux NetWorker server using the "mailx" command, we can have a look at the emails which have been received as policy notifications. Here we pick one as an example of a failed policy, so that we can get more details in the notification and exactly what happened with that policy. Looking at a Windows example, we can see the properties here.
In this case we're using send notification only on failure and using the "smtpmail" command which is the Windows equivalent of the Linux mail command. This is a standard Windows command and can be used with the "-s" and the variables we want to expand "-h" and the name of the domain server. So this is the SMTP mail domain. And then the address where we want to send the email to.