DX Application Performance Management

  • 1.  APM 9.5.x Java Agent: how does it get the machine name

    Posted Aug 10, 2016 12:29 PM

    Hello,

    In regards to the Java agent or any other agent that attaches to the Enterprise Manager, how does the agent get the "Host Machine" name? Does the agent at startup on a server get the hostname from /etc/hosts, DNS, etc?

     

    Regards,

    Pat O'Connor

     



       
     
     
     
     
     
     
     
     
     
     
     







  • 2.  Re: APM 9.5.x Java Agent: how does it get the machine name
    Best Answer

    Broadcom Employee
    Posted Aug 10, 2016 12:55 PM

    The agent uses the Java getHostName() API.  EM does the same thing.



  • 3.  Re: APM 9.5.x Java Agent: how does it get the machine name

    Posted Aug 10, 2016 01:12 PM

    Hello,

    Interesting, so when the java agent starts on a server it uses that "Java getHostName() API" to discover the server host name, can you tell me on where to find this line of code?

     

    thanks for your input,

    Pat



  • 4.  Re: APM 9.5.x Java Agent: how does it get the machine name

    Broadcom Employee
    Posted Aug 10, 2016 01:16 PM

    Hi here is a link to the API.

     

    InetAddress (Java Platform SE 7 )



  • 5.  Re: APM 9.5.x Java Agent: how does it get the machine name

    Posted Aug 10, 2016 01:19 PM
      |   view attached

    Thank You very much for the help and information!

     

    Regards,

    Pat O’Connor

    Systems Performance Unit

    Department of Child Support Services

    (916) 464-7064



  • 6.  Re: APM 9.5.x Java Agent: how does it get the machine name

    Broadcom Employee
    Posted Aug 10, 2016 01:00 PM

    Hi Pat:

    Autonaming is discussed at length in Java Agent Naming - CA Application Performance Management - 10.3 - CA Technologies Documentation

     

    Do you have any followup questions or did you get the answers that you were seeking? Please let us know.

     

    Thanks.

    Hal German



  • 7.  Re: APM 9.5.x Java Agent: how does it get the machine name

    Broadcom Employee
    Posted Aug 10, 2016 01:03 PM

    9.6 (Closest I can find online but should be the same is ) CA APM Java Agent Implementation Guide



  • 8.  Re: APM 9.5.x Java Agent: how does it get the machine name

    Broadcom Employee
    Posted Aug 10, 2016 01:03 PM

    Actually, according to his screenshot, domain1 would fall under the autonaming convention.  qw32vtest01 is his hostname and the one he's asking on how we determine what it is.

     

    But still a good read on the autonaming though.



  • 9.  Re: APM 9.5.x Java Agent: how does it get the machine name

    Broadcom Employee
    Posted Aug 10, 2016 01:38 PM

    Thanks Pat. Marking as answered