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 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
- 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
- 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
- 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
- Load the Jacl support scripts, which include the exportToFile and importFile commands,
into your wsadmin command shell:
wsadmin> source
teamAdminUtils.jacl
- Import the MBean configuration settings from a previously
exported configuration. For example:
- On Windows:
- wsadmin> importFile C:/temp/cqwebserver_backups/MBean.bck
- On the UNIX system and Linux:
- wsadmin> importFile /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.