Veritas-bu

[Veritas-bu] NBDB backup scripts?

2001-01-24 13:43:16
Subject: [Veritas-bu] NBDB backup scripts?
From: Gregory McAllister gmcallis AT nortelnetworks DOT com
Date: Wed, 24 Jan 2001 12:43:16 -0600
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_01C08635.83CB47A0
Content-Type: text/plain;
        charset="iso-8859-1"

i think there may be typo in the line:
bprdreg -terminate

i believe it is actually
bprdreq -terminate

Greg McAllister

-----Original Message-----
From: McMurphy, Tim [mailto:Tim.McMurphy AT cdcgy DOT com]
Sent: Wednesday, January 24, 2001 1:33 PM
To: 'Steve Moccio'
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] NBDB backup scripts?


It is definately what I was looking for. Just out of curiosity do you run
this or do you use the built in ones?

-----Original Message-----
From: Steve Moccio [mailto:svm AT lucent DOT com]
Sent: 24 January, 2001 11:19 AM
To: david AT datastaff DOT com; Bob Bakh
Cc: W. Curtis Preston; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] NBDB backup scripts?


Hello all,

I too was in the advanced class and received a handout about the script. Not
sure if this is what you are looking for Bob.

Steve Moccio
 Bell Labs
   svm AT lucent DOT com



#!/bin/ksh

# find out how many currently queued, re-queued, or active jobs
# there are currently
QUEUED=`bpdbjobs - summary | sed -e '/MASTER/d' | awk '{print $2}'`
REQUEUED=` bpdbjobs - summary | sed -e '/MASTER/d' | awk '{print $3}'`
ACTIVE=` bpdbjobs - summary | sed -e '/MASTER/d' | awk '{print $4}'`

# If there are no queue, re-queued, or active jobs, then it is ok.
# to initiate netbackup DB backup

if [ $QUEUED -eq 0] && [ $REQUEUED -eq 0 ] && [ $ACTIVE -eq 0]
then
        #Stop the request daemon
        echo "Stopping the request Daemon"
        bprdreg -terminate
        echo "bprd Daemon terminated"
        # Run netbackup database backup
        echo "Running netbackup database backup"
        bpbackupdb
        echo "Database backup complete"
        # restart request daemon
        echo "Restarting request daemon"
        bprd
else
        echo "Could not initiate netbackup database backup
fi


_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

------_=_NextPart_001_01C08635.83CB47A0
Content-Type: text/html;
        charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Veritas-bu] NBDB backup scripts?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>i think there may be typo in the line:</FONT>
<BR><FONT SIZE=2>bprdreg -terminate</FONT>
</P>

<P><FONT SIZE=2>i believe it is actually</FONT>
<BR><FONT SIZE=2>bprdreq -terminate</FONT>
</P>

<P><FONT SIZE=2>Greg McAllister</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: McMurphy, Tim [<A HREF="mailto:Tim.McMurphy AT cdcgy DOT 
com">mailto:Tim.McMurphy AT cdcgy DOT com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, January 24, 2001 1:33 PM</FONT>
<BR><FONT SIZE=2>To: 'Steve Moccio'</FONT>
<BR><FONT SIZE=2>Cc: veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=2>Subject: RE: [Veritas-bu] NBDB backup scripts?</FONT>
</P>
<BR>

<P><FONT SIZE=2>It is definately what I was looking for. Just out of curiosity 
do you run</FONT>
<BR><FONT SIZE=2>this or do you use the built in ones?</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Steve Moccio [<A HREF="mailto:svm AT lucent DOT 
com">mailto:svm AT lucent DOT com</A>]</FONT>
<BR><FONT SIZE=2>Sent: 24 January, 2001 11:19 AM</FONT>
<BR><FONT SIZE=2>To: david AT datastaff DOT com; Bob Bakh</FONT>
<BR><FONT SIZE=2>Cc: W. Curtis Preston; veritas-bu AT mailman.eng.auburn DOT 
edu</FONT>
<BR><FONT SIZE=2>Subject: RE: [Veritas-bu] NBDB backup scripts?</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hello all,</FONT>
</P>

<P><FONT SIZE=2>I too was in the advanced class and received a handout about 
the script. Not</FONT>
<BR><FONT SIZE=2>sure if this is what you are looking for Bob.</FONT>
</P>

<P><FONT SIZE=2>Steve Moccio</FONT>
<BR><FONT SIZE=2>&nbsp;Bell Labs</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp; svm AT lucent DOT com</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>#!/bin/ksh</FONT>
</P>

<P><FONT SIZE=2># find out how many currently queued, re-queued, or active 
jobs</FONT>
<BR><FONT SIZE=2># there are currently</FONT>
<BR><FONT SIZE=2>QUEUED=`bpdbjobs - summary | sed -e '/MASTER/d' | awk '{print 
$2}'`</FONT>
<BR><FONT SIZE=2>REQUEUED=` bpdbjobs - summary | sed -e '/MASTER/d' | awk 
'{print $3}'`</FONT>
<BR><FONT SIZE=2>ACTIVE=` bpdbjobs - summary | sed -e '/MASTER/d' | awk '{print 
$4}'`</FONT>
</P>

<P><FONT SIZE=2># If there are no queue, re-queued, or active jobs, then it is 
ok.</FONT>
<BR><FONT SIZE=2># to initiate netbackup DB backup</FONT>
</P>

<P><FONT SIZE=2>if [ $QUEUED -eq 0] &amp;&amp; [ $REQUEUED -eq 0 ] &amp;&amp; [ 
$ACTIVE -eq 0]</FONT>
<BR><FONT SIZE=2>then</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>#Stop the request 
daemon</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>echo &quot;Stopping 
the request Daemon&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>bprdreg 
-terminate</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>echo &quot;bprd 
Daemon terminated&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2># Run netbackup 
database backup</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>echo &quot;Running 
netbackup database backup&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>bpbackupdb</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>echo &quot;Database 
backup complete&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2># restart request 
daemon</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>echo 
&quot;Restarting request daemon&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>bprd</FONT>
<BR><FONT SIZE=2>else</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>echo &quot;Could 
not initiate netbackup database backup</FONT>
<BR><FONT SIZE=2>fi</FONT>
</P>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Veritas-bu maillist&nbsp; -&nbsp; Veritas-bu AT 
mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=2><A 
HREF="http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"; 
TARGET="_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C08635.83CB47A0--



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