Veritas-bu

[Veritas-bu] Bpstart_notify question...

2002-03-28 11:50:23
Subject: [Veritas-bu] Bpstart_notify question...
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Thu, 28 Mar 2002 09:50:23 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1D678.A7242CF0
Content-Type: text/plain;
        charset="iso-8859-1"

The script is just like any other script - just have no output to STDOUT and
make sure the return code is 0 if you want the backup to proceed or non-zero
if the backup should not.
 
#!/bin/sh
/usr/blah_blah_blah/stopservice >/logdir/logfile 2>&1
if [ $? -ne 0 ]
  #Check return code of stop script, this branch is non-zero
  RC=1
else
  #service stopped OK
  RC=0
fi
exit $RC
 
Make sure to name the script appropriately for the class and schedule if
it's not to run for all the client's potential classes
 
/usr/openv/netbackup/bin/bpstart_notify.<classname>
 
or 
 
/usr/openv/netbackup/bin/bpstart_notify.<classname>.<schedname>
 
You should be able to restart the service in the same way with a
bpend_notify script.  Feel free to contact me directly via e-mail if you
wish.
 
-Mark

-----Original Message-----
From: Moore, Dan [mailto:Dan.Moore AT eu.sony DOT com]
Sent: Thursday, March 28, 2002 3:17 AM
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: RE: [Veritas-bu] Bpstart_notify question...


All I want to do is stop a Mcafee service so I can backup our EPO
database....

-----Original Message-----
From: Donaldson, Mark [mailto:Mark.Donaldson AT experianems DOT com]
Sent: 27 March 2002 19:52
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: RE: [Veritas-bu] Bpstart_notify question...



What do you want it to do? 

-----Original Message----- 
From: Moore, Dan [ mailto:Dan.Moore AT eu.sony DOT com
<mailto:Dan.Moore AT eu.sony DOT com> ] 

Hi all, 

Has anyone got a working example of a bpstart_notify script that they can 
share with me??? 

Thanks, 
Dan 
Dan Moore 

UNIX Analyst, 
Sony United Kingdom Limited, 
Tel: 01932 816834 
mailto:dan.moore AT eu.sony DOT com <mailto:dan.moore AT eu.sony DOT com>  



****************************************************************************
******************
The information contained in this message or any of its attachments may be
confidential and is intended for the exclusive use of the addressee(s). Any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited without the express permission of the
sender. The views expressed in this email are those of the individual and
not necessarily those of Sony or Sony affiliated companies. Sony email is
for business use only. 

This email and any response may be monitored by Sony United Kingdom Limited.
(05)
****************************************************************************
******************



------_=_NextPart_001_01C1D678.A7242CF0
Content-Type: text/html;
        charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Veritas-bu] Bpstart_notify question...</TITLE>

<META content="MSHTML 6.00.2713.1100" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff size=2>The 
script is just like any other script - just have no output to STDOUT and make 
sure the return code is 0 if you want the backup to proceed or non-zero if the 
backup should not.</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>#!/bin/sh</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>/usr/blah_blah_blah/stopservice &gt;/logdir/logfile 
2&gt;&amp;1</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff size=2>if [ 
$? -ne 0 ]</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>&nbsp; 
#Check return code of stop script, this branch is non-zero</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>&nbsp; 
RC=1</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>else</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>&nbsp; 
#service stopped OK</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>&nbsp; 
RC=0</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>fi</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff size=2>exit 
$RC</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff size=2>Make 
sure to name the script appropriately for the class and schedule if it's not to 
run for all the client's potential classes</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>/usr/openv/netbackup/bin/bpstart_notify.&lt;classname&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff size=2>or 
</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>/usr/openv/netbackup/bin/bpstart_notify.&lt;classname&gt;.&lt;schedname&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff size=2>You 
should be able to restart the service in the same way with a bpend_notify 
script.&nbsp; Feel free to contact me directly via e-mail if you 
wish.</FONT></SPAN></DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=207054516-28032002><FONT face=Arial color=#0000ff 
size=2>-Mark</FONT></SPAN></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Moore, Dan 
  [mailto:Dan.Moore AT eu.sony DOT com]<BR><B>Sent:</B> Thursday, March 28, 
2002 3:17 
  AM<BR><B>To:</B> 'veritas-bu AT mailman.eng.auburn DOT 
edu'<BR><B>Subject:</B> RE: 
  [Veritas-bu] Bpstart_notify question...<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=747490410-28032002>All 
  I want to do is stop a Mcafee service so I can backup our EPO 
  database....</SPAN></FONT></DIV>
  <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> Donaldson, Mark 
    [mailto:Mark.Donaldson AT experianems DOT com]<BR><B>Sent:</B> 27 March 
2002 
    19:52<BR><B>To:</B> 'veritas-bu AT mailman.eng.auburn DOT 
edu'<BR><B>Subject:</B> 
    RE: [Veritas-bu] Bpstart_notify question...<BR><BR></DIV></FONT>
    <P><FONT size=2>What do you want it to do?</FONT> </P>
    <P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: 
    Moore, Dan [<A 
    href="mailto:Dan.Moore AT eu.sony DOT com">mailto:Dan.Moore AT eu.sony DOT 
com</A>]</FONT> 
    </P>
    <P><FONT size=2>Hi all,</FONT> </P>
    <P><FONT size=2>Has anyone got a working example of a bpstart_notify script 
    that they can</FONT> <BR><FONT size=2>share with me???</FONT> </P>
    <P><FONT size=2>Thanks,</FONT> <BR><FONT size=2>Dan</FONT> <BR><FONT 
    size=2>Dan Moore</FONT> </P>
    <P><FONT size=2>UNIX Analyst, </FONT><BR><FONT size=2>Sony United Kingdom 
    Limited,</FONT> <BR><FONT size=2>Tel: 01932 816834</FONT> <BR><FONT 
    size=2><A 
    href="mailto:dan.moore AT eu.sony DOT com">mailto:dan.moore AT eu.sony DOT 
com</A></FONT> 
    </P></BLOCKQUOTE><CODE><FONT 
  
size=3><BR><BR>**********************************************************************************************<BR>The
 
  information contained in this message or any of its attachments may be 
  confidential and is intended for the exclusive use of the addressee(s). Any 
  disclosure, reproduction, distribution or other dissemination or use of this 
  communication is strictly prohibited without the express permission of the 
  sender. The views expressed in this email are those of the individual and not 
  necessarily those of Sony or Sony affiliated companies. Sony email is for 
  business use only. <BR><BR>This email and any response may be monitored by 
  Sony United Kingdom 
  
Limited.<BR>(05)<BR>**********************************************************************************************<BR></BLOCKQUOTE></FONT></CODE></BODY></HTML>

------_=_NextPart_001_01C1D678.A7242CF0--

<Prev in Thread] Current Thread [Next in Thread>