Simple shell script for adding new media server to all or selected NBU clients.
while read client
do
echo -e "$client\t\c"
bpgetconfig -M $client SERVER > x.tmp 2> /dev/null
if [ $? -ne 0 ]
then
echo CONNECTION FAILED
else
echo "SERVER = new.media.server" >> x.tmp
bpsetconfig -h $client x.tmp
if [ $? -ne 0 ]
then
echo SETTING FAILED
else
echo OK
fi
fi
done
Then pass list of clients to STDIN of the script above as follows:
cat clientlist.txt | ./add_media_server.sh
The client list can be list of all clients or just clients in particular site or clients of particular customer - depends on your usage of media server(s).