Exporting MBean configuration settings

You can export the MBean configuration before modifying the Rational ClearQuest Web server MBean attributes. This is a useful practice in case you later make MBean configuration changes that produce undesirable results and you want to roll back to a known working configuration.

About this task

The following variables are used in path names in this topic:
ClearQuest-home
Directory where IBM Rational ClearQuest is installed
cqweb_WAS_profile_home
Directory where your ClearQuest Web server profile is installed

Procedure

  1. In a command prompt window, set the default directory to the location of the ClearQuest Web server support scripts for the wsadmin utility. For example:
    On Windows:
    cd "ClearQuest-home\cqweb\scripts"
    On the UNIX system and Linux:
    cd ClearQuest-home/cqweb/scripts
  2. Set the WAS_BIN variable to the location of the wsadmin utility by using the syntax appropriate for your shell. For example:
    On Windows:
    set WAS_BIN="cqweb_WAS_profile_home\bin"
    On the UNIX system and Linux:
    WAS_BIN=cqweb_WAS_profile_home/bin
  3. Start the wsadmin utility by specifying the ClearQuest Web server profile name. The default profile name is cqwebprofile. For example:
    On Windows:
    %WAS_BIN%\wsadmin -profileName cqwebprofile
    On the UNIX system and Linux:
    $WAS_BIN/wsadmin.sh -profileName cqwebprofile
  4. Load the Jacl support scripts, which include the exportToFile and importFile commands, into your wsadmin command shell:

    wsadmin> source teamAdminUtils.jacl

  5. Export the MBean configuration to a file that is outside the ClearQuest Web server installation directory. For example:
    On Windows:
    wsadmin> exportToFile C:/temp/cqwebserver_backups/MBean.bck
    On the UNIX system and Linux:
    wsadmin> exportToFile /tmp/cqwebserver_backups/MBean.bck
    Attention: When you run a Jacl script from the wsadmin command shell on Windows, you can use forward slashes '/' in the path specification that you pass to the script. Alternatively, if you choose to use backslashes '\', you must escape each backslash character with an additional backslash.

    You can specify the same path specification and file name each time you run the exportToFile command. The exportToFile command detects when the file name already exists in the directory and creates a new version by appending the date and time to the file name.


Feedback