cancel
Showing results for 
Search instead for 
Did you mean: 

Finding out Client Version Information 300+ Clients

Tim_Dile
Level 5
Hi All,

I need to find out the client version information on over 300+ clients. Is there an easy way to do this...

I can only think of usr/openv/netbackup/bin/admincmd/bpgetconfig -g machine -L

The problem also with the above is that if it can't connect to the machine it hangs!

Thanks,
Tim
23 REPLIES 23

Stumpr2
Level 6
Is this what your looking for?

$ bpplclients -allunique

Hardware OS Client
--------------- --------------- --------------
HP9000-800 HP-UX11.11 goofy


or perhaps
$ bpgetconfig -M | grep VERSIONINFO

VERSIONINFO = "HP-UX" "B.11.11" "Unknown" "NetBackup" "5.1" 510000Message was edited by:
Bob Stump

Stumpr2
Level 6
Tim,
In your previous post:
How does one work out when another Media Server is required?
http://forums.veritas.com/discussions/thread.jspa?threadID=56449&messageID=4404474#4404474

Have you read the latest/greatest manual for planning/performance?

Although this is titled for 6.0, there is a wealth of information that applies to ALL versions of Netbackup and even other products....


VERITAS NetBackup (tm) Enterprise Server / Server 6.0 Backup Planning and Performance Tuning Guide for UNIX, Windows, and Linux

http://ftp.support.veritas.com/pub/support/products/NetBackup_Enterprise_Server/281842.pdf

Tim_Dile
Level 5
Hi Bob,

Thanks for the quick reply. Yes "$ bpgetconfig -M | grep VERSIONINFO" this is perfect. To go one step further how can one add the client name to the end or the beginning of the command I assume some kind of script will need to be created.

so rather than
VERSIONINFO = "Windows2000" "5" "nt" "NetBackup" "5.0GA" 500000

goofy VERSIONINFO = "Windows2000" "5" "nt" "NetBackup" "5.0GA" 500000 or goofyPressed the wrong button!
Message was edited by:
Tim Dile

h_m
Level 6
Tim,

You could always use "bpclclients" to get the clients on your system, output this to a file, you'll only need the info in column 3.

UNIX version (but can be easily adapted for Windows):-

for client in `cat client-list.txt`
do
#echo ${client}
echo ${client} `/cygdrive/e/Program\ Files/Veritas/NetBackup/bin/admincmd/bpgetconfig.exe -s ${client}` >> client-versions.txt
done

h_m
Level 6
I included some wrong flags - so use: -

for client in `cat client-list.txt`
do
echo ${client} `/cygdrive/e/Program\ Files/Veritas/NetBackup/bin/admincmd/bpgetconfig.exe -g ${client} -l` >> client-versions.txt
done

Rgds,

Hywel

Tim_Dile
Level 5
Hi Hywel,

I get the following:

/usr/openv/netbackup/bin/admincmd/bpgetconfig.exe: No such file or directory

I ran bpclclients took column 3 and pasted into a file called test.clients. I also modified the command thinking the path is incorrect (Solaris) to

for client in `cat /tmp/test.clients`
do
echo ${client} `/usr/openv/netbackup/bin/admincmd/bpgetconfig.exe -s ${client}` >> /tmp/client-versions.txt
done

Thanks,
Tim

h_m
Level 6
Tim,

You�re running this on a UNIX master? Just need to get the extension of bpgetconfig and the syntax of the command right. My earlier post had bpgetconfig.exe but the file will not be a *.exe on UNIX � my error. So try: -

Go to /usr/openv/netbackup/bin/admincmd/ and then do a �ls �l bpgetconfig*� to see what the extension is. If there is an extension then add it to the script: -

#start
> /tmp/client-versions.txt
for client in `cat /tmp/test.clients`
do
echo ${client} `/usr/openv/netbackup/bin/admincmd/bpgetconfig -g ${client} -l` >> /tmp/client-versions.txt
done
#end




Rgds,

Hywel

h_m
Level 6
Tim,

I'll get this right in a minute. Need to repalce the "-g" with a "-s": -




#start
> /tmp/client-versions.txt
for client in `cat /tmp/test.clients`
do
echo ${client} `/usr/openv/netbackup/bin/admincmd/bpgetconfig -s ${client} -l` >> /tmp/client-versions.txt
done
#end




Rgds,

Hywel

Tim_Dile
Level 5
Hywel, top man!

Just what I needed thanks for the script.

Much appreciated.

Tim

David_Kies
Level 4
Certified
Supply the correct path to your executables (bpplclients, and bpgetconfig), ugly, but it'll get it done


bpplclients -allunique | cut -b 35-50 >list.txt
z=`cat list.txt | wc -l`
let z=z-2
for i in `tail -$z list.txt`
do
echo $i `bpgetconfig -M $i -X VERSIONINFO` >>verlist.txt
echo >>verlist.txt
done

Tim_Dile
Level 5
Hi David,

Thanks for your input also.

Get the following when run...

bash-2.05$ sudo ./test2.sh
./test2.sh: let: not found
tail: cannot open input


#start
/usr/openv/netbackup/bin/admincmd/bpplclients -allunique | cut -b 35-50 >list.txt
z=`cat list.txt | wc -l`
let z=z-2
for i in `tail -$z list.txt`
do
echo $i `/usr/openv/netbackup/bin/admincmd/bpgetconfig -M $i -X VERSIONINFO` >>verlist.txt
echo >>verlist.txt
done
#end

Tim

Stumpr2
Level 6
must be superuser to execute
or give full path name for sudo as root

for i in `bpplclients -allunique -noheader | awk '{print $3}'`
do
echo $i `bpgetconfig -M $i | grep VERSIONINFO`
done

David_Kies
Level 4
Certified
Ah, much more elegant Bob!

Tim_Dile
Level 5
Bob,

Results as below for your script...

goof1 VERSIONINFO
goof2 VERSIONINFO
donald VERSIONINFO = "Windows2000" "5" "nt" "NetBackup" "5.0GA" 500000
goof4 VERSIONINFO

If you run the bpgetconfig manually, you do get the info.

Tim

David_Kies
Level 4
Certified
Only valid for 5.0 and up..

Stumpr2
Level 6
hmmm...works fine for me

# for i in `bpplclients -allunique -noheader | awk '{print $3}'`
> do
> echo $i `bpgetconfig -M $i | grep VERSIONINFO`
> done
mickey VERSIONINFO = "HP-UX" "B.11.11" "Unknown" "NetBackup" "5.1" 510000
donald VERSIONINFO = "HP-UX" "B.11.11" "Unknown" "NetBackup" "5.1" 510000
pluto VERSIONINFO = "NetWare" "50" "NetWare" "NetBackup" "5.1Alpha" 510000
goofy VERSIONINFO = "WindowsNET" "5" "nt" "NetBackup" "5.1" 510000
daisy VERSIONINFO = "WindowsNET" "5" "nt" "NetBackup" "5.1" 510000
scrooge VERSIONINFO = "WindowsNET" "5" "nt" "NetBackup" "5.1" 510000
huey VERSIONINFO = "WindowsNET" "5" "nt" "NetBackup" "5.1" 510000
louey VERSIONINFO = "WindowsNET" "5" "nt" "NetBackup" "5.1" 510000


perhaps your clients are at a lower version level? 3.4 / 4.5???

Tim_Dile
Level 5
This environments a mixed bag...! I have a massive task to turn it around that's why I need all the help I can get with scripting as much as possible to capture the data.

Output from Hywel's script..

tintin WindowsNT;5.0.0.0.2.0;NetBackup;5.0GA;500000;C:\Program Files\VERITAS\NetBackuin;Windows2000 5 ;
Captain Archibald WindowsNT;5.0.0.0.4.1;NetBackup;5.0GA;500000;C:\Program Files\VERITAS\NetBackuin;WindowsNET 5 ;
snowy WindowsNT;3.4.0;NetBackup;3.4.1GA;340000;;;
Professor CuthbertWindowsNT;5.0.0.0.2.0;NetBackup;5.0GA;500000;C:\Program Files\VERITAS\NetBackuin;Windows2000 5
Thomson WindowsNT;4.5.0;NetBackup;4.5GA;450000;C:\Program Files\VERITAS\NetBackuin;Windows2000 5

Stumpr2
Level 6
I suggest you start by running the script

/usr/openv/netbackup/bin/goodies/check_coverage

It will place files into the /tmp directory that will have OS and NB version info.

It does take a long time to run. It takes most of the day for my 700+ clients.Message was edited by:
Bob Stump

Tim_Dile
Level 5
running... why didn't I think of that. All the info's in it e.g.

CLIENT: heman (/WindowsXP 5.2 build 3790)
VERSION: 4.5GA

Although doesn't display if been patched...