Forum Discussion

Broinrust's avatar
Broinrust
Level 3
10 months ago

Email notification

Hi All. Please tell me if I can set up email notifications for different people?. For example Policy1 - email1 Policy2 - email2 Policy3 - email3
  • you can send if clients in each policy is different using below , however if the clients are common on these policies there is no direct way to define in policy level, so you either needs to use pre and post jobs scripts, or scripts to verify and notify or use OpsCenter.

     

    Send notifications to a host administrator about backups

    You can send notifications to the host administrator about successful and failed backups for a specific host.

    On UNIX, NetBackup uses the mail transfer agent sendmail to send email notifications. Windows requires that an application to transfer messages with SMTP is installed. You also must configure the nbmail.cmd script on the Windows hosts that send notifications.

    See Configure the nbmail.cmd script on the Windows hosts.

    See Install and test the BLAT email utility on Windows.

    To send notifications for backups of a specific host

    1. On the primary server, sign in to the NetBackup Administration Console.
    2. Expand NetBackup Management > Host Properties > Clients.
    3. Double-click the client you want to modify.
    4. Click Universal Settings.
    5. Select the Client sends mail option. If the client cannot send mail, enable the Server sends mail option.
    6. Enter the email address of the host administrator to receive the notification emails and click Apply. (Separate multiple addresses with commas.)
    7. Click Apply.

4 Replies

  • you can send if clients in each policy is different using below , however if the clients are common on these policies there is no direct way to define in policy level, so you either needs to use pre and post jobs scripts, or scripts to verify and notify or use OpsCenter.

     

    Send notifications to a host administrator about backups

    You can send notifications to the host administrator about successful and failed backups for a specific host.

    On UNIX, NetBackup uses the mail transfer agent sendmail to send email notifications. Windows requires that an application to transfer messages with SMTP is installed. You also must configure the nbmail.cmd script on the Windows hosts that send notifications.

    See Configure the nbmail.cmd script on the Windows hosts.

    See Install and test the BLAT email utility on Windows.

    To send notifications for backups of a specific host

    1. On the primary server, sign in to the NetBackup Administration Console.
    2. Expand NetBackup Management > Host Properties > Clients.
    3. Double-click the client you want to modify.
    4. Click Universal Settings.
    5. Select the Client sends mail option. If the client cannot send mail, enable the Server sends mail option.
    6. Enter the email address of the host administrator to receive the notification emails and click Apply. (Separate multiple addresses with commas.)
    7. Click Apply.
  • Broinrust 

    As RamNagalla  said.. using post job scripts can do the trick here. This also allows you to capture any content that you want to see about the specific job. Its just the matter of creating a script with mail command smartly.

     

    • davidmoline's avatar
      davidmoline
      Level 6

      Agreed sanket_pathak1 

      Using the backup_exit_notify script on the master is the way to go. 

      It is fed a number of parameters include policy, client, schedule and status (the parameters may vary depending on NetBackup version). I have customer who have mofiied this script (template can be found in the goodies folder) to send notifications to various groups depending on policy and status. 

      You will need to modify the script to suit your needs and it needs to live in the NetBackup bin directory. The template has some instructions (but not much). 

      Cheers
      David