Steps to update WebSwing console port
search cancel

Steps to update WebSwing console port

book

Article ID: 452457

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

This article contains the steps to update the listener port for Smarts WebSwing console. 
As per the documentation : Browser-Based Smarts Console via Webswing, the default port on which webswing is configured is 9443.

Environment

All Supported Smarts releases (with Smarts WebSwing support)

Resolution

Follow the below steps to update the configuration pointers to default port 9443:

Note: Backup existing copies of the files below to retain the references before changing the port information:

  • Update the <Console Dir>/smarts/tomcat/webswing-console/conf/server.xml file to the required port at #PORT#:
    <Connector port="#PORT#"
               protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150"
               SSLEnabled="true"
               maxParameterCount="1000"
               scheme="https"
               secure="true"
               keystoreFile="conf/ws.keystore"
               keystorePass="changeit"
               clientAuth="false"
               sslEnabledProtocols="TLSv1.2"
               >
    </Connector>
  • Update the <Console Dir>/smarts/tomcat/webswing-console/webswing/webswing-admin.properties file as follows:
    Update the parameter:
# public URL on which applications are accessible on public internet
webswing.server.publicUrl = https://#.#.#.#:#PORT#/smarts
  • Update the <Console Dir>/smarts/tomcat/webswing-console/webswing/webswing.properties file as follows:
    Update the parameter:
# websocket URL of this server, if deployed outside embedded Jetty
webswing.server.websocketUrl = wss://#.#.#.#:#PORT#/smarts
  • Update the <Console Dir>/smarts/tomcat/webswing-console/webswing/webswing-server.config file as follows:
    Update the parameter: 
    "adminConsoleUrl": "https://#.#.#.#:#PORT#/smarts/admin"
  • Update the  <Console Dir>/smarts/tomcat/webswing-console/webswing/webswing-sessionpool.properties file as follows:
    Update the parameter:
# use this for webswing.websocketUrlLoader.type = (propertyFile|propertyFile_noReload)
# comma-separated list of websocket URLs to webswing cluster servers
webswing.server.websocketUrl = wss://#.#.#.#:#PORT#/smarts
  • Restart the Smarts WebSwing service:
    • sm_service stop <Smarts-WebSwing> 
    • sm_service start <Smarts-WebSwing>
  • Access the Smarts WebSwing service at: https://#.#.#.#:#PORT#/smarts/webconsole