Veritas-bu

Re: [Veritas-bu] Client version

2009-06-10 11:29:16
Subject: Re: [Veritas-bu] Client version
From: "Jeff Lightner" <jlightner AT water DOT com>
To: <judy_hinchcliffe AT administaff DOT com>, <Mark.Donaldson AT Staples DOT com>, <SReynolds2 AT semprautilities DOT com>, <ewilts AT ewilts DOT org>
Date: Wed, 10 Jun 2009 11:25:56 -0400

It does for 6.0 versions…

 

Release

===========

6.0.0.0.4.4

6.0.0.0.4.4

6.0.0.0.4.4

6.5.0

6.5.0

5.1.0

 

 

By the way – the formatting is slightly off due to long Linux OS Levels (for my RHEL systems) and also the Release column was a bit short for those 6.0 versions so I modified it as follows:

 

echo "      Client      \t         OS Level         \t   Release"

echo "==================\t =========================\t ==========="

for c in `bpplclients -allunique -noheader | awk '{print $3}'`

do

  bpgetconfig -s $c -L | \

    awk -F'=' '{if($1~/Client.OS/){os=$2}

                if($1~/Client.Proto/){r=$2}}

                END {printf("%-22s\t%-25s\t%s\n","'$c'",os,r)} '

done

 

Nice script Mark.


From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of judy_hinchcliffe AT administaff DOT com
Sent: Wednesday, June 10, 2009 11:19 AM
To: Mark.Donaldson AT Staples DOT com; SReynolds2 AT semprautilities DOT com; ewilts AT ewilts DOT org
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Client version

 

Note on Marks script, the command does not show the fourth position on the version  6.5.3.1  all I am getting is 6.5.3.

 

Not that there is anything wrong with Marks script, its just that the command does not show fourth position.

 


From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Donaldson, Mark
Sent: Wednesday, June 10, 2009 9:52 AM
To: Reynolds, Susan K.; Ed Wilts
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Client version

 

A little late to this party but here's another version.

 

#!/bin/ksh

 

PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd

 

echo "      Client         \t     OS Level     \t Release"
echo "=====================\t =================\t ======="
for c in `bpplclients -allunique -noheader | awk '{print $3}'`
do
  bpgetconfig -s $c -L | \
    awk -F'=' '{if($1~/Client.OS/){os=$2}
                if($1~/Client.Proto/){r=$2}}
                END {printf("%-22s\t%-18s\t%s\n","'$c'",os,r)} '
done

 


From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Reynolds, Susan K.
Sent: Tuesday, June 09, 2009 10:12 PM
To: Ed Wilts
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Client version

Many thanks Ed.

 

From: Ed Wilts [mailto:ewilts AT ewilts DOT org]
Sent: Tuesday, June 09, 2009 5:52 PM
To: Reynolds, Susan K.
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Client version

 

I posted this to the list a while back:

root@osiris bin]# cat get-client-versions.sh
#!/bin/sh

# Loop through all clients gathering the client version info

PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd

export PATH

CLIENTS=/usr/openv/local/client-versions
OUT=/usr/openv/local/client-versions.csv

[ ! -d $CLIENTS ] && mkdir $CLIENTS

bpplclients -allunique -noheader | awk '{print $NF}' | \
while read client
do
  echo Client: $client
  bpgetconfig -s $client -L -A > $CLIENTS/$client
done

cd $CLIENTS
for f in *
do
  awk -f /usr/openv/local/bin/get-client-versions.awk $f
done > $OUT

[root@osiris bin]# cat get-client-versions.awk
/Platform/ {PLATFORM = $5}
/Client OS/ {OS = $5}
/Patch/ {print FILENAME "," $4 "," OS "," PLATFORM }

 

On Tue, Jun 9, 2009 at 6:23 PM, Reynolds, Susan K. <SReynolds2 AT semprautilities DOT com> wrote:

Is there a quick command that can be run that will list the current version of Netbackup for each client on the command line without having to extract the information from the GUI or Administrative Console?

 

Just looking for a shortcut.

 

 

--
Ed Wilts, Mounds View, MN, USA
ewilts AT ewilts DOT org

 
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. 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>