nbmail.cmd script (on Windows)
Use the nbmail.cmd script to send the specified recipients notifications about scheduled backups. The recipients' email addresses must also be configured in the Universal Settings host properties.
Windows systems also require that you install the Simple Mail Transfer Protocol application to transfer messages to accept script parameters. UNIX platforms have a built-in SMTP transfer method.
To create the script on a client, copy Install_path\NetBackup\bin\goodies\nbmail.cmd from the primary server into Install_path\NetBackup\bin of each client that is to receive the notification.
NetBackup passes the following parameters to the script:
%1 | Specifies the address of the recipient. For multiple addresses, enter email1,email2 |
%2 | Specifies the contents of the subject line. |
%3 | Specifies the file that is sent in the body of the email. This is generated by another script. |
%4 | Specifies the attached file name. |
NetBackup checks to see if nbmail.cmd is present in Install_path\NetBackup\bin. If nbmail.cmd exists, NetBackup passes the parameters to the script.