Many thanks Ed.

 

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

 

I posted this to the list a while back:

r...@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

[r...@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.
<sreynol...@semprautilities.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
        ewi...@ewilts.org

_______________________________________________
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Reply via email to