Monday, 27 May 2019

SMA remote connection on Websphere and Tomcat

SMA remote connection on Websphere.

  1. Enable JSR160RMIConnector
    • Servers > Server Types > WebSphere Application Servers.
    • Click on your server (default is server1) and select the Configuration tab.
    • Scroll down to the Server Infrastructure section and expand Administration and select Administration Services
    • Enable JSR160 RMI JMX Connector. Select JMX Connectors, then check JSR160RMIConnector and click Enable. When prompted, select Save to Master Configuration:


    Verify the IIOP Port Number
  • Click on your server (default is server1) and select the Configuration tab.
  • Click ports


  • Restart the websphere server.

SMA configuration:
1. Enter PRPC url details
2. Select Remote connection- SMA is Stand alone
3. HostName: only hostname/ip address.
4. Port: Enter Soap Connetcor port address.


If connecting over https, the following SSL certificates settings has to be done. 

RESOLUTION

Make the following change to the operating environment:
  1. Log into the administrative console.
  2. Expand Security and click SSL certificate and key management. Under Configuration settings, click Manage endpoint security configurations.
  3. Select the appropriate outbound configuration to get to the (cell) management scope.
  4. Under Related Items, click Key stores and certificates and click the CellDefaultTrustStore key store.
  5. Under Additional Properties, click Signer certificates and Retrieve From Port.
  6. In the Host field, enter remote server IP in the host name field, enter SOAP PORT in the Port field, and remote server IP _cert in the Alias field.
  7. Click Retrieve Signer Information.
  8. Verify that the certificate information is for a certificate that you can trust.
  9. Click Apply and Save.



SMA remote connection on Tomcat.
Set the following entries in setenv.bat of tomcat's bin folder
set CATALINA_OPTS=-Dcom.sun.management.jmxremote = true
set CATALINA_OPTS=-Dcom.sun.management.jmxremote
set CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote.port=8686
set CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false
set CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote.ssl=false

In SMA configuration:
1. Enter PRPC url details
2. Select Remote connection- SMA is Stand alone
3. service:jmx:rmi:///jndi/rmi://10.225.70.235:8686/jmxrmi