05-23-2011 05:05 PM
Hello ,
I would like to know how to get the Netbackup client version info from the master server...
my master version is NBU 6.5.6
as per my knowledge.... we can get that from the GUI.. host porerties..
and ever from the bptestbpcd and bpgetconfig..
my requirement is like need to know all client versions.. and its very large client base..
400-500 clients from each master.. and more than 20 master . so if I go with GUI or commands from each cliets it will take days to get the data..
so now ..I am looking for..
is there any command or script to get the all clients NBU version in a master..?
its highly appreciated...
Thanks in advance.
Solved! Go to Solution.
05-24-2011 03:27 AM
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
05-23-2011 09:44 PM
You asked is there a way to get the client version from the master server without using the GUI or bpgetconfig or bptestbpcd..
I don't believe there is any other way... (unless nbdna does it, i've never used it.)
You could get the info using 3rd party tools such as blade logic, tivoli, or something simliar.. but using netbackup tools I don't believe there is...
hmm... you could write some sort of script to restore all the "version" files on the clients to one place and identify which version goes with each client...that's seems kind of crazy when you could just use bpgetconfig...
I say you just write a script and run it on each master server to gather each domain's client information using bpgetconfig. If each master server runs the script at the same time you could compile a list with bpgetconfig in less than 45 minutes. (That's what I do)
05-24-2011 03:27 AM
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
05-24-2011 10:35 AM
its perfctly working for me
Marianne.. Thank you very much...
I really appreciate it..
have a question
what if a client has communication issue form the master server..
will that check for the client and skip that client and go for the next client..?
05-24-2011 10:53 AM
Correct - certain clients (especially DMZ clients) can only be accessed by media servers. The script will 'hang' for a while on these clients, report a blank line, then carry on with next client. The script can be run from media server backing up these clients. You can manually create an input file for these clients.
Example of output I got on a live site:
Errors while connecting to certain clients (all these clients will display blank output):
cannot connect on socket
client hostname could not be found
network connection timed out
client connection refused
socket read failed
/tmp : tail -f cl.out
Client OS Level Release
===================== ======================== =======
client1 Windows2003 5 6.0MP4
client2 Windows2003 5 6.5
client3
client4
client5 SunOS 5.10 6.0MP6
client6 Windows2003 5 6.5.1
client7 Windows2003 5 6.5
client8 SunOS 5.10 6.5.3
We might be able to get missing client info from media servers backing up those clients, but it will take time finding the policies for the clients in order to find media server name…
root@media1 # ksh cl-version
Client OS Level Release
===================== ======================== =======
client3 SunOS 5.8 5.1MP3
05-24-2011 12:06 PM
yes... now I can see that output in my servers..
Thank you ...