Remote Management Installation For JDK1.5 and above

Remote Management Installation For JDK1.5 and above

book

Article ID: KB0092660

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Resolution:
Creation of the properties file

Create a file called management.properties and save it in /opt/datasynapse/remoteManagement

    * No Authentication:
      com.sun.management.jmxremote=true
      com.sun.management.jmxremote.port=
      com.sun.management.jmxremote.ssl=false
      com.sun.management.jmxremote.authenticate=false
    * With Authentication:
      com.sun.management.jmxremote=true
      com.sun.management.jmxremote.port=
      com.sun.management.jmxremote.ssl=false
      com.sun.management.jmxremote.authenticate=true
      com.sun.management.jmxremote.password.file=/opt/datasynapse/remoteManagement/jmxremote.password
      com.sun.management.jmxremote.access.file=/opt/datasynapse/remoteManagement/jmxremote.access

Note: If you are using windows, the password.file and access.file properties should be enter as C:/datasynapse/remoteManagement/management.properties
Update to the Manager Start-up Script

    * Windows
          o Batch file:
            go to [Manager Base Directory]
            Backup the server.bat file.
            Open the server.bat with worpad or textpad
            after the line set DEFAULT_SERVICE_NAME=DataSynapse GridServer Manager
            Add the following lines:
            ::Set Properties file for the JMX Remote console monitoring for JDK1.5 and above
            set JDK_CONSOLE=-J-Dcom.sun.management.config.file=C:\datasynapse\remoteManagement\management.properties Edit the line call httpd %RESIN_CONF_CMD% %CMD1% %CMD2% %CMD3% .... by adding %JDK_CONSOLE% right before -J-Duser.region=US
            Save server.bat file.
          o Service:
            Go to Menu Start -> Run -> type regedit
            Backup your Registry.
            Navigate to the key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DataSynapse GridServer Manager
            Modify String Value ImagePath as follows:
            Add "-J-Dcom.sun.management.config.file=C:\datasynapse\remoteManagement\management.properties" before "-J-Duser.region=US" Close the Registry.
    * Unix
      Vi your server.sh file located at .
      Add the following lines before # End of variable overrides...:
      # Set Properties file for the JMX Remote console monitoring for JDK1.5 and above
      JDK_CONSOLE=-J-Dcom.sun.management.config.file=/opt/datasynapse/remoteManagement/management.properties
      Go to line $CURRDIR/bin/httpd.sh $PIDOPTS $@ ${SERVER_SWITCH} -J-Xmx${MAX_HEAP} -J-Dds.baseDir=$DS_BASEDIR -J-Duser.region=US .... and add $JDK_CONSOLE before -J-Duser.region=US Save the server.sh

Creation of the Password and Access file

Go to the directory /opt/datasynapse/remoteManagement.

    * Access File
      Open your text editor (vi or notepad).
      Type monitor readonly
      control readwrite
      Save as jmxremote.access
    * Password File
      Open your text editor (vi or notepad).
      Type monitor
      control
      Save as jmxremote.password
      Note: Ensure that only the owner has read and write permissions on this file, since it contains the passwords in clear text. For security reasons, the system checks that the file is only readable or writeable by the owner and exits with an error if not. Thus in a multi-user environment, store the password file in private location such as your home directory.
      Tips: On Solaris and Linux systems, you can set the file permissions for the password file by running:
      chmod 600 jmxremote.password
      On Windows, refer to the following link "How to Secure Password File" at http://download.oracle.com/javase/1.5.0/docs/guide/management/security-windows.html.

Issue/Introduction

Remote Management Installation For JDK1.5 and above