Release Automation

Expand all | Collapse all

JMX Management Console on agents

  • 1.  JMX Management Console on agents

    Posted Nov 29, 2016 11:25 AM

    Hi, I need to know the cases where JMX Management Console can be used in agents.

     

    Is there a way to disable it during silent installation? 

    On running agents, how can I disable it?

     

    Thanks.



  • 2.  Re: JMX Management Console on agents

    Posted Nov 29, 2016 11:32 AM

    Not sure about silent install but for disabling the jmx you can try set this value in conf/nolio.jmx.properties:

    jmx.web.console.enabled=false  (need to restart the service for new setting take effect) 



  • 3.  Re: JMX Management Console on agents

    Posted Nov 29, 2016 12:26 PM

    Thanks Jacky, do you know in which cases this configuration should be enabled? (Ex:File distribution, action execution,etc)

     

    Thanks.



  • 4.  Re: JMX Management Console on agents

    Posted Nov 29, 2016 12:34 PM

    JMX ui used  mainly for debug purpose



  • 5.  Re: JMX Management Console on agents

    Posted Nov 29, 2016 01:17 PM

    Jacky: In the following post I found this:

     

    Nolio Official KB: How do I setup Silent install of Agents? 

     

    #change hidden port (JMX port) to true and add number different then 8282
    #only required in case you have multiple agents on same server or port is in use already
    nolio.hiddenport$Boolean=false
    port.hidden=

     

    This applies to 6.2 agents?

     

    Thanks.



  • 6.  Re: JMX Management Console on agents

    Posted Nov 30, 2016 02:52 AM

    I believe it also relevant to V6.2 agents as well.



  • 7.  Re: JMX Management Console on agents

    Posted Nov 30, 2016 03:57 PM

    Jacky: I tested the nolio hidden port configuration on a windows server,  but it's not working. Should be useful to know every parameter meaning for a silent installation.

     

    nolio.hiddenport$Boolean=false
    port.hidden=

     

     



  • 8.  Re: JMX Management Console on agents

    Broadcom Employee
    Posted Dec 07, 2016 04:14 PM

    Jacky_Mahadab - I'm not familiar with hidden port configuration, but might you know the answer to Julio's question here regarding setting the above parameters?



  • 9.  Re: JMX Management Console on agents

    Posted Dec 08, 2016 05:13 AM

    From what I know you can't disable the JMX port in silent install , those settings will allow you modify jmx port number 



  • 10.  Re: JMX Management Console on agents

    Posted Dec 27, 2016 12:23 PM

    Jacky: To disable the JMX I found this option on 6.2 agents

     

    DeployerJmxEnabled=false

     

    This is the same as jmx.web.console.enabled=false?

     

    Thanks

     



  • 11.  Re: JMX Management Console on agents

    Posted Dec 28, 2016 12:56 AM

    I think DeployerJmxEnabled refers to agent jmx settings while the jmx.web.console.enabled refers to NAC/NES jmx settings 



  • 12.  Re: JMX Management Console on agents

    Posted Jan 04, 2017 03:51 PM

    Jacky:In order to disable port 20203 on NAC and Execution servers, I tried to  set jmx.web.console.enabled=false in %InstallDIR%/NolioAgent/conf/nolio.jmx.properties, restarted the Execution servers and agent, but the port is still up.

     

    lsof -i:20203
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    java 11966 x000935 244u IPv6 77845666 0t0 TCP *:20203 (LISTEN)
     

    What should I need to configure?



  • 13.  Re: JMX Management Console on agents

    Posted Jan 04, 2017 06:13 PM

    Hi Julio,

     

    Could you keep the setting you have (jmx.web.console.enabled=false), and then set the port to 0:

     

    jmx.web.console.port=0

     

    Restart the agent and the port should no longer be exposed, let me know if this helps.

     

    Jeremy



  • 14.  Re: JMX Management Console on agents

    Posted Jan 04, 2017 06:19 PM

    Julio,

     

    My apologies, I forgot the format is a bit different for the agent, so conf/nolio.jmx.properties should contain the following:

     

    DeployerJmxPort=0
    DeployerJmxEnabled=false



  • 15.  Re: JMX Management Console on agents
    Best Answer

    Posted Jan 04, 2017 06:52 PM

    Just to elaborate a bit, to disable the port entirely on a NAC/management server 20203/tcp, you would need to edit:

     

    %installdir%\webapps\datamanagement\WEB-INF\distributed.properties

     

    Make sure the following 2 lines are changed to reflect:

     

    jmx.web.console.enabled=false
    jmx.web.console.port=0

     

    Save, restart NAC, port 20203 should no longer be exposed or accessible.

     

    The same applies to a standalone execution server, you would just need to instead make the same changes above to:

     

    %installdir%\webapps\execution\WEB-INF\distributed.properties

     

    Then save, restart NES.

     

     

    As for the agent(s) w/JMX exposed on port 8282, as I mentioned previously simply edit:

     

    %agentdir%\conf\nolio.jmx.properties

     

    with these 2 lines updated:

     

    DeployerJmxPort=0
    DeployerJmxEnabled=false

     

     

    Let me know if this helps, thanks.

     

    Jeremy



  • 16.  Re: JMX Management Console on agents

    Posted Jan 05, 2017 08:49 AM

    nelje05, Jacky_Mahadab:  Thanks! your help is much appreciated.

    Jeremy: Do you know if it's possible to disable this port during agent installation?

     

    thanks.