08-06-2012 04:33 AM
Hi,
Got a query on an issue I am facing.
I am migrating clients from NBU old master to new master and when I am trying to change bp.conf entries of client from master server through cmd line, I am using bpsetconfig cmd and it is removing all the previous entries. I want to know is there any way from which we can just change the master server entry in bp.conf file using cmd line.
Do any one know any cmd ?
thanks
Abaig
Solved! Go to Solution.
08-06-2012 08:44 AM
What about the GUI?
Select all your Clients that you want to update in the Admin Console
Right click Properties.
Add the new Master Server as an Additional Server.
Highlight it and then hit Make Master
You can do this on Linux/UNIX clients , not just Windows.
08-06-2012 05:30 AM
I am using this cmd ./bpsetconfig -h $server FILE_NAME, but when I am using these cmd it is removing all the previous entries of media servers in the bp.conf file, Is there any way from which we can just change the master server entry in the bp.conf file using bpsetconfig or any other cmd.
Thanks
Abaig
08-06-2012 05:48 AM
That is not possible without doing some complex scripting.
sed -i 's/masterserver/newmaster/' /usr/openv/netbackup/bp.conf
NOTE: this changes ALL entries for masterserver to newmaster in the bp.conf.
You could use some 'rsh or ssh' commands to do this.
Get a list of unix clients to update. Ensure ssh or rsh allows remote connections. Something like this might work with all clients listed in clientfile text file on each line:
for client in `cat clientfile`
do
rsh $client sed -i 's/masterserver/newmaster/' /usr/openv/netbackup/bp.conf
done
08-06-2012 08:29 AM
Can you show us the command your using?
See TN:
Setting NetBackup configuration options by using bpsetconfig
However, I suspect this would want the NetBackup Client Service to be restarted also. As you point to a new master.
08-06-2012 08:44 AM
What about the GUI?
Select all your Clients that you want to update in the Admin Console
Right click Properties.
Add the new Master Server as an Additional Server.
Highlight it and then hit Make Master
You can do this on Linux/UNIX clients , not just Windows.
08-06-2012 09:17 AM
Stuart, does that work for multiple clients selected? If so, nice find.
08-06-2012 12:31 PM
from experience
08-07-2012 10:29 AM
Revaroo,
Your script worked, but it is deleting the old master entry from bp.conf file.
what I am thinking is we can add the servers through add_Media_server cmd and after that we can change the master server with other added server through GUI, is there any way to change only master server through cmd line.
Thanks,
Abaig.
08-07-2012 11:30 AM
Yes it is deleting the old master server entry. Your initial post stated:
>> is there any way from which we can just change the master server entry in bp.conf file using cmd line.
IF you change the Master server entry you need to change the other entries such as EMMSERVER too
08-07-2012 01:22 PM
Notice the greyed out Add To All. Would appear if multiple clients selected. I only had 1 client selected in this screengrab.