cancel
Showing results for 
Search instead for 
Did you mean: 

can't get Vault to email report(s)??

Phong_Thai
Level 4
I'm currently running NBU6.0 MP2 on Windows 2003. I'm setting up Vault to eject tapes for offsite storage. I'm able to get tapes ejected but can't seem to get Vault to email the reports.

I have added my email account to Vault Management Properties, Global Properties of the Master server, the reports tab of the Vault Profile. I also have nbmail.cmd setup using Blat.exe as followed. The Blat command is located in veritas\netbackup\bin

blat %3 -s %2 -t %1 -i sender's email address -server email system -q -mine -attach %4

Can someone tell me what am I missing?
1 ACCEPTED SOLUTION

Accepted Solutions

zippy
Level 6
Test your blat first make sure your server can send a regular e-mail.

do
Blat -to



Blat v2.5.0 w/GSS encryption (build : Sep 14 2005 22:46:29)


Win32 console utility to send mail via SMTP or post to usenet via NNTP
by P.Mendes,M.Neal,G.Vollant,T.Charron,T.Musson,H.Pesonen,A.Donchey,C.Hyde
http://www.blat.net
syntax:
Blat -to
Blat -install ]]
Blat -profile
Blat -h

-------------------------------- Installation ---------------------------------
-install ]]]]
: set server, sender, number of tries and port for profile
( and may be replaced by '-')
port defaults are SMTP=25, NNTP=119, POP3=110
default profile can be specified with a '-'
username and/or password may be stored to the registry
order of options is specific
use -installNNTP for storing NNTP information
use -installPOP3 for storing POP3 information
(sender and try are ignored, use '-' in place of these)

--------------------------------- The Basics ----------------------------------
: file with the message body to be sent
if your message body is on the command line, use a hyphen (-)
as your first argument, and -body followed by your message
if your message will come from the console/keyboard, use the
hyphen as your first argument, but do not use -body option.
-of : text file containing more options (also -optionfile)
-to : recipient list (also -t) (comma separated)
-tf : recipient list filename
-cc : carbon copy recipient list (also -c) (comma separated)
-cf : cc recipient list filename
-bcc : blind carbon copy recipient list (also -b)
(comma separated)
-bf : bcc recipient list filename
-maxNames : send to groups of number of recipients
-ur : set To: header to Undisclosed Recipients if not using the
-to and -cc options
-subject : subject line, surround with quotes to include spaces(also -s)
-ss : suppress subject line if not defined
-sf : file containing subject line
-body : message body, surround with quotes to include spaces
-sig : text file containing your email signature
-tag : text file containing taglines, to be randomly chosen
-ps : final message text, possibly for unsubscribe instructions

----------------------------- Registry overrides ------------------------------
-p : send with server, user, and port defined in
: use username and password if defined in
-profile : list all profiles in the Registry
-server : specify SMTP server to be used (optionally, addr:port)
-serverSMTP
: same as -server
-serverNNTP
: specify NNTP server to be used (optionally, addr:port)
-serverPOP3
: specify POP3 server to be used (optionally, addr:port)
when POP3 access is required before sending email
-f : override the default sender address (must be known to server)
-i : a 'From:' address, not necessarily known to the server
-port : port to be used on the SMTP server, defaults to SMTP (25)
-portSMTP : same as -port
-portNNTP : port to be used on the NNTP server, defaults to NNTP (119)
-portPOP3 : port to be used on the POP3 server, defaults to POP3 (110)
-u : username for AUTH LOGIN (use with -pw)
-pw : password for AUTH LOGIN (use with -u)
-pu : username for POP3 LOGIN (use with -ppw)
-ppw : password for POP3 LOGIN (use with -pu)

---------------------- Miscellaneous RFC header switches ----------------------
-organization
: Organization field (also -o and -org)
-ua : include User-Agent header line instead of X-Mailer
-x < detail="">
: custom 'X-' header. eg: -x "X-INFO: Blat is Great!"
-noh : prevent X-Mailer/User-Agent header from showing Blat homepage
-noh2 : prevent X-Mailer header entirely
-d : request disposition notification
-r : request return receipt
-charset : user defined charset. The default is ISO-8859-1
-a1
: add custom header line at the end of the regular headers
-a2
: same as -a1, for a second custom header line
-dsn : use Delivery Status Notifications (RFC 3461)
n = never, s = successful, f = failure, d = delayed
can be used together, however N takes precedence
-hdrencb : use base64 for encoding headers, if necessary
-hdrencq : use quoted-printable for encoding headers, if necessary
-priority : set message priority 0 for low, 1 for high

----------------------- Attachment and encoding options -----------------------
-attach : attach binary file(s) to message (filenames comma separated)
-attacht : attach text file(s) to message (filenames comma separated)
-attachi : attach text file(s) as INLINE (filenames comma separated)
-embed : embed file(s) in HTML. Object tag in HTML must specify
content-id using cid: tag. eg:
-af : file containing list of binary file(s) to attach (comma
separated)
-atf : file containing list of text file(s) to attach (comma
separated)
-aef : file containing list of embed file(s) to attach (comma
separated)
-base64 : send binary files using base64 (binary MIME)
-uuencode : send binary files UUEncoded
-enriched : send an enriched text message (Content-Type=text/enriched)
-unicode : message body is in 16- or 32-bit Unicode format
-html : send an HTML message (Content-Type=text/html)
-alttext : plain text for use as alternate text
-alttextf : plain text file for use as alternate text
-mime : MIME Quoted-Printable Content-Transfer-Encoding
-8bitmime : ask for 8bit data support when sending MIME
-multipart
: send multipart messages, breaking attachments on
KB boundaries, where is per 1000 bytes
-nomps : do not allow multipart messages

---------------------------- NNTP specific options ----------------------------
-groups
: list of newsgroups (comma separated)

-------------------------------- Other options --------------------------------
-h : displays this help (also -?, /?, -help or /help)
-q : suppresses all output to the screen
-debug : echoes server communications to a log file or screen
(overrides -q if echoes to the screen)
-log : log everything but usage to
-timestamp : when -log is used, a timestamp is added to each log line
-ti : set timeout to 'n' seconds. Blat will wait 'n' seconds for
server responses
-try : how many times blat should try to send (1 to 'INFINITE')
-binary : do not convert ASCII | (pipe, 0x7c) to CrLf in the message
body
-hostname : select the hostname used to send the message via SMTP
this is typically your local machine name
-raw : do not add CR/LF after headers
-delay : wait x seconds between messages being sent when used with
-maxnames or -multipart
-comment : use this character to mark the start of commments in
options files and recipient list files. The default is ;
-superdebug : hex/ascii dump the data between Blat and the server
-superdebugT : ascii dump the data between Blat and the server
-------------------------------------------------------------------------------

Note that if the '-i' option is used, is included in 'Reply-to:'
and 'Sender:' fields in the header of the message.

Optionally, the following options can be used instead of the -f and -i
options:

-mailfrom The RFC 821 MAIL From: statement
-from The RFC 822 From: statement
-replyto The RFC 822 Reply-To: statement
-returnpath The RFC 822 Return-Path: statement
-sender The RFC 822 Sender: statement

For backward consistency, the -f and -i options have precedence over these
RFC 822 defined options. If both -f and -i options are omitted then the
RFC 821 MAIL FROM statement will be defaulted to use the installation-defined
default sender address.

View solution in original post

16 REPLIES 16

zippy
Level 6
Opps it was a slip sorry...

Phong_Thai
Level 4
Sorry James. It's something that I will have to remember.

zippy
Level 6
Phong,

What is the blat output

blat help
or
blat ?

post it.


Thanks

JD

Stumpr2
Level 6
>Opps it was a slip sorry...

James,
Be nice to Phong.
He is my neighbor.
BS

zippy
Level 6
Test your blat first make sure your server can send a regular e-mail.

do
Blat -to



Blat v2.5.0 w/GSS encryption (build : Sep 14 2005 22:46:29)


Win32 console utility to send mail via SMTP or post to usenet via NNTP
by P.Mendes,M.Neal,G.Vollant,T.Charron,T.Musson,H.Pesonen,A.Donchey,C.Hyde
http://www.blat.net
syntax:
Blat -to
Blat -install ]]
Blat -profile
Blat -h

-------------------------------- Installation ---------------------------------
-install ]]]]
: set server, sender, number of tries and port for profile
( and may be replaced by '-')
port defaults are SMTP=25, NNTP=119, POP3=110
default profile can be specified with a '-'
username and/or password may be stored to the registry
order of options is specific
use -installNNTP for storing NNTP information
use -installPOP3 for storing POP3 information
(sender and try are ignored, use '-' in place of these)

--------------------------------- The Basics ----------------------------------
: file with the message body to be sent
if your message body is on the command line, use a hyphen (-)
as your first argument, and -body followed by your message
if your message will come from the console/keyboard, use the
hyphen as your first argument, but do not use -body option.
-of : text file containing more options (also -optionfile)
-to : recipient list (also -t) (comma separated)
-tf : recipient list filename
-cc : carbon copy recipient list (also -c) (comma separated)
-cf : cc recipient list filename
-bcc : blind carbon copy recipient list (also -b)
(comma separated)
-bf : bcc recipient list filename
-maxNames : send to groups of number of recipients
-ur : set To: header to Undisclosed Recipients if not using the
-to and -cc options
-subject : subject line, surround with quotes to include spaces(also -s)
-ss : suppress subject line if not defined
-sf : file containing subject line
-body : message body, surround with quotes to include spaces
-sig : text file containing your email signature
-tag : text file containing taglines, to be randomly chosen
-ps : final message text, possibly for unsubscribe instructions

----------------------------- Registry overrides ------------------------------
-p : send with server, user, and port defined in
: use username and password if defined in
-profile : list all profiles in the Registry
-server : specify SMTP server to be used (optionally, addr:port)
-serverSMTP
: same as -server
-serverNNTP
: specify NNTP server to be used (optionally, addr:port)
-serverPOP3
: specify POP3 server to be used (optionally, addr:port)
when POP3 access is required before sending email
-f : override the default sender address (must be known to server)
-i : a 'From:' address, not necessarily known to the server
-port : port to be used on the SMTP server, defaults to SMTP (25)
-portSMTP : same as -port
-portNNTP : port to be used on the NNTP server, defaults to NNTP (119)
-portPOP3 : port to be used on the POP3 server, defaults to POP3 (110)
-u : username for AUTH LOGIN (use with -pw)
-pw : password for AUTH LOGIN (use with -u)
-pu : username for POP3 LOGIN (use with -ppw)
-ppw : password for POP3 LOGIN (use with -pu)

---------------------- Miscellaneous RFC header switches ----------------------
-organization
: Organization field (also -o and -org)
-ua : include User-Agent header line instead of X-Mailer
-x < detail="">
: custom 'X-' header. eg: -x "X-INFO: Blat is Great!"
-noh : prevent X-Mailer/User-Agent header from showing Blat homepage
-noh2 : prevent X-Mailer header entirely
-d : request disposition notification
-r : request return receipt
-charset : user defined charset. The default is ISO-8859-1
-a1
: add custom header line at the end of the regular headers
-a2
: same as -a1, for a second custom header line
-dsn : use Delivery Status Notifications (RFC 3461)
n = never, s = successful, f = failure, d = delayed
can be used together, however N takes precedence
-hdrencb : use base64 for encoding headers, if necessary
-hdrencq : use quoted-printable for encoding headers, if necessary
-priority : set message priority 0 for low, 1 for high

----------------------- Attachment and encoding options -----------------------
-attach : attach binary file(s) to message (filenames comma separated)
-attacht : attach text file(s) to message (filenames comma separated)
-attachi : attach text file(s) as INLINE (filenames comma separated)
-embed : embed file(s) in HTML. Object tag in HTML must specify
content-id using cid: tag. eg:
-af : file containing list of binary file(s) to attach (comma
separated)
-atf : file containing list of text file(s) to attach (comma
separated)
-aef : file containing list of embed file(s) to attach (comma
separated)
-base64 : send binary files using base64 (binary MIME)
-uuencode : send binary files UUEncoded
-enriched : send an enriched text message (Content-Type=text/enriched)
-unicode : message body is in 16- or 32-bit Unicode format
-html : send an HTML message (Content-Type=text/html)
-alttext : plain text for use as alternate text
-alttextf : plain text file for use as alternate text
-mime : MIME Quoted-Printable Content-Transfer-Encoding
-8bitmime : ask for 8bit data support when sending MIME
-multipart
: send multipart messages, breaking attachments on
KB boundaries, where is per 1000 bytes
-nomps : do not allow multipart messages

---------------------------- NNTP specific options ----------------------------
-groups
: list of newsgroups (comma separated)

-------------------------------- Other options --------------------------------
-h : displays this help (also -?, /?, -help or /help)
-q : suppresses all output to the screen
-debug : echoes server communications to a log file or screen
(overrides -q if echoes to the screen)
-log : log everything but usage to
-timestamp : when -log is used, a timestamp is added to each log line
-ti : set timeout to 'n' seconds. Blat will wait 'n' seconds for
server responses
-try : how many times blat should try to send (1 to 'INFINITE')
-binary : do not convert ASCII | (pipe, 0x7c) to CrLf in the message
body
-hostname : select the hostname used to send the message via SMTP
this is typically your local machine name
-raw : do not add CR/LF after headers
-delay : wait x seconds between messages being sent when used with
-maxnames or -multipart
-comment : use this character to mark the start of commments in
options files and recipient list files. The default is ;
-superdebug : hex/ascii dump the data between Blat and the server
-superdebugT : ascii dump the data between Blat and the server
-------------------------------------------------------------------------------

Note that if the '-i' option is used, is included in 'Reply-to:'
and 'Sender:' fields in the header of the message.

Optionally, the following options can be used instead of the -f and -i
options:

-mailfrom The RFC 821 MAIL From: statement
-from The RFC 822 From: statement
-replyto The RFC 822 Reply-To: statement
-returnpath The RFC 822 Return-Path: statement
-sender The RFC 822 Sender: statement

For backward consistency, the -f and -i options have precedence over these
RFC 822 defined options. If both -f and -i options are omitted then the
RFC 821 MAIL FROM statement will be defaulted to use the installation-defined
default sender address.

Phong_Thai
Level 4
Thanks Bob. I know I owed you a few points too.

James,

I test the blat as you mentioned by sending a file to my email account, and I received the file. I'm sure the blat is working because I have other stuff that uses the blat command such as disaster tapes eject, catalog backup, and I received the notification for them.

zippy
Level 6
Phong,

Post the nbmail.cmd file

JD

Phong_Thai
Level 4
James,
Here is the nbmail.cmd:

@REM $Header: nbmail.cmd,v 1.8 2005/05/10 16:12:29 $

@REM

@REM bcpyrght

@REM ***************************************************************************

@REM * $VRTScprght: Copyright 1993 - 2005 VERITAS Software Corporation, All Rights Reserved $ *

@REM ***************************************************************************

@REM ecpyrght

@REM

@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

@REM - -

@REM - HOW TO SEND MAIL FROM THE NT NETBACKUP SERVER -

@REM - -

@REM - NetBackup checks if the mail script (NetBackup\Bin\nbmail.cmd) exists. -

@REM - If the script exists, NetBackup runs it passing four parameters on the -

@REM - command line: -

@REM - -

@REM - %1 is the recipient's address -

@REM - %2 is the subject line -

@REM - %3 is the message file name -
@REM - %4 is the attached file name -

@REM - -

@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM - -

@REM - HOW TO SEND DR MAIL FROM THE NT NETBACKUP SERVER -

@REM - -

@REM - NetBackup DR protection checks if the mail script -
@REM - (NetBackup\Bin\mail_dr_info.cmd) exists. If the script exists -

@REM - NetBackup DR protection runs it passing four parameters on the -

@REM - command line: -

@REM - -

@REM - %1 is the recipient's address -

@REM - %2 is the subject line -

@REM - %3 is the message file name -
@REM - %4 is the attached file name -

@REM - -

@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

@REM - -

@REM - A public domain SMTP mail client for NT called BLAT is available at: -

@REM - -

@REM - http://blat.net/ -

@REM - -

@REM - Here's how to use BLAT with the NetBackup NT server. -

@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

@REM
blat %3 -s %2 -t %1 -i stnt@quixtar.com -server mail.mailrouter.net -q -mine -attach %4
@REM

@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

@REM - The -i option designates the originator's address, you may change this -

@REM - or omit it altogether (the default is the sender's address specified -

@REM - when BLAT was installed). -

@REM - -

@REM - The -server option is given as an example, you need to determine the -

@REM - correct name of your SMTP server. This option may also be omitted -

@REM - (the default is the server specified when installing BLAT). -

@REM - -

@REM - You may use any mail program you want, as long as it has a command line -

@REM - interface that can be used to send mail. Just substitute a call to -

@REM - your favorite mail program for the call to BLAT above. -

@REM - -

@REM - After modifying this script to suit your situation (make sure you are -

@REM - calling a valid mail program and the call is not commented out), -

@REM - activate it by moving it to the NetBackup\Bin directory. -

@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

@REM - Some email servers do not handle the formating of the messages created -

@REM - by NetBackup. Here is an example of how to get Exchange or IIS to -

@REM - send the mail messages. -

@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@REM - @copy /y %3 %TEMP%\nbmail.tmp > NUL
@REM - @echo . >> %TEMP%\nbmail.tmp
@REM - @IF "%~4"=="" (
@REM - blat %TEMP%\nbmail.tmp -s %2 -t %1 -q
@REM - ) ELSE (
@REM - blat %TEMP%\nbmail.tmp -s %2 -t %1 -q -attach %4
@REM - )
@REM -

@REM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

zippy
Level 6
ok
try this

the batch file needs some thing to send, you need to uncomment the stuff at the bottom of the page, i did it for you.

JD

@REM $Header: nbmail.cmd,v 1.8 2005/05/10 16:12:29 $

@REM

@REM bcpyrght

@REM ***************************************************************************

@REM * $VRTScprght: Copyright 1993 - 2005 VERITAS Software Corporation, All Rights Reserved $ *

@REM ***************************************************************************


copy /y %3 %TEMP%\nbmail.tmp > NUL
echo . >> %TEMP%\nbmail.tmp
IF "%~4"=="" (
blat %TEMP%\nbmail.tmp -s %2 -t %1 -q
) ELSE (
blat %TEMP%\nbmail.tmp -s %2 -t %1 -q -attach %4
)

blat %3 -s %2 -t %1 -i stnt@quixtar.com -server mail.mailrouter.net -q -mine -attach %4

zippy
Level 6
Phong,



Try this doc, the stuff above is very generic.


http://seer.support.veritas.com/docs/254809.htm

Phong_Thai
Level 4
I'm still not getting the report. I guess my next question is how do I know if the nbmail.cmd was executed after the Vault job?

zippy
Level 6
try the trouble shooting doc first.

Phong_Thai
Level 4
Ok, I will take a look at the doc

Phong_Thai
Level 4
James,

I found the error in my blat command. As I was looking toward the end of the doc when it refers to the blat and vault, I had one of the parameters as -mine instead of -mime. Thanks for your help.

Ok, I have a stupid question. How do I go about with the points system? I think I got it.Message was edited by:
Phong Thai

zippy
Level 6
You got it!

Stumpr2
Level 6
Now if you want to go back and award points to your previous posts you may have to temorarily mark them as unanswered. Reward points. and then mark them as answered "correct". Thats a 10 pointer. Helpfuls are 5.