10-14-2009 09:25 AM
10-14-2009 10:50 AM
10-14-2009 11:41 AM
In my policies we have diffrent Opearting systems like windows2000 , windows 2003, windows 2008 ,solaris8,solaris9,solaris10 redhat 2.4 ,redhat 2.6 etc so what do i need to do for other operating systems , did u got vision what I am trying to achieve.
Thanks
Nick
10-14-2009 12:46 PM
10-15-2009 07:03 AM
10-15-2009 09:17 AM
10-15-2009 09:58 AM
10-15-2009 10:46 AM
10-15-2009 11:52 AM
10-15-2009 12:43 PM
10-15-2009 03:20 PM
bppllist -allpolicies | awk '{ if ($1=="CLASS") {p=$2} \
if ($1=="CLIENT"){c=$2;o=$4;printf("%s %s %s\n",p,c,o)} }' > /tmp/mylist
while read POLICY CLIENT OS
do
echo $POLICY $CLIENT
NEWOS="`bpgetconfig -s $CLIENT -L | grep Platform | awk '{print $6}'`"
<install_path>/openv/netbackup/bin/admincmd/bpplclients $POLICY -modify $CLIENT -os $NEWOS
done < /tmp/myllist
I would advise against this method however due to the fact that you cannot ensure that all clients will be up and running when you run the bpgetconfig command. If a client is down or unreachable, the script will hang at that point and will not return any data and you will not get a value for the NEWOS variable that you would like to use in the bpplclients command.
My preference would be the three-step method of first creating the list using the short awk script to collect all of the policy-client-os data into a file. Next edit that file with the OS changes that you want to make (this also allows you to remove any clients that you don't wish to update). Finally, you run the script to make the changes.