Automic Workload Automation

  • 1.  Server name that agent is running on

    Posted Aug 30, 2017 12:36 PM
    Is there a runtime variable or function that can retrieve the name of the server that an agent is running on?

    &$AGENT# gives me the name of the agent.  This name usually matches our server name, but not always.


  • 2.  Server name that agent is running on

    Posted Aug 30, 2017 01:22 PM
    Think we had this discussion one year ago... :-)

    https://community.automic.com/discussion/7036/agent-name-vs-server-name



  • 3.  Server name that agent is running on

    Posted Aug 30, 2017 02:03 PM
    That gave me sufficient information.  Thank you!

    This script command returns the IP address of the server that the agent is running on;

    :set &MyIPAddr# = get_var(UC_EX_IP_ADDR, &$agent#)


  • 4.  Server name that agent is running on

    Posted Aug 30, 2017 02:20 PM
    You re welcome :-)

    Just for the sake of completeness here is a list of all available agent variables:

    https://docs.automic.com/documentation/WEBHELP/English/AWA/11.2/AE/11.2/All%20Guides/help.htm#ucabkq.htm?Highlight=agent%20variables