AutoSys Workload Automation

 View Only
  • 1.  DE Primary Server File

    Posted Mar 09, 2018 11:53 AM

    Hi, i was wondering if there is a file that can be searched at any time to find whether or not that particular server is the primary or secondary server. I'm looking for some sort of file located on both primary and secondary servers that can tell me which one is primary



  • 2.  Re: DE Primary Server File

    Broadcom Employee
    Posted Mar 09, 2018 12:38 PM

    Hi Travis,

     

    You can use the CLI utility as it always runs commands against the active server (unless you specify the standby operand in the command).

     

    Please consult the following docops page for more information.

     

    Failover Support in the Stand-Alone Command Line Interface - CA Workload Automation DE - 12.0 - CA Technologies Document… 

     

    I hope this can help.

     

    Thanks,

    Roya



  • 3.  Re: DE Primary Server File

    Posted Mar 09, 2018 01:26 PM

    Thanks for the info. Due to what I am trying to do, I was trying not to go that route and maybe just parse a file instead.



  • 4.  Re: DE Primary Server File
    Best Answer

    Posted Mar 09, 2018 03:32 PM

    Hi Travis,

    Hope you are doing well. 

    When DE switches from primary to standby there are SNMP messages not sure if you could use those. 

    I also forced a fail over on our LAB env and I found these messages in the tracelog and stdout.txt log

    c80001> grep -a 'Switching Roles' *

    grep: buffer: Is a directory

    tracelog.txt:20180309 14:10:15.777 [essential] [INFO] RMI TCP Connection(25828)-161.222.54.43: [2018-03-09_14:10:15.777] New StatusMessage: [date: Fri Mar 09 14:10:15 CST 2018, type: SNMP, description: "Cybermation ESP or ESPresso terminate trap", variables: "Node type" = CA Workload Automation DE, "Extended status" = UXLAB1080:7500: Switching Roles, "Primary manager name and address" = localhost:162, "Node name" = Returning to STANDBY mode by change role command, "Node version" = 12.0.02.00]

    tracelog.txt:20180309 14:10:15.804 [essential] [INFO] RMI TCP Connection(25828)-161.222.54.43: [2018-03-09_14:10:15.804] New status message is inserted: [date: Fri Mar 09 14:10:15 CST 2018, type: SNMP, description: "Cybermation ESP or ESPresso terminate trap", variables: "Node type" = CA Workload Automation DE, "Extended status" = UXLAB1080:7500: Switching Roles, "Primary manager name and address" = localhost:162, "Node name" = Returning to STANDBY mode by change role command, "Node version" = 12.0.02.00]

    tracelog.txt:20180309 14:10:15.804 [snmp] [INFO] RMI TCP Connection(25828)-161.222.54.43: [2018-03-09_14:10:15.804] Sending SNMP Trap: 4 - [CA Workload Automation DE, 12.0.02.00, Returning to STANDBY mode by change role command, localhost:162, UXLAB1080:7500: Switching Roles]

    tracelog.txt:Parameter 5: UXLAB1080:7500: Switching Roles

    uxlab1080:/opt/dseries/WA/logs

    c80001>

     

    uxlab1080:/opt/dseries/WA/logs

    c80001> cat stdout.txt

    2018-03-09 14:10:15.767 -> Performing a CHANGE ROLE.

    Variable Manager Component has stopped: 2018-03-09 14:10:15.829

    Resource Manager Component has stopped: 2018-03-09 14:10:15.83

    Workstation Component has stopped: 2018-03-09 14:10:15.851

    Application Manager Component has stopped: 2018-03-09 14:10:15.857

    Scheduler Component has stopped: 2018-03-09 14:10:15.939

    Configuration Component has stopped: 2018-03-09 14:10:15.94

    Workstation Component is ready: 2018-03-09 14:10:16.835

    Found a primary peer server at UXLAB1081:7599//161.222.54.43_7500_F50012CF-AE1F-474F-9DCD-6C06C3316A90

     

    Running as Standby

    uxlab1080:/opt/dseries/WA/logs

    c80001>

     

    not sure if you can use any of this but I had time and I thought there had to be a way

     

    Have a good weekend

    Sharon



  • 5.  Re: DE Primary Server File

    Posted Mar 09, 2018 03:43 PM

    Thanks for the info Sharon! I love that you are driven to find the answer  The stdout file "may" work for our situation. I will keep this in mind and bring it to another team who is working on some automation things that will be using DE.

     

    Have a great weekend!