Importing MBean configuration settings

You can restore previous MBean settings by using a saved configuration. This is useful if you make MBean configuration changes that produce undesirable results and want to roll back to a known working configuration.

About this task

The following variable is 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. Import the MBean configuration settings from a previously exported configuration. 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> importFile C:/temp/CmServer_backups/MBean.bck
    On the UNIX system and Linux:
    wsadmin> importFile /tmp/CmServer_backups/MBean.bck

Feedback