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_01C30380.8304E860
Content-Type: text/plain
A very useful script to know for me...thank you.
Paul
-----Original Message-----
From: Donaldson, Mark [mailto:Mark.Donaldson AT experianems DOT com]
Sent: Tuesday, April 15, 2003 12:38 PM
To: Donaldson, Mark; Griese, Paul; 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: RE: [Veritas-bu] How to create a list of job policies by pool
Sorry - bad edit. Mentally cut out the warning about PATH and add some
punctuation.
-M
-----Original Message-----
From: Donaldson, Mark
Sent: Tuesday, April 15, 2003 11:37 AM
To: 'Griese, Paul'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] How to create a list of job policies by pool
Very quick and dirty but this'll do it (make sure you PATH is correct or
fully qualify the paths to bppo
#!/bin/ksh
/usr/openv/netbackup/bin/admincmd/bppllist -allpolicies -L | grep -v "same
as" | \
awk -F: '{if ($1~/Policy Name/) {print save;save=$2}; if ($1~/Pool/)
{save=save $2}} END {print save}' >/tmp/tmpfile
for pool in `/usr/openv/volmgr/bin/vmpool -listall -b | awk 'NR>2 {print
$1}' | sort -u`
do
echo "\nPool: $pool"
awk '{count=2; while (count<=NF) {if ($count++=="'$pool'"){print "
"$1}}}' /tmp/tmpfile
done
rm /tmp/tmpfile
exit
-----Original Message-----
From: Griese, Paul [mailto:Paul.Griese AT telecheck DOT com]
Sent: Tuesday, April 15, 2003 10:52 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] How to create a list of job policies by pool
How do I create a listing of Netbackup 4.5 Solaris job policies by tape
pool? This is for an audit in one hour and I don't have time to read books.
Paul Griese
System Administration
Telecheck Services
Houston, TX
(c) 2003 TeleCheck International, Inc. THIS DOCUMENT, AND ANY ATTACHED
INFORMATION: 1) IS PROPRIETARY, PRIVILEGED AND CONFIDENTIAL PROPERTY OF
TELECHECK UNDER APPLICABLE LAW, AND 2) IS INTENDED EXCLUSIVELY FOR INTERNAL
USE BY TELECHECK EMPLOYEES AND INTENDED RECIPIENTS WITH A LEGITIMATE
TELECHECK BUSINESS NEED THEREFORE. ITS REPRODUCTION, DISSEMINATION,
DISTRIBUTION AND/OR DISCLOSURE, EXCEPT TO SUCH TELECHECK EMPLOYEES AND
INTENDED RECIPIENTS, IS STRICTLY PROHIBITED . IF YOU ARE NOT SUCH A
TELECHECK EMPLOYEE OR INTENDED RECIPIENT, OR THE EMPLOYEE OR AGENT
RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE INTENDED RECIPIENT, YOU ARE
HEREBY NOTIFIED THAT ANY REPRODUCTION, DISSEMINATION, DISTRIBUTION AND/OR
DISCLOSURE OF THIS DOCUMENT, OR ANY ATTACHMENTS, IS STRICTLY PROHIBITED.
(c) 2003 TeleCheck International, Inc. THIS DOCUMENT, AND ANY ATTACHED
INFORMATION: 1) IS PROPRIETARY, PRIVILEGED AND CONFIDENTIAL PROPERTY OF
TELECHECK UNDER APPLICABLE LAW, AND 2) IS INTENDED EXCLUSIVELY FOR INTERNAL
USE BY TELECHECK EMPLOYEES AND INTENDED RECIPIENTS WITH A LEGITIMATE
TELECHECK BUSINESS NEED THEREFORE. ITS REPRODUCTION, DISSEMINATION,
DISTRIBUTION AND/OR DISCLOSURE, EXCEPT TO SUCH TELECHECK EMPLOYEES AND
INTENDED RECIPIENTS, IS STRICTLY PROHIBITED . IF YOU ARE NOT SUCH A
TELECHECK EMPLOYEE OR INTENDED RECIPIENT, OR THE EMPLOYEE OR AGENT
RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE INTENDED RECIPIENT, YOU ARE
HEREBY NOTIFIED THAT ANY REPRODUCTION, DISSEMINATION, DISTRIBUTION AND/OR
DISCLOSURE OF THIS DOCUMENT, OR ANY ATTACHMENTS, IS STRICTLY PROHIBITED.
------_=_NextPart_001_01C30380.8304E860
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.emailstyle17
{font-family:Arial;
color:windowtext;}
span.EmailStyle19
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>A very useful script to know for me...thank
you.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Paul</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Donaldson, Mark
[mailto:Mark.Donaldson AT experianems DOT com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, April 15, 2003
12:38 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Donaldson, Mark; Griese, Paul;
'veritas-bu AT mailman.eng.auburn DOT edu'<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [Veritas-bu] How to
create a list of job policies by pool</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New
Roman"><span
style='font-size:12.0pt'> </span></font></p>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>Sorry - bad edit.
Mentally cut out the warning about PATH and add some
punctuation.</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>-M</span></font></p>
</div>
<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Donaldson, Mark <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, April 15, 2003
11:37 AM<br>
<b><span style='font-weight:bold'>To:</span></b> 'Griese, Paul';
veritas-bu AT mailman.eng.auburn DOT edu<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [Veritas-bu] How to
create a list of job policies by pool</span></font></p>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>Very quick and dirty but
this'll do it (make sure you PATH is correct or fully qualify the paths to
bppo</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New
Roman"><span
style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>#!/bin/ksh</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>/usr/openv/netbackup/bin/admincmd/bppllist
-allpolicies -L | grep -v "same as" | \<br>
awk -F: '{if ($1~/Policy Name/) {print save;save=$2}; if ($1~/Pool/) {save=save
$2}} END {print save}' >/tmp/tmpfile</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New
Roman"><span
style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>for pool in
`/usr/openv/volmgr/bin/vmpool -listall -b | awk 'NR>2 {print $1}' | sort
-u`<br>
do<br>
echo "\nPool: $pool"<br>
awk '{count=2; while (count<=NF) {if
($count++=="'$pool'"){print " "$1}}}' /tmp/tmpfile<br>
done</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>rm
/tmp/tmpfile</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>exit</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New
Roman"><span
style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'> </span></font></p>
</div>
<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Griese, Paul
[mailto:Paul.Griese AT telecheck DOT com]<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, April 15, 2003
10:52 AM<br>
<b><span style='font-weight:bold'>To:</span></b> veritas-bu AT
mailman.eng.auburn DOT edu<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Veritas-bu] How to
create a list of job policies by pool</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>How do I create a listing of
Netbackup 4.5 Solaris job policies by tape pool? This is for an audit in one
hour and I don't have time to read books.</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New
Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Paul Griese</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>System
Administration</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Telecheck Services</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Houston, TX</span></font></p>
<p style='margin-left:.5in'><b><font size=1 face="Courier New"><span
style='font-size:7.5pt;font-family:"Courier New";font-weight:bold'>(c) 2003
TeleCheck International, Inc. THIS DOCUMENT, AND ANY ATTACHED INFORMATION: 1)
IS PROPRIETARY, PRIVILEGED AND CONFIDENTIAL PROPERTY OF TELECHECK UNDER
APPLICABLE LAW, AND 2) IS INTENDED EXCLUSIVELY FOR INTERNAL USE BY TELECHECK
EMPLOYEES AND INTENDED RECIPIENTS WITH A LEGITIMATE TELECHECK BUSINESS NEED
THEREFORE. ITS REPRODUCTION, DISSEMINATION, DISTRIBUTION AND/OR DISCLOSURE,
EXCEPT TO SUCH TELECHECK EMPLOYEES AND INTENDED RECIPIENTS, IS STRICTLY
PROHIBITED . IF YOU ARE NOT SUCH A TELECHECK EMPLOYEE OR INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE INTENDED
RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY REPRODUCTION, DISSEMINATION,
DISTRIBUTION AND/OR DISCLOSURE OF THIS DOCUMENT, OR ANY ATTACHMENTS, IS
STRICTLY PROHIBITED.</span></font></b></p>
</blockquote>
</blockquote>
</div>
</body>
</html>
<P><B><FONT SIZE=1 FACE="Courier New">(c) 2003 TeleCheck International, Inc.
THIS DOCUMENT, AND ANY ATTACHED INFORMATION: 1) IS PROPRIETARY, PRIVILEGED AND
CONFIDENTIAL PROPERTY OF TELECHECK UNDER APPLICABLE LAW, AND 2) IS INTENDED
EXCLUSIVELY FOR INTERNAL USE BY TELECHECK EMPLOYEES AND INTENDED RECIPIENTS
WITH A LEGITIMATE TELECHECK BUSINESS NEED THEREFORE. ITS REPRODUCTION,
DISSEMINATION, DISTRIBUTION AND/OR DISCLOSURE, EXCEPT TO SUCH TELECHECK
EMPLOYEES AND INTENDED RECIPIENTS, IS STRICTLY PROHIBITED . IF YOU ARE NOT
SUCH A TELECHECK EMPLOYEE OR INTENDED RECIPIENT, OR THE EMPLOYEE OR AGENT
RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE INTENDED RECIPIENT, YOU ARE
HEREBY NOTIFIED THAT ANY REPRODUCTION, DISSEMINATION, DISTRIBUTION AND/OR
DISCLOSURE OF THIS DOCUMENT, OR ANY ATTACHMENTS, IS STRICTLY
PROHIBITED.</FONT></B></P>
------_=_NextPart_001_01C30380.8304E860--
|