Veritas-bu

[Veritas-bu] How to create a list of job policies by pool

2003-04-15 15:40:24
Subject: [Veritas-bu] How to create a list of job policies by pool
From: pwinkeler AT pbnj-solutions DOT com (Paul Winkeler)
Date: Tue, 15 Apr 2003 15:40:24 -0400
This is a multi-part message in MIME format.

------=_NextPart_000_0067_01C30365.54DEE5A0
Content-Type: text/plain;
        charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hi Paul,
=20
Too late now, but if you had the Perl NBU modules installed
(http://search.cpan.org/author/DUTCHMAN/) you'd write:
-------------------------------------------------------------------------=
---
--------
#!/bin/perl
use NBU;
=20
my @list =3D NBU::Pool->list;
for my $v (sort {$a->name cmp $b->name} @list) {
  print $v->name.":\n";
  for my $p (NBU::Class->list) {
    for my $s ($p->schedules) {
      print "  ".$p->name."/".$s->name."\n" if ($s->pool =3D=3D $v);
    }
  }
}
-------------------------------------------------------------------------=
---
--------
With this you can see exactly which policies (even though the code still
says Class: sorry...) and schedule combinations use which volume pools.
=20

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Griese, =
Paul
Sent: Tuesday, April 15, 2003 12:52 PM
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.

=20

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_000_0067_01C30365.54DEE5A0
Content-Type: text/html;
        charset="US-ASCII"
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=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<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=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
Paul,</FONT></SPAN></DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =
size=3D2>Too=20
late now, but if you had the Perl NBU modules installed (<A=20
href=3D"http://search.cpan.org/author/DUTCHMAN/";>http://search.cpan.org/a=
uthor/DUTCHMAN/</A>)=20
you'd write:</FONT></SPAN></DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =

size=3D2>----------------------------------------------------------------=
--------------------</FONT></SPAN></DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =

size=3D2>#!/bin/perl</FONT></SPAN></DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =
size=3D2>use=20
NBU;</FONT></SPAN></DIV>
<DIV><SPAN class=3D855293318-15042003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =
size=3D2>my=20
@list =3D NBU::Pool-&gt;list;<BR>for my $v (sort {$a-&gt;name cmp =
$b-&gt;name}=20
@list) {<BR>&nbsp; print $v-&gt;name.":\n";<BR>&nbsp; for my $p=20
(NBU::Class-&gt;list) {<BR>&nbsp;&nbsp;&nbsp; for my $s =
($p-&gt;schedules)=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print "&nbsp;=20
".$p-&gt;name."/".$s-&gt;name."\n" if ($s-&gt;pool =3D=3D =
$v);<BR>&nbsp;&nbsp;&nbsp;=20
}<BR>&nbsp; }<BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff=20
size=3D2>----------------------------------------------------------------=
--------------------</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D855293318-15042003>With this you can see exactly which policies =
(even=20
though the code still says Class: sorry...) and schedule combinations =
use which=20
volume pools.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D855293318-15042003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
  veritas-bu-admin AT mailman.eng.auburn DOT edu=20
  [mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <B>On Behalf Of =
</B>Griese,=20
  Paul<BR><B>Sent:</B> Tuesday, April 15, 2003 12:52 PM<BR><B>To:</B>=20
  veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu] How =
to=20
  create a list of job policies by pool<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">How do I create a =
listing of=20
  Netbackup 4.5 Solaris job policies by tape pool? This is for an audit =
in one=20
  hour and I don't have time to read books.</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Paul =
Griese</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">System=20
  Administration</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Telecheck=20
  Services</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Houston</SPAN></FONT><FONT=20
  face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">,=20
  </SPAN></FONT><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">TX</SPAN></FONT></P></DIV>
  <P><B><FONT face=3D"Courier New" size=3D1>(c) 2003 TeleCheck =
International, Inc.=20
  THIS DOCUMENT, AND ANY ATTACHED INFORMATION: 1) IS PROPRIETARY, =
PRIVILEGED AND=20
  CONFIDENTIAL PROPERTY OF TELECHECK UNDER APPLICABLE LAW, AND 2) IS =
INTENDED=20
  EXCLUSIVELY FOR INTERNAL USE BY TELECHECK EMPLOYEES AND INTENDED =
RECIPIENTS=20
  WITH A LEGITIMATE TELECHECK BUSINESS NEED THEREFORE. ITS REPRODUCTION, =

  DISSEMINATION, DISTRIBUTION AND/OR DISCLOSURE, EXCEPT TO SUCH =
TELECHECK=20
  EMPLOYEES AND INTENDED RECIPIENTS, IS STRICTLY PROHIBITED . IF YOU ARE =
NOT=20
  SUCH A TELECHECK EMPLOYEE OR INTENDED RECIPIENT, OR THE EMPLOYEE OR =
AGENT=20
  RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE INTENDED RECIPIENT, YOU =
ARE=20
  HEREBY NOTIFIED THAT ANY REPRODUCTION, DISSEMINATION, DISTRIBUTION =
AND/OR=20
  DISCLOSURE OF THIS DOCUMENT, OR ANY ATTACHMENTS, IS STRICTLY=20
  PROHIBITED.</FONT></B></P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0067_01C30365.54DEE5A0--