Exporting MBean configuration settings

You can export the MBean configuration before modifying the Change Management Server (CM Server) MBean attributes.

About this task

The following variables are used in path names in this topic:
RATIONAL_COMMON
Directory where Rational common files are installed

Procedure

  1. In a command prompt window, set the default directory to the location of the CM Server support scripts for the wsadmin utility. For example:
    On Windows:
    cd "%RATIONAL_COMMON%\CM\scripts"
    On the UNIX system and Linux:
    cd $RATIONAL_COMMON/CM/scripts
  2. Set the path to the wsadmin utility by using the syntax appropriate for your shell. For example:
    On Windows:
    set WAS_BIN="%RATIONAL_COMMON%\eWAS\bin"
    On the UNIX system and Linux:
    WAS_BIN=$RATIONAL_COMMON/eWAS/bin
  3. Start the wsadmin utility by specifying the CM Server profile name. By default, the CM Server profile name is cmprofile. For example:
    On Windows:
    %WAS_BIN%\wsadmin -profileName cmprofile
    On the UNIX system and Linux:
    $WAS_BIN/wsadmin.sh -profileName cmprofile
  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 CM Server installation directory structure. For example:
    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 JACL script. Alternatively, if you choose to use backslashes '\', you must escape each backslash character with an additional backslash.
    On Windows:
    wsadmin> exportToFile C:/temp/CmServer_backups/MBean.bck
    On the UNIX system and Linux:
    wsadmin> exportToFile /tmp/CmServer_backups/MBean.bck

    You can specify the same path name 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