02-17-2014 03:50 AM
Solved! Go to Solution.
02-17-2014 04:06 AM
You can use this script (originally provided by Mark Donaldson in veritas-bu mailing list some time ago):
02-18-2014 12:51 AM
"few servers"?
As in 100 clients as per your opening post?
Simply put the list of client names in a text file (e.g. /tmp/clients),.
You may want to send output of
bpplclients -allunique -noheader | awk '{print $3}'
to a file (e.g. /tmp/clients),
bpplclients -allunique -noheader | awk '{print $3}' >/tmp/clients
then edit the file to delete the names you don't want.
(Sorry - there is no easy way - you need to compile the list of "few servers".)
Then replace this line in the script :
for c in `bpplclients -allunique -noheader | awk '{print $3}'`
with
for c in `cat /tmp/clients`
Hope this helps.
02-17-2014 04:06 AM
You can use this script (originally provided by Mark Donaldson in veritas-bu mailing list some time ago):
02-17-2014 04:07 AM
Please try this
https://www-secure.symantec.com/connect/forums/how-get-client-nbu-version-form-master#comment-5605721
Courtesy of Mark Donaldson on the Veritas-bu mailing list:
# cat cl-version
#!/bin/ksh
PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd
echo " Client \t OS Level \t Release">> /tmp/cl.out
echo "=====================\t ========================\t =======" >>/tmp/cl.out
for c in `bpplclients -allunique -noheader | awk '{print $3}'`
do
bpgetconfig -s $c -L -A | \
awk -F'=' '{if($1~/Client.OS/){os=$2}
if($1~/Patch/) {p=$2}
if($1~/Protocol/){v=$2}}
END { if(p~/^ *$/){r=v}else{r=p}
printf("%-22s\t%-25s\t%s\n","'$c'",os,r)} ' >>/tmp/cl.out
done
02-17-2014 07:46 AM
ha-ha, "great minds" and all of that
02-18-2014 12:23 AM
Thanks for the script.
Its gives result for all clients under that master server .
What i am looking for if we required for few servers .
Please help....
02-18-2014 12:51 AM
"few servers"?
As in 100 clients as per your opening post?
Simply put the list of client names in a text file (e.g. /tmp/clients),.
You may want to send output of
bpplclients -allunique -noheader | awk '{print $3}'
to a file (e.g. /tmp/clients),
bpplclients -allunique -noheader | awk '{print $3}' >/tmp/clients
then edit the file to delete the names you don't want.
(Sorry - there is no easy way - you need to compile the list of "few servers".)
Then replace this line in the script :
for c in `bpplclients -allunique -noheader | awk '{print $3}'`
with
for c in `cat /tmp/clients`
Hope this helps.
02-18-2014 03:12 AM
Thanks
Its working . Its helps me .