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.
Can't find a REST API that would make this update.
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,