IT Process Automation

  • 1.  Monitoring of number of processes ITPAM is running.

    Posted Jun 28, 2017 09:16 AM

    Hi Team,

    There is a requirement of monitoring for the number of processes that ITPAM is running at a particular time. We have ITPAM 4.3 in HA mode with 2 instances in Production environment.

    I know the way to get this information using user interface of ITPAM. But I have to do it automatically at regular intervals. I can't find any way to do it automatically.

    Kindly provide me any way to do it, from where I can pull this information.

    Whether could I get this information on real time basis so as to achieve resource optimization.

     

    Thanks

    Ankur Gupta



  • 2.  Re: Monitoring of number of processes ITPAM is running.
    Best Answer

    Broadcom Employee
    Posted Jun 29, 2017 05:01 PM

    You can do this via a REST call.  In 4.3SP2, we now have the api interface where you can see REST calls at work.  It can be accessed via the same URL as the PAM GUI but instead of itpam, use api.  So if you go to http://servername:8080/itpam to get to PAM, try http://servername:8080/api.  (again, this API interface is only available in 4.3SP2 and above).

     

    Here is the doc on this:

    CA Process Automation Open REST APIs - CA Process Automation - 04.3.02 - CA Technologies Documentation 

     

    I used the GET runtimeinfo call and gave it the id for my orchestrator (which can be obtained from the NodeConfiguration.properties file located in the PAM install folder under server\c2o\.config).  This returned the following XML:

     

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

    <Response> <Code>200</Code>

    <Details xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="allRuntimeInfoBean">

    <Completed>0</Completed>

    <Failed>0</Failed>

    <Aborted>0</Aborted>

    <Queued>0</Queued>

    <Running>0</Running>

    <Suspended>0</Suspended>

    <Waiting>0</Waiting>

    <Blocked>0</Blocked>

    <Total>0</Total>

    </Details>

    <Message>Success</Message>

    </Response>



  • 3.  Re: Monitoring of number of processes ITPAM is running.

    Posted Jul 06, 2017 01:13 PM

    We use a SQL script to get the same info for our Monitoring team.

    SELECT *
    FROM C2ORuntimeObjects
    where (RunState = 'failed' or RunState = 'Blocked')
    and (Instance like'%Change%' or instance like '%catalog%' or instance like '%AMS%')
    and (ServiceID like 'WorkflowServices')

    SELECT *
    FROM C2ORuntimeObjects
    where RunState = 'Queued'
    and (Instance like'%Change%' or instance like '%catalog%' or instance like '%AMS%')



  • 4.  Re: Monitoring of number of processes ITPAM is running.

    Posted Jul 07, 2017 07:30 AM

    Hi Ankur,

     

    As part of our latest release PAM 4.3.2, we have provided a REST service which lists the number of processes running on a orchestrator along with their running status. Sample response looks as below

    API: http://<Server_name>:<port>/api/rest/v1/orchestrators/<Orch_Id>/runtimeinfo

     

     

    Thanks

    Vinay