Video Screencast Help

Updating Client Additional severs via command line

Created: 27 Sep 2013 • Updated: 07 Oct 2013 | 11 comments
This issue has been solved. See solution.

Hi Guys,

We are currently trying to add some new media server hostnames to the the "additional servers"  in Client Properties under the server tab. The problem is that we have over 1,000 clients to change. I know you can manually do it, which would take forever, but is there a way I could automate this via command line? I've been looking through the command guide but I think I'm missing something?


Operating Systems:
Discussion Filed Under:

Comments 11 CommentsJump to latest comment

revarooo's picture

When you say automate, how many clients do you want to add the additional servers to?

All of them? Just a few in specific policies?

newguy77's picture

We have to add the new media server hostnames to all of our client properties.


Mark_Solutions's picture

On the Master in the netbackup\bin\ directory is the add_media_servers_on_clients executable

Run this on the Master and it will update all clients to have the same servers in their list as the Master has

It will need to be able to connect to them all to do it

Hope this helps

Authorised Symantec Consultant . Expert Partner.

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

Stumpr2's picture

NetBackup geezer alert!

Longtime ago the add_media_servers_on_clients was an ordinary shell and it is where bpgp was discovered ;-)

It pulled the bp.conf file from the client to the master, added the server, wrote new bp.conf on client.

VERITAS ain't it the truth?

Stumpr2's picture

If you are mostly windows then you can write vbs or whatever to export the server key from the registry, append the new server and then import the new key.


Using the NetBackup GUI to alter client properties page really sucks because you can only do about 25 servers at a time.

VERITAS ain't it the truth?

DG-2005's picture

hopefully simplistic things like this call be rolled out (along with auto updating of clients)

newguy77's picture

We ended up doing it by hand. We didnt use the add_media_servers_on_clients executable as there are quite a few servers that on the master that we don't want pushed to all clients.

Thanks for the assistance. I'm not sure how to close this but the topic can be closed.

Darren Richardson's picture

Why not use bpgetconfig / bpsetconfig with the relevant switches. I am assuming it works on windows the same as unix.

When we changed our Master we used it to modify hundreds of clients via a script in about 2 minutes.

- Darren

Stumpr2's picture

this too will work but there is one caveate. You have to add all media servers with the command. You can't add a single server but must add the entire list

VERITAS ain't it the truth?

Darren Richardson's picture


    Thats what the bpgetconfig is for. We get the server list, edit it to what we require (adding or removing media servers), and then use bpsetconfig to send it back.

For example to add a new media server we do

bpgetconfig -M client_name Server  | awk '
$1=="Server" { print $0 }
END {print "Server = newmediaserver"}' > /tmp/setconfig


bpsetconfig -h client_name /tmp/setconfig

Works like a charm for us.

Stumpr2's picture

ayep. As long as you include all the Servers originally designated along with the new server then it works. Unfortunately the documentation for bp(gs)etconfig does not do a good job of explaining.

VERITAS ain't it the truth?