Sid1987
8 years agoLevel 6
bptestbpcd output to a file
Is it possible to redirect output of bptestbpcd to a file or any other way to check list of clients connectivity for automation. Is bpgetconfig reliable to make sure backup will run in case bptestbp...
- 8 years ago
What OS do you use ?
For uinix based system, you can check the exit stat code of bptestbpcd
Example:
# bptestbpcd -client acme
1 1 1
10.145.255.3:13182 -> 10.145.255.4:1556
10.145.255.3:45608 -> 10.145.255.4:1556
10.145.255.3:52908 -> 10.145.255.4:1556
[root@jordan ~]# echo $?
0
# bptestbpcd -client acmeX -connect_timeout 4
<16>bptestbpcd main: Function ConnectToBPCD(acmeX) failed: 48
<16>bptestbpcd main: client hostname could not be found
client hostname could not be found# echo $?
48