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_01C42172.6578A410
Content-Type: text/plain;
charset="iso-8859-1"
Ah - you want to change the future backups via the cmd-line, too.
bppllist will display all the policies & schedules:
bppllist -allpolicies
keywords are the first column, schedules are marked with "SCHED"
You could do something like this:
bppllist -allpolicies | awk '{if ($1=="CLASS" ) {policy=$2}
if ( $1=="SCHED" && $2~/off/ ) {print
policy, $2}}'
This should produce two columns of output, first is policy name, second is
schedule name.
-M
-----Original Message-----
From: Schaefer, Harry [mailto:Harry.Schaefer AT turner DOT com]
Sent: Monday, April 12, 2004 7:13 PM
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: RE: [Veritas-bu] Script for changing schedule retention levels
As an addition, I found the bpplschedrep command that can be ran as such:
bpplschedrep <policy name> <schedule> -rl <new retention level>
I still need to find a way to get a list of all schedules with the policy
they belong to. All of the schedules I want to change have the word "off" in
them, so I can grep for that when doing my change script...
Harry S.
Atlanta
-----Original Message-----
From: Schaefer, Harry
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Sent: 4/12/2004 7:49 PM
Subject: [Veritas-bu] Script for changing schedule retention levels
I dug through the archives to no avail. I am trying to find the right
command line combination to change the retention level on a set of
schedules. For example, changing the retention level from 8 (1 year) to
2 (5 weeks).
I am looking for the command to first give me a list of schedules, then
a command to change a retention level on a given schedule. I can create
the script to go around it, and even put it back out here for anyone to
use.
We have a Solaris master server running 4.5 FP 4...
Thanks,
Harry S.
Atlanta
------_=_NextPart_001_01C42172.6578A410
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>RE: [Veritas-bu] Script for changing schedule retention =
levels</TITLE>
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff size=3D2>Ah -=20
you want to change the future backups via the cmd-line, =
too.</FONT></SPAN></DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>bppllist will display all the policies &=20
schedules:</FONT></SPAN></DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>bppllist -allpolicies</FONT></SPAN></DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>keywords are the first column, schedules are marked with=20
"SCHED"</FONT></SPAN></DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff size=3D2>You=20
could do something like this:</FONT></SPAN></DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>bppllist -allpolicies | awk '{if ($1=3D=3D"CLASS" )=20
{policy=3D$2}</FONT></SPAN></DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2> &nb=
sp; &nb=
sp; &nb=
sp; =20
if ( $1=3D=3D"SCHED" && $2~/off/ ) {print policy, =
$2}}'</FONT></SPAN></DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff size=3D2>This=20
should produce two columns of output, first is policy name, second is =
schedule=20
name.</FONT></SPAN></DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D696380916-13042004><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>-M</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Schaefer, Harry=20
[mailto:Harry.Schaefer AT turner DOT com]<BR><B>Sent:</B> Monday, April 12, =
2004 7:13=20
PM<BR><B>To:</B> =
'veritas-bu AT mailman.eng.auburn DOT edu'<BR><B>Subject:</B> RE:=20
[Veritas-bu] Script for changing schedule retention=20
levels<BR><BR></FONT></DIV>
<P><FONT size=3D2>As an addition, I found the bpplschedrep command =
that =20
can be ran as such:</FONT> </P>
<P><FONT size=3D2>bpplschedrep <policy name> <schedule> =
-rl <new=20
retention level></FONT> </P>
<P><FONT size=3D2>I still need to find a way to get a list of all =
schedules with=20
the policy they belong to. All of the schedules I want to change have =
the word=20
"off" in them, so I can grep for that when doing my change=20
script...</FONT></P>
<P><FONT size=3D2>Harry S. </FONT><BR><FONT size=3D2>Atlanta</FONT> =
</P>
<P><FONT size=3D2>-----Original Message-----</FONT> <BR><FONT =
size=3D2>From:=20
Schaefer, Harry</FONT> <BR><FONT size=3D2>To:=20
'veritas-bu AT mailman.eng.auburn DOT edu'</FONT> <BR><FONT size=3D2>Sent: =
4/12/2004=20
7:49 PM</FONT> <BR><FONT size=3D2>Subject: [Veritas-bu] Script for =
changing=20
schedule retention levels</FONT> </P>
<P><FONT size=3D2>I dug through the archives to no avail. I am trying =
to find=20
the right</FONT> <BR><FONT size=3D2>command line combination to =
change the=20
retention level on a set of</FONT> <BR><FONT size=3D2>schedules. For =
example,=20
changing the retention level from 8 (1 year) to</FONT> <BR><FONT =
size=3D2>2 (5=20
weeks).</FONT> </P>
<P><FONT size=3D2>I am looking for the command to first give me a =
list of=20
schedules, then</FONT> <BR><FONT size=3D2>a command to change a =
retention level=20
on a given schedule. I can create</FONT> <BR><FONT size=3D2>the =
script to go=20
around it, and even put it back out here for anyone to</FONT> =
<BR><FONT=20
size=3D2>use.</FONT> </P>
<P><FONT size=3D2>We have a Solaris master server running 4.5 FP 4... =
</FONT></P>
<P><FONT size=3D2>Thanks, </FONT><BR><FONT size=3D2>Harry S. =
</FONT><BR><FONT=20
size=3D2>Atlanta </FONT></P><BR><BR>
<P><FONT size=3D2> </FONT></P><BR>
<P><FONT size=3D2> </FONT></P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C42172.6578A410--
|