Changing the port on Solaris 10 Web Console

If enabled, the Solaris Management Console (SMC) runs a secure web server on port 6789 and this port setting is well documented in many Sun documents as well as several online forums. However, what is not so well documented is how to change this port setting.

Several Sun documents suggest that a simple change to the /etc/opt/webconsole/server.xml file (followed by a restart of the SMC web server) will do the trick but I have found this not to be the case. Each time I restarted the web server (after changing this file), the port on which the web server ran seemed to reverted back to the original setting of 6789. A comment at the top of the server.xml file saying, “DO NOT EDIT THIS FILE” also seems to suggest that this is not the correct file.

Instead (after a lot of searching), I found what I believe to be the correct file – /usr/lib/webconsole/.runtimerc and here is how I eventually changed the port on which the SMC web server runs:

# vi /usr/lib/webconsole/.runtimerc
# /usr/sbin/smcwebserver restart

You should be able to verify the new port is in use using the netstat -an command.


One thought on “Changing the port on Solaris 10 Web Console”

  1. Source:
    http://docs.sun.com/app/docs/doc/817-1985/gdhgt?l=en&a=view

    How to Enable Remote Access to the Oracle Java Web Console

    1.

    Become superuser or assume an equivalent role on the system where the console is running.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
    2.

    Set a property to allow the console server to respond to network requests and restart the console server.

    # svccfg -s svc:/system/webconsole setprop options/tcp_listen = true

    # smcwebserver restart

Leave a Reply