AutoSys Workload Automation

 View Only
  • 1.  restarting services with unicntrl

    Posted Dec 24, 2019 04:13 AM
    Edited by Bohdan Zaiachkovskyi Dec 24, 2019 04:14 AM
    Hi!
    I'd like to manage all AutoSys services with unicntrl stop\start\restsrt ALL. 
    I have next services in my installation: 
    CA-CCS CA-WAAE CA-ais CA-alert CA-cal CA-cam CA-cauwvdmn CA-cci CA-diadna CA-diaukb CA-em CA-emsrvc CA-help CA-opr CA-snmp CA-star CA-wcc CA-wcc-db CA-wcc-services CA-wvubi postgres waae_agent-WA_AGENT waae_sched.P03 waae_server.P03
    If i run "unicntrl stop ALL", CA-wcc, CA-wcc-db and CA-wcc-services remain in running status, but if I stop them separately from other services with "unicntrl stop CA-wcc CA-wcc-db CA-wcc-services" I get them stopped. 
    Is there any way to stop wcc* services with "unicntrl stop ALL"?


  • 2.  RE: restarting services with unicntrl

    Posted Dec 25, 2019 01:23 AM
    Edited by Yehonatan Amir Dec 25, 2019 01:27 AM
    Hey Bohdan,
    You can use the unistart and unishutdown to stop only specific services - those of the WCC.
    I Created a small bash script (you might need to edit it as the services of the wcc might be called diffrent at your installation [basilcy anything with wcc in it is related]) to do this for me :


    ###### Script by Yoni A , for autosys WCC #######

    #!/bin/sh
    # to use scrip run : ./start_stop_WCC start/stop
    action=$1

    #check if start or stop
    if [ "$action" == "start" ]; then

    echo the Command is = 'unistart CA-wcc CA-wcc-services CA-wcc-db'

    unistart CA-wcc CA-wcc-services CA-wcc-db

    unisrvcntr status
    exit 0
    fi

    if [ "$action" == "stop" ]; then

    echo the Command is = 'unishutdown CA-wcc CA-wcc-services CA-wcc-db'

    unishutdown CA-wcc CA-wcc-services CA-wcc-db

    unisrvcntr status

    exit 0
    fi

    echo "no such option please use start or stop"

    unisrvcntr status

    exit 2
    #=======================================

    Hope it helps,
    Yoni
    ​​​


  • 3.  RE: restarting services with unicntrl

    Posted Dec 30, 2019 03:09 AM
    Hi,
    At least in WCC 11.4 SP6 you can run "unisrvcntr stop CA-wcc-services" to stop all WCC services and "unisrvcntr start CA-wcc" to start all of them

    Best regards.
    José


  • 4.  RE: restarting services with unicntrl
    Best Answer

    Posted Feb 13, 2020 05:06 AM
    I've found the solution. (checked for CA_WAAE)
    Firstly we must check, that necessary services are registered in /etc/init.d.
    Then check the config file unisrvcntr.cfg in /opt/CA/SharedComponents/csutils/config. I added servicices here to manage them with unicntrl start/stop ALL 
    Service_Center_Directory /etc/init.d
    Service_Bootstrap_Parent_Dir /etc
    Service_Bootstrap_Digits 2
    Service_Bootstrap_Levels 0123456
    Verbose_Level 1
    Unisrvcntr_Env_Replace_File $CASHCOMP/csutils/config/uniscc.cfg
    Statinfo_File $CASHCOMP/csutils/config/casrvc.inf
    Log_File $CASHCOMP/csutils/log/casrvc.log
    Unifstat_b_Support CA-alert
    Unifstat_b_Support CA-ais
    Unifstat_b_Support CA-atech
    Unifstat_b_Support CA-cal
    Unifstat_b_Support CA-cam
    Unifstat_b_Support CA-cauwvdmn
    Unifstat_b_Support CA-cci
    Unifstat_b_Support CA-discovery
    Unifstat_b_Support CA-em
    Unifstat_b_Support CA-emsrvc
    Unifstat_b_Support CA-help
    Unifstat_b_Support CA-mcc
    Unifstat_b_Support CA-opr
    Unifstat_b_Support CA-sche
    Unifstat_b_Support CA-secu
    Unifstat_b_Support CA-snmp
    Unifstat_b_Support CA-star
    Unifstat_b_Support CA-wv
    Unifstat_b_Support CA-wvubi
    Unifstat_b_Support CA-wvmgr
    Unifstat_b_Support ingresEI
    OS_Platform RedHat
    Main_Service_Entry CA-em
    Main_Service_Entry CA-CCS
    Main_Service_Entry CA-WAAE