10-23-2018 03:32 AM
We have master & media server running on solaris platform and I have 1000+ client IP's and i want to check bptestbpcd output for all clients.And i am executing below for loop to check in a single go but if incase netbackup is not installed on any one of client PC the output is taking too long to print.Can any one suggest me the faster way to check.
for i in `cat /tmp/VLANIP.txt`; do echo $i; sudo bptestbpcd -verbose -client $i; done;
Solved! Go to Solution.
10-23-2018 08:13 AM
The Client Connect timeout for the server where you are running the command will be used.
You can possibly reduce this timeout to 30 or 60 sec before you start.
Oh! Wait!
It seems that bptestbpcd has a -connect_timeout option:
https://www.veritas.com/support/en_US/doc/15263389-127350397-0/v14667804-127350397
bptestbpcd [-host hostname] [-client client_name] [-M server] [-connect_options 0|1|2 0|1|2 0|1|2|3] [-connect_timeout seconds
10-23-2018 07:39 AM
You could force the sub command to the background, so you did not have to wait.
for i in `cat /tmp/VLANIP.txt`
do echo $i
sudo bptestbpcd -verbose -client $i &
done
Then once it completes, search for the hung processes, lol
10-23-2018 08:13 AM
The Client Connect timeout for the server where you are running the command will be used.
You can possibly reduce this timeout to 30 or 60 sec before you start.
Oh! Wait!
It seems that bptestbpcd has a -connect_timeout option:
https://www.veritas.com/support/en_US/doc/15263389-127350397-0/v14667804-127350397
bptestbpcd [-host hostname] [-client client_name] [-M server] [-connect_options 0|1|2 0|1|2 0|1|2|3] [-connect_timeout seconds
10-24-2018 12:03 AM
Hello,
I think bptestnetconn can also help to check the communication between Master and clients.
C:\Program Files\Veritas\NetBackup\bin>bptestnetconn.exe
Regrads,
10-24-2018 05:28 AM - edited 10-25-2018 04:54 AM
I have used bptestbpcd with the connect_timeout as Marianne suggest for exactly that reason, the connect_timeout parameter works very well.
Else look into using the command called "timeout" if you are on Linux. e.g "timeout 2 top" Will kill top command after to seconds.