Importing MBean configuration settings

You can restore previous MBean settings by using a saved configuration.

About this task

The following variables are used in path names:
ClearQuest-home
Directory where Rational® ClearQuest® is installed
CQWebWASprofileHome
Directory where your Rational ClearQuest Web server profile is installed

Procedure

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

    wsadmin> source teamAdminUtils.jacl

  5. Import the MBean configuration settings from a previously exported configuration. For example:
    Windows
    wsadmin> importFile C:/temp/cqwebserver_backups/MBean.bck
    UNIX Linux
    wsadmin> importFile /tmp/cqwebserver_backups/MBean.bck
    Important: When you run a Jacl script from the wsadmin command shell on Windows, you can use forward slashes "/" in a path specification that you pass to the script. Alternatively, if you choose to use backslashes "\", you must escape each backslash character with an extra backslash.