Release Automation

Expand all | Collapse all

Programmatic way of updating supernode in nimi_config on execution server

  • 1.  Programmatic way of updating supernode in nimi_config on execution server

    Posted 08-09-2018 02:48 PM

    Is there a way to set the value of supernode in nimi_config.xml on an execution server programmatically?

     

    You can set this using the ASAP UI. In the Agent Management screen, click on an execution server and then click on Edit the selected server icon at the top. The window that is launched then shows a Connected Execution Servers section at the bottom which allows you to check the execution server : port that you want. After hitting save this will update the nimi_config.xml on the execution server being edited, putting these values into <supernode> under /config/nimi/keepalive/client/supernodes/ element in the xml file.

     

    Tried using the JMX command which allows you to update a value in nimi_config.xml on an agent but this fails when using a node id of an execution server as the agentsList parameter, property parameter as /config/nimi/keepalive/client/supernodes/supernode/text() and value parameter as <exec_server_hostname>:6600.

    JMX command is updateAgentsProperties under objectname=noliocenter, type=info.

    http://<NAC_hostname>:20203/mbean?objectname=noliocenter%3Atype%3Dinfo

    http://<NAC_hostname>::20203/invoke?operation=updateAgentsProperties&objectname=noliocenter%3Atype%3Dinfo&value0=<exec_server_nodeid>&type0=java.lang.String&value1=%2Fconfig%2Fnimi%2Fkeepalive%2Fclient%2Fsupernodes%2Fsupernode%2Ftext%28%29&type1=java.lang.String&value2=<exec_server_hostname>%3A6600&type2=java.lang.String

     

    Can't find a REST API that would make this update.



  • 2.  Re: Programmatic way of updating supernode in nimi_config on execution server

    Posted 08-13-2018 03:47 AM

    Hi Luke,

     

    I believe the JMX function can update Agent property only. Execution Node ID is configured in nimi_config.xml as Server property.

     

    If you installed execution server and agent on one box, you can see both xml files.

    Server side: <RA_HOME>/conf/nimi_config.xml

    Agent side:  <RA_HOME>/NolioAgent/conf/nimi_config.xml

     

    At least, I don't know the way to update server properties using commands or APIs. So, I recommend to raise an idea in this community, if you need,

     

    Thanks

    Yas