command to check which master server is being used by the client
Updated: 22 May 2010 | 1 comment
hi all,
Is there a command to check from the master server to check what master is configured on the clients. i know its kinda wiered. recently we migrated all the policies from one master server A to another master server B. When checked on the client properties we found out that the clients still point to the old master server. there have been 1000 of policy migrated to this master server and we are finding it difficult to check which master it is using..
thanks and regards,
RRosario
discussion Filed Under:
Comments
You should be able to get what you need with bpgetconfig
e.g.
bpgetconfig -s client
# bpgetconfig -s CLIENT1
Client of MASTER
PC, WindowsNT
5.1.0
NetBackup
5.1
510000
C:\Program Files\VERITAS\NetBackup\bin
Windows2003 5
# bpgetconfig -s CLIENT2
Client of MASTER
Solaris, Solaris10
6.5.0
NetBackup
6.5
650000
/usr/openv/netbackup/bin
SunOS 5.10
***EDIT***
Another variant of this is : bpgetconfig -M client -x SERVER (the -x SERVER pulls out all config entries of "SERVER =" from bp.conf or Windows equivalents, the Master server should be the FIRST entry)
e.g.
bpgetconfig -M client1 -x SERVER
SERVER = MASTER
Our UNIX clients tend to have a fair few entries, so I would tend to use the "head" command to cut this down to the first line (which as already mentioned should be the master server anyway)
bpgetconfig -M client2 -x SERVER | head -1
SERVER = MASTER
Regards Andy
"It's not too late to panic ..."
Would you like to reply?
Login or Register to post your comment.