Forum Discussion

Sid1987's avatar
Sid1987
Level 6
8 years ago

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 bptestbpcd cannot be used for automation

  • 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

5 Replies

  • 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

    • Sid1987's avatar
      Sid1987
      Level 6

      NicolaiThis seems helpful let me try it out on my script. I will post as soon as I have a result

      • Nicolai's avatar
        Nicolai
        Moderator

         

        Sid1987 you may want to/try to add the -debug flag as this will provide some additional info. 

  • Hi there,

    Have you tried this?

    bptestbpcd -host server -client client -verbose -debug >> output.log

    And yes bpgetconfig is very reliable AFAIK.

  • If you have master and one or more media server, you need to repeat the test on media server(s).