Veritas-bu

[Veritas-bu] Remotely Finding Version _AND_ patch level

2006-04-24 16:32:14
Subject: [Veritas-bu] Remotely Finding Version _AND_ patch level
From: sean_clarke AT softhome DOT net (Sean Clarke)
Date: Mon, 24 Apr 2006 21:32:14 +0100
This is cool thanks - can use bpcoverage for UNIX boxes and I'll nick 
some of this script to deal with Windows boxes.

Thanks!

Sean


Whelan, Patrick wrote:
> Oops, sent it to the wrong person. ;)
> 
> You could try playing with this script to see if it helps any. It only
> works for Windoze boxes, running from a unix media/master server, but
> could be adapted to unix or other. Let me know if it helps any.
> 
> ############ Cut here get_version ##################
> #!/usr/bin/ksh
> 
> # Make sure there is a client specified
> if [ $# -ne 1 ]
> then
>         echo "usage:
>                 $0 client_name"
>         exit 1
> fi
> 
> # Try to generate the client list only once. Sometime it can take a long
> time
> if [ ! -f /tmp/client.list ]
> then
>         bpplclients -allunique -noheader > /tmp/client.list
> fi
> 
> client=$1
> 
> grep -w $client /tmp/client.list | tail -1 | read HW OS CLIENT
> 
> # If CLIENT is empty, then the client is known to NetBackup
> if [ -z "$CLIENT" ]
> then
>         echo "Client $client not found"
>         exit 2
> fi
> 
> ext=""
> typeset -l os=${OS%%s*}
> if [ ${os} == "window" ]
> then
>         DIR=
> else
>         echo "This script is only for Windows clients"
>         exit 3
> fi
> 
> integer found=-39
> 
> bpdir -M $client /$DIR | \
>        grep -i "<dir>" | \
>     awk '{ print $NF }'| \
> while read DIR
> do
>         found=$( bpdir -M $client /$DIR | \
>                 egrep -ic "veritas" )
>         if [ found -gt 0 ]
>         then
>                 ffound=$(bpdir -M $client /$DIR/veritas/netbackup | \
>                 grep -c version.txt )
>                 bpgp from $client \
>                         /$DIR/veritas/netbackup/version.txt \
>                         /tmp/$client.txt
>                 cat /tmp/$client.txt
>                 exit
>                 
>         fi
> done
> 
> -----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 Mansell,
> Richard
> Sent: 23 April 2006 21:49
> To: veritas-bu AT mailman.eng.auburn DOT edu
> Subject: RE: [Veritas-bu] Remotely Finding Version _AND_ patch level
> 
> 
> 
>  FWIW, the Windows admin console in 6.0 reports the client version for
> Windows clients. We are only running 6.0 at the moment so I don't know
> if it will report the version for pre-6 clients.
> 
> -----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 Sean
> Clarke
> Sent: Sunday, 23 April 2006 8:51 pm
> To: Sean Clarke; veritas-bu AT mailman.eng.auburn DOT edu
> Subject: Re: [Veritas-bu] Remotely Finding Version _AND_ patch level
> 
> Ed Wilts wrote:
>> On Wed, Apr 19, 2006 at 11:42:10PM +0100, Sean Clarke wrote:
> .... 
>> consistent way to get the versions across all clients.
>>
>>         .../Ed
>>
> 
> I'll go to my corner and cry now ;-)
> 
> Guess I'll report on the UNIX boxes (which seem to play OK with
> bpcoverage and just report the major version number for windows boxes.
> 
> 
> Very annoying as to the untrained eye it would seem to be easy to ensure
> 
> that this worked :-(
> 
> Thanks for the replies anyway
> 
> Sean
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> 
> 
> **********************************************************************
> This electronic email and any files transmitted with it are intended 
> solely for the use of the individual or entity to whom they are
> addressed. 
> 
> The views expressed in this message are those of the individual 
> sender and may not necessarily reflect the views of the Christchurch
> City Council.
> 
> If you are not the correct recipient of this email please advise the
> sender and delete.
> 
> Christchurch City Council
> http://www.ccc.govt.nz
> **********************************************************************
> 
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> 
> 
> *************************************************************************************
> The message is intended for the named addressee only and may not be disclosed 
> to or used by anyone else, nor may it be copied in any way. 
> 
> The contents of this message and its attachments are confidential and may 
> also be subject to legal privilege.  If you are not the named addressee 
> and/or have received this message in error, please advise us by e-mailing 
> security AT colt DOT net and delete the message and any attachments without 
> retaining any copies. 
> 
> Internet communications are not secure and COLT does not accept 
> responsibility for this message, its contents nor responsibility for any 
> viruses. 
> 
> No contracts can be created or varied on behalf of COLT Telecommunications, 
> its subsidiaries or affiliates ("COLT") and any other party by email 
> Communications unless expressly agreed in writing with such other party.  
> 
> Please note that incoming emails will be automatically scanned to eliminate 
> potential viruses and unsolicited promotional emails. For more information 
> refer to www.colt.net or contact us on +44(0)20 7390 3900.
> 
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> 
>