Changing ports
The PowerHA SystemMirror GUI uses ports to facilitate remote communication. The GUI server uses port 8080 to allow remote browsers to connect to it. The GUI agent uses port 8081 to allow the server to communicate with it. If these ports are not compatible with your firewall configuration, they might be changed.
- GUI Server: /usr/es/sbin/cluster/ui/server/configuration-server.json
- GUI Agent: /usr/es/sbin/cluster/ui/agent/configuration-agent.json
The configuration files of the PowerHA SystemMirror GUI server and the PowerHA SystemMirror GUI agent can be manually edited to change the default ports. An example port number section of the GUI server configuration file follows:
"port": 8080, // Server port
"agentPort": 8081, // Port of the agent
To change the port number of the PowerHA SystemMirror server, you must change the port setting. To change the port number of the PowerHA SystemMirror agent, you must change the agentPort setting. If you change a port setting in the server configuration file, you must to update the agent configuration file on every node in each cluster that is being managed by that server. The current, remote GUI agents listen on the original port number. Similarly, if you change the port number of the GUI server, the GUI agents are not aware of the change and the GUI agents try to connect on the old port number. Therefore, you must make similar changes in every agent configuration file.
"serverURI": "https://172.19.67.11:8080/", // Smui-App URI
"port": 8081, // Server port
- Before you modify the configuration files, ensure that you back up the files.
- All non-numeric values in the configuration file must be enclosed in double
quotation marks ( " ), except for the Boolean values,
true
andfalse
.
- In the configuration-agent.json file, change the port setting
in the range 8080 - 1234 and then restart the server by using the following command:
GUI Server: stopsrc -cs phauiserver; sleep 11; startsrc -s phauiserver
- On every node that is running a GUI agent, change the
serverURI
in the configuration-agent.json file from "serverURI": "https://172.19.67.11:8080/", to "serverURI": "https://172.19.67.11:1234/", and then restart the GUI agent.When these files are updated, both the GUI server and the GUI agent must be restarted for the new configuration changes to take effect. To restart the GUI agent, run the following command:stopsrc -cs phauiagent; sleep 11; startsrc -s phauiagent