Veritas-bu

[Veritas-bu] Way to get revision with 5.1?

2005-11-28 14:00:01
Subject: [Veritas-bu] Way to get revision with 5.1?
From: CJManders AT LBL DOT GOV (Christopher Jay Manders)
Date: Mon, 28 Nov 2005 11:00:01 -0800
--Apple-Mail-4-278379086
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
        charset=US-ASCII;
        delsp=yes;
        format=flowed

I have used the following PERL:

#!/usr/bin/perl

$| = 1;

$bpclclients = "/usr/openv/netbackup/bin/admincmd/bpclclients";
$bpgetconfig = "/usr/openv/netbackup/bin/admincmd/bpgetconfig -M";

###
### GET THE HOSTS TO CHECK:
@hosts = `$bpclclients | awk '{print \$3}'`;

###
### Run check loop on 'HOSTS TO CHECK'
foreach $host (@hosts)
{
    chomp($host);

   ## Run getconfig
   $version = `$bpgetconfig $host | grep -i version | grep -v  
VERSIONINFO |  awk -F= '{print \$2}'`;
   chomp($version);

   ## PRINT TO LOG and STDOUT:
   print "Host: $host :: Version: $version\n";
   open(LOG, ">>bkup_hosts.log");
   print LOG "Host: $host :: Version: $version\n";
   close LOG;
}
#======================================================================= 
========


HTH

--Chris



> Is there anyway, short of logging into 400 machines to see which MP  
> level I am running on a particular client?
>
>


--Apple-Mail-4-278379086
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
        charset=ISO-8859-1

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; ">I have used the following =
PERL:<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>#!/usr/bin/perl</DIV><DIV><BR=
 class=3D"khtml-block-placeholder"></DIV><DIV>$| =3D 1;</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>$bpclclients =3D =
"/usr/openv/netbackup/bin/admincmd/bpclclients";</DIV><DIV>$bpgetconfig =
=3D "/usr/openv/netbackup/bin/admincmd/bpgetconfig -M";</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>###</DIV><DIV>### GET THE =
HOSTS TO CHECK:</DIV><DIV>@hosts =3D `$bpclclients | awk '{print =
\$3}'`;</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>###</DIV><DIV>### Run check =
loop on 'HOSTS TO CHECK'</DIV><DIV>foreach $host =
(@hosts)</DIV><DIV>{</DIV><DIV>=A0=A0 chomp($host);</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>=A0 ## Run =
getconfig</DIV><DIV>=A0 $version =3D `$bpgetconfig $host | grep -i =
version | grep -v VERSIONINFO |=A0 awk -F=3D '{print \$2}'`;</DIV><DIV>=A0=
 chomp($version);</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>=A0 ## PRINT TO LOG and =
STDOUT:</DIV><DIV>=A0 print "Host: $host :: Version: =
$version\n";</DIV><DIV>=A0 open(LOG, =
"&gt;&gt;bkup_hosts.log");</DIV><DIV>=A0 print LOG "Host: $host :: =
Version: $version\n";</DIV><DIV>=A0 close =
LOG;</DIV><DIV>}</DIV><DIV>#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</DIV><DIV><BR><DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>HTH</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>--Chris</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><DIV =
class=3D"Section1"><P class=3D"MsoNormal"><FONT size=3D"2" =
face=3D"Arial"><SPAN style=3D"font-size:10.0pt; font-family:Arial; =
font-size: 13.3333px; "><SPAN class=3D"Apple-style-span" =
style=3D"font-family: Arial; font-size: 13.3333px; ">Is there anyway, =
short of logging into 400 machines to see which MP level I am running on =
a particular client?</SPAN><O:P style=3D"font-family: Arial; font-size: =
13.3333px; "></O:P></SPAN></FONT></P></DIV><BR =
class=3D"Apple-interchange-newline"></SPAN></BLOCKQUOTE></DIV><BR></DIV></=
BODY></HTML>=

--Apple-Mail-4-278379086--

<Prev in Thread] Current Thread [Next in Thread>