Veritas-bu

Re: [Veritas-bu] Bpplist Policy Script

2009-09-28 14:37:50
Subject: Re: [Veritas-bu] Bpplist Policy Script
From: "Donaldson, Mark" <Mark.Donaldson AT Staples DOT com>
To: <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Mon, 28 Sep 2009 12:34:38 -0600

Heh - funny how my old scripts pop up on here every now and then…

 

This one is still good but I had to go to "gawk" on Solaris 8 instead of "awk".  I've got a couple policies now that have listings large enough to bomb-out the elderly "awk" on Sol 8.

 

-M

 

From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Jimenez, Daniel
Sent: Friday, September 25, 2009 6:03 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Bpplist Policy Script

 

I found the script below that pulls the policy and storage device from Netbackup but it is for Unix and was wondering if anyone knows how to translate this to Windows?

 

bppllist -allpolicies | awk `{

if ($1=="CLASS") {c=$2;stu="";printf("\n%24s: ",c)}

if ($1=="RES" || $1=="SCHEDRES" ){

  F=2

  while($F!~/NULL/ && F<=NF) {if($F!=stu){stu=$F;printf("%12s

",$F)};F++}

  }

}END{printf("\n")}`

 

OneWest Bank, FSB
Daniel Jimenez
Technical Consultant
16608 Valley View Ave
La Mirada, CA 90638
Phone: 714-520-3421
Cell: 562-480-2966
Fax: 714-520-3470
Daniel.Jimenez AT owb DOT com
Website: http://www.owb.com/
Website: http://www.onewestbank.com/
____________________________________________________________________
This message contains information which may be confidential and privileged.
Unless you are the addressee (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
let the sender know and delete the message. Thank you.

 

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<Prev in Thread] Current Thread [Next in Thread>