Configuring the nbmail.cmd script

Article:HOWTO34256  |  Created: 2010-10-29  |  Updated: 2012-04-10  |  Article URL http://www.symantec.com/docs/HOWTO34256
Article Type
How To


Environment

Subject


Configuring the nbmail.cmd script

To receive email notifications about backups, the nbmail.com script must be configured for Windows.

By default, nbmail.cmd does not send email. Use the following procedure to configure the nbmail.cmd script.

To configure the nbmail.cmd script

  1. On a NetBackup master server, copy nbmail.com from the following directory: install_path\VERITAS\NetBackup\bin\goodies\nbmail.cmd

  2. Paste it into the following directory on the master server or on a client:  install_path\VERITAS\NetBackup\bin

  3. Use a text editor to open nbmail.cmd. Create a backup copy of nbmail.cmd before modifying it.

    In some text editors, using the word wrap option can create extra line feeds in the script and render it non-functional.

    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 email 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.

  4. Most of the lines are informational in nbmail.cmd.

    Locate the following lines in the script:

    @REM @IF "%~4"=="" (
    @REM blat %3 -s %2 -t %1 -i NetBackup -server SERVER_1 -q
    @REM ) ELSE (
    @REM blat %3 -s %2 -t %1 -i NetBackup -server SERVER_1 -q -attach %4
    @REM )
  5. Adjust the fives 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 email 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.

See About constraints on the number of concurrent jobs on Windows

See Setting up email notifications about backups on Windows

See Configuring the nbmail.cmd script on Windows

See Configuring the nbmail.cmd script on Windows

See Configuring the nbmail.cmd script on Windows

See Installing and testing the email utility

See About the Host Properties on Windows


Legacy ID



v40147262_v46435090


Article URL http://www.symantec.com/docs/HOWTO34256


Terms of use for this information are found in Legal Notices