05-26-2012 10:58 AM
hi Everyone,
I need to get information of version all netbackup clients configured in master server.
Please give me complete information of commant to be used or else if script is there then please give me that information..
Thanks in advance
gaurav
Solved! Go to Solution.
05-26-2012 10:27 PM
Expert NBU script writer, Mark Donaldson, has shared his script on the veritas-bu mailing list some time ago:
#!/bin/ksh
PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd
echo " Client \t OS Level \t Release"
echo "=====================\t ========================\t ======="
for c in `bpplclients -allunique -noheader | awk '{print $3}' |grep sg.55`
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)} '
done
It produces one line output per client.
Understand that it takes time to run since the master has to connect to clients one-by-one to request info.
If there is any connectivity issue to a client, script will take even longer as bpgetconfig will wait for Client_Connect_Timeout to expire before the next client is attempted.
05-26-2012 12:40 PM
Netbackup GUI -> Host Properties -> Clients -> block mark all client and let Netbackup retrieve the client version.
If you wan to use the command line there is info and examples here:
https://www-secure.symantec.com/connect/forums/easiest-way-get-client-version-number
http://www.symantec.com/docs/TECH37628
05-26-2012 10:27 PM
Expert NBU script writer, Mark Donaldson, has shared his script on the veritas-bu mailing list some time ago:
#!/bin/ksh
PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd
echo " Client \t OS Level \t Release"
echo "=====================\t ========================\t ======="
for c in `bpplclients -allunique -noheader | awk '{print $3}' |grep sg.55`
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)} '
done
It produces one line output per client.
Understand that it takes time to run since the master has to connect to clients one-by-one to request info.
If there is any connectivity issue to a client, script will take even longer as bpgetconfig will wait for Client_Connect_Timeout to expire before the next client is attempted.