Automic Community

Expand all | Collapse all

List Agent name using JAVA API

Jump to Best Answer
  • 1.  List Agent name using JAVA API

    Posted 09-30-2019 03:55 AM

    I would like to list all agent details (Name, version, Host type .etc) using JAVA API, what is the best JAVA API class and methods for the search.
    I tried below code , but it always returns 0.

    print "No of agent found:", search.size()

    Enter object name to search:*
    Login Successfull = True
    No of agent found: 0

    Dominic I

  • 2.  RE: List Agent name using JAVA API

    Posted 10-25-2019 02:00 AM
    Hi Dominic,

    It looks like your question refers to Automic Workload Automation and the Application Interface (JAVA API). Is that right?

    If yes: This community covers the following products:
    • Automic Applications Manager
    • Automic Dollar Universe
    • Automic Service Orchestration
    • Automic Sysload
    For questions regarding Automic Workload Automation you should rather post to the community "Automic Workload Automation". There, it's more likely that someone can answer your question.

    Kind regards

    Automation Evangelist
    Fiducia & GAD IT AG
    Mitglied des deutschsprachigen Automic-Anwendervereins FOKUS e.V.
    Member of the German speaking Automic user association FOKUS e.V.

  • 3.  RE: List Agent name using JAVA API
    Best Answer

    Posted 11-01-2019 08:32 AM
    ​Hi Dominic,

    I think the problem is that the Host Objekts are in Mandant 0 you can only search for them there. Even in the AWI or the Java Client, you'll only find Hosts in Mandant 0.
    The class AgentList should give you an iterator of all Host for the Client, though.