Automic Workload Automation

  • 1.  Read agent attributes

    Posted Oct 03, 2017 09:42 AM
    Hello All,
    I am looking for a Automic script function to read the agent attributes For example: IP Address or Status.

    Even a SQL query works for me.

    Thanks in advance, Zafar


  • 2.  Read agent attributes



  • 3.  Read agent attributes

    Posted Oct 03, 2017 09:56 AM
    Hello Zafar,

    Built-in : you can use predefined variables, like &$AGENT# for instance.

    Script : SYS_HOST_ALIVE will allow you to know if a given agent is active or not.

    Via SQL : can be found in the OH and HOST tables. Try something like this :

    SELECT OH_Name, HOST_HTYP_SW, Host_TCPIPaddr, HOST_Active
    FROM OH, HOST
    WHERE OH_Idnr = HOST_OH_Idnr
    AND OH_Otype = 'HOST'
    AND OH_Name NOT LIKE '<%>'
    AND OH_DELETEFLAG = 0;

    Best regards,
    Antoine


  • 4.  Read agent attributes

    Posted Oct 03, 2017 10:10 AM
    Thanks, it works.
    One more question, how can we list all the Automic agents and with their IP's?

    Regards, Zafar 


  • 5.  Read agent attributes



  • 6.  Read agent attributes

    Posted Oct 03, 2017 10:23 AM
    Thanks Wolfgang and Antoine
    I am all set now.

    Zafar