Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ Administrator's Guide, Volume I
  3. Section VIII. Monitoring and reporting
  4. Email notifications
  5. Configure the nbmail.cmd script on the Windows hosts
Veritas NetBackup™ Administrator's Guide, Volume I

Configure the nbmail.cmd script on the Windows hosts

For Windows hosts to send and receive email notifications about backups, the nbmail.cmd script must be configured on the applicable hosts.

To configure the nbmail.cmd script on the Windows hosts

  1. Create a backup copy of nbmail.cmd.
  2. On the NetBackup master server, locate the following script:

    install_path\NetBackup\bin\goodies\nbmail.cmd

  3. Copy the script to the following directory on the applicable hosts:

    install_path\NetBackup\bin\

    Master and media server

    NetBackup sends notifications from the server if you configure the following setting:

    • The Administrator's email address in Global Attributes.

    • The Server sends email option in the Universal Settings.

    Client.

    NetBackup sends notifications from the client if you configure the following setting:

    • The Client sends email option in the Universal Settings.

  4. Use a text editor to open nbmail.cmd.

    The following options are used in the script:

    -s

    The subject line of the email

    -t

    Indicates who receives the email.

    -i

    The originator of the email, though it is not necessarily known to the mail server. The default (-i Netbackup) shows that the email is from NetBackup.

    -server

    The name of the SMTP server that is configured to accept and relay emails.

    -q

    Suppresses all output to the screen.

  5. Adjust the lines as follows:
    • Remove @REM from each of the five lines to activate the necessary sections for BLAT to run.

    • Replace SERVER_1 with the name of the mail server. For example:

      @IF "%~4"=="" (
      blat %3 -s %2 -t %1 -i Netbackup -server emailserver.company.com -q
      ) ELSE (
      blat %3 -s %2 -t %1 -i Netbackup -server emailserver.company.com -q -attach %4
      )
  6. Save nbmail.cmd.

Feedback

Was this page helpful?
Previous

Send notifications to a host administrator about backups

Next

Install and test the BLAT email utility on Windows

Feedback

Was this page helpful?