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.