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_01C30375.B7593680
Content-Type: text/plain
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.
------_=_NextPart_001_01C30375.B7593680
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 content="MSHTML 5.50.4923.2500" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=812013717-15042003><FONT face=Arial color=#0000ff size=2>Sorry
- bad edit. Mentally cut out the warning about PATH and add some
punctuation.</FONT></SPAN></DIV>
<DIV><SPAN class=812013717-15042003><FONT face=Arial color=#0000ff
size=2>-M</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Donaldson, Mark
<BR><B>Sent:</B> Tuesday, April 15, 2003 11:37 AM<BR><B>To:</B> 'Griese,
Paul'; veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE:
[Veritas-bu]
How to create a list of job policies by pool<BR><BR></FONT></DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff
size=2>Very
quick and dirty but this'll do it (make sure you PATH is correct or fully
qualify the paths to bppo</FONT></SPAN></DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff
size=2>#!/bin/ksh</FONT></SPAN></DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff
size=2>/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</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff size=2>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</FONT></SPAN></DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff size=2>rm
/tmp/tmpfile</FONT></SPAN></DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff
size=2>exit</FONT></SPAN></DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff
size=2> </DIV>
<DIV><BR></DIV></FONT></SPAN>
<DIV><SPAN class=879013517-15042003><FONT face=Arial color=#0000ff
size=2> </DIV></FONT></SPAN>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Griese, Paul
[mailto:Paul.Griese AT telecheck DOT com]<BR><B>Sent:</B> Tuesday, April
15, 2003
10:52 AM<BR><B>To:</B> veritas-bu AT mailman.eng.auburn DOT
edu<BR><B>Subject:</B>
[Veritas-bu] How to create a list of job policies by
pool<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; 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><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Paul Griese</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">System
Administration</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Telecheck
Services</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Houston</SPAN></FONT><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">,
</SPAN></FONT><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">TX</SPAN></FONT></P></DIV>
<P><B><FONT face="Courier New" size=1>(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></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C30375.B7593680--
|