Veritas-bu

Re: [Veritas-bu] Send emails - Status Codes OTHER than 1 & 0

2008-10-05 14:18:31
Subject: Re: [Veritas-bu] Send emails - Status Codes OTHER than 1 & 0
From: chriswible AT att DOT net
To: veritas-bu AT mailman.eng.auburn DOT edu
Date: Sun, 05 Oct 2008 17:59:07 +0000
Add this to the code before the blat command in nbmail.cmd.  I like nbmail.cmd messages the best out of all the NBU message command files.
 
@ECHO OFF
@REM Get whole command line into x
@set x=%~2
@REM get last three characters of x into y
@set y=%x:~-3%
@REM Check if y ends in - 0 and exit
@if "%y%"=="- 0" goto :eof
@if "%y%"=="- 1" goto :eof
@REM It doesn't if it gets here
@REM Add this if you want to test @echo There is no -0 on the line
@REM
@IF "%~4"=="" (
blat %3 -s %2 -t %1 -i NetBackup -server WARTHOG -q
) ELSE (
blat %3 -s %2 -t %1 -i NetBackup -server WARTHOG -q -attach %4
)
 
--
Chris Wible
Backup and Recovery Lead
 
-------------- Original message from veritas-bu-request AT mailman.eng.auburn DOT edu: --------------


> Send Veritas-bu mailing list submissions to
> veritas-bu AT mailman.eng.auburn DOT edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> or, via email, send a message with subject or body 'help' to
> veritas-bu-request AT mailman.eng.auburn DOT edu
>
> You can reach the person managing the list at
> veritas-bu-owner AT mailman.eng.auburn DOT edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Veritas-bu digest..."
>
>
> Today's Topics:
>
> 1. Send emails - Status Codes OTHER than 1 & 0 (oersted)
> 2. Resources needed to tame NetBackup (oersted)
> 3. NBU cross-site (oersted)
> 4. Re: Send emails - Status Codes OTHER than 1 & 0 (Jorge F?bregas)
> 5. Re: NBU cross-site (Mark Steel)
> 6. Re: Send emails - Status Codes OTHER than 1 & 0 (Jorge F?bregas)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 04 Oct 2008 20:30:21 -0400
> From: oersted
> Subject: [Veritas-bu] Send emails - Status Codes OTHER than 1 & 0
> To: VERITAS-BU AT mailman.eng.auburn DOT edu
> Message-ID: <1223166621.m2f.287385 AT www.backupcentral DOT com>
>
>
> if "%5" GTR "1" goto Failed
>
> in backup_exit_notify
>
>
> Jorge Fábregas wrote:
> > Hello everyone,
> >
> > I just installed BLAT and configured the email notifications and everything
> > works as expected: NB is sending emails for jobs exiting with a non-zero
> > code.
> >
> > The problem is...I don't want to receive emails for 1's. Any way to modify
> > this? (send emails on jobs ending in anything OTHER than 1 & 0?)
> >
> > Thanks!
> > Jorge
> > _______________________________________________
> > Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
> > http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>
> +----------------------------------------------------------------------
> |This was sent by solaris AT cablespeed DOT com via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +----------------------------------------------------------------------
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 04 Oct 2008 20:45:24 -0400
> From: oersted
> Subject: [Veritas-bu] Resources needed to tame NetBackup
> To: VERITAS-BU AT mailman.eng.auburn DOT edu
> Message-ID: <1223167524.m2f.287389 AT www.backupcentral DOT com>
>
>
> It depends....
>
> If it is a new environment, and you have the ability to implement via best
> practices and following strict common sense guidelines, it is possible for one
> person to maintain NBU, for 95% of sites out there.
>
> You must remember, NBU touches everything around it...
>
> umpteen different apps, network, SAN, OS, I/O etc....
>
> my hat goes off to the people who code it up.....it is a monumental task
>
> NBU only works as good as your environment does...the weaker your infrastructure
> is set up from top to bottom the more people it will take to maintain NBU.
>
>
>
> bart.wallebroek AT swift DOT com wrote:
> > Is there a sheet (if possible an official report) available that someone
> > knows of where it states that for a (Net)Backup environment of size X
> > you need Y amount of people to monitor, maintain, patch, ... The backup
> > application (in short all the stuff you need to do to keep the backups
> > running).
> >
> > This is something I want to show to my management because I feel a bit
> > undermanned here (just me, myself and I and a whole lot of NetBackup
> > stuff around).
> >
> > Best Regards,
> > Bart WALLEBROEK
> > Swift
> >
> >
> > _______________________________________________
> > Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
> > http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>
> +----------------------------------------------------------------------
> |This was sent by solaris AT cablespeed DOT com via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +----------------------------------------------------------------------
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 04 Oct 2008 21:00:52 -0400
> From: oersted
> Subject: [Veritas-bu] NBU cross-site
> To: VERITAS-BU AT mailman.eng.auburn DOT edu
> Message-ID: <1223168452.m2f.287391 AT www.backupcentral DOT com>
>
>
> with 5.x you could do this easily without clustering...but with 6.5
>
> what is the amount of data at eaach site?
>
> how many clients at each site?
>
> what are critical apps?
>
> where is data stored? local? SAN?
>
> what does HA/DR SLA entail?
>
> if you HA/DR/BC the apps do you have to HA/DR the backup?
>
> what is pipe between sites?
>
> what is your business?
>
>
>
>
> Mark Steel wrote:
> > Hi
> >
> > I need to design and build a NBU config for a 'virtual datacentre'
> > with two sites, both with production hosts.
> > I also need to keep systems to a minimum, and I need HA/DR.
> > I was thinking about cross-site clustered master/media server as the
> > start. It would be Solaris platform so could run functions (such as
> > the master server) in a zone for failover, and media server if
> > required as separate zones.
> >
> > Anyone have any experience of this ? I guess its a balance between
> > complexity of setup with trying to keep config to a minimum - I mean I
> > could have simple local HA / cluster with remote failover an then do
> > that both ways, but that might end up as 6 servers for initial config.
> >
> > Thanks
> > Mark
> >
> >
> > _______________________________________________
> > Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
> > http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>
> +----------------------------------------------------------------------
> |This was sent by solaris AT cablespeed DOT com via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +----------------------------------------------------------------------
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sat, 4 Oct 2008 23:23:52 -0400
> From: Jorge F?bregas
> Subject: Re: [Veritas-bu] Send emails - Status Codes OTHER than 1 & 0
> To: veritas-bu AT mailman.eng.auburn DOT edu
> Message-ID: <200810042323.52713.jorge.fabregas AT gmail DOT com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Saturday 04 October 2008 08:30:21 pm oersted wrote:
> > if "%5" GTR "1" goto Failed
> >
> > in backup_exit_notify
>
>
> Thanks for pointing me to the right direction! I didn't have a "Failed"
> section on the file...but I ended up putting this at the beginning:
>
> if %5 LEQ 1 goto: EndMain
>
> and it seems to work.
>
> Thanks!
> Jorge
>
>
> ------------------------------
>
> Message: 5
> Date: Sun, 5 Oct 2008 08:54:48 +0100
> From: Mark Steel
> Subject: Re: [Veritas-bu] NBU cross-site
> To: VERITAS-BU AT mailman.eng.auburn DOT edu
> Message-ID: <7D35038F-FD53-4CA7-B333-F8E1644DF4E6 AT steelfamily DOT org>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> hi
>
> its probably about 10 TB per site per night, 200 clients each site,
> oracle is the main data source, most will be SAN based.
> There are a small number (<20) apps at RPO/RTO= near zero, which are
> cross site clustered, most other HA/DR is 4hrs, and backup needs to be
> one of the HA apps because of the potential requirements to recover
> other apps, also that apps might move from prod one site to prod at
> the other site and we need to track backups. Pipe is 2 x 10GBE,
> business is telecoms.
>
> Essentially i want these two sites to act as one site.
>
> regards
> mark
>
>
> On 5 Oct 2008, at 02:00, oersted wrote:
>
> >
> > with 5.x you could do this easily without clustering...but with 6.5
> >
> > what is the amount of data at eaach site?
> >
> > how many clients at each site?
> >
> > what are critical apps?
> >
> > where is data stored? local? SAN?
> >
> > what does HA/DR SLA entail?
> >
> > if you HA/DR/BC the apps do you have to HA/DR the backup?
> >
> > what is pipe between sites?
> >
> > what is your business?
> >
> >
> >
> >
> > Mark Steel wrote:
> >> Hi
> >>
> >> I need to design and build a NBU config for a 'virtual datacentre'
> >> with two sites, both with production hosts.
> >> I also need to keep systems to a minimum, and I need HA/DR.
> >> I was thinking about cross-site clustered master/media server as the
> >> start. It would be Solaris platform so could run functions (such as
> >> the master server) in a zone for failover, and media server if
> >> required as separate zones.
> >>
> >> Anyone have any experience of this ? I guess its a balance between
> >> complexity of setup with trying to keep config to a minimum - I
> >> mean I
> >> could have simple local HA / cluster with remote failover an then do
> >> that both ways, but that might end up as 6 servers for initial
> >> config.
> >>
> >> Thanks
> >> Mark
> >>
> >>
> >> _______________________________________________
> >> Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
> >> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> >
> >
> > +
> > ----------------------------------------------------------------------
> > |This was sent by solaris AT cablespeed DOT com via Backup Central.
> > |Forward SPAM to abuse AT backupcentral DOT com.
> > +
> > ----------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> > http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>
>
> ------------------------------
>
> Message: 6
> Date: Sun, 5 Oct 2008 10:54:19 -0400
> From: Jorge F?bregas
> Subject: Re: [Veritas-bu] Send emails - Status Codes OTHER than 1 & 0
> To: veritas-bu AT mailman.eng.auburn DOT edu
> Message-ID: <200810051054.19613.jorge.fabregas AT gmail DOT com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Saturday 04 October 2008 11:23:52 pm Jorge F?bregas wrote:
> > if %5 LEQ 1 goto: EndMain
> >
> > and it seems to work.
>
>
> Arrrghhh it actually doesn't work. I have the backup_exit_notify
> (plain-vanilla) that comes with 6.5 for Windows Master Server. I just don't
> see in it where does it makes its decision to go ahead with notifications on
> jobs other than non-zero.
>
> I tried:
>
> @if "%5" LEQ "1" goto EndMain
> at the beginning but it doesn't work.
>
> I've seen examples where they actually send the email - on this same script -
> based on the values for parameter #5... but this line is commented on the
> script so it is not here where the actual SENDING is done.. Any help? :(
>
> Regards,
> Jorge
>
>
>
> ------------------------------
>
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>
> End of Veritas-bu Digest, Vol 30, Issue 7
> *****************************************
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<Prev in Thread] Current Thread [Next in Thread>