Importing MBean configuration settings
You can restore previous MBean settings by using a saved configuration.
About this task
- Compass-home
- Directory where HCL Compass is installed
- CQWebWASprofileHome
- Directory where your HCL Compass Web server profile is installed
Procedure
- In a command prompt window, set the default directory to
the location of the HCL Compass Web
server support scripts for the wsadmin command shell.
For example:
- cd "Compass-home\cqweb\scripts"
- cd $Compass-home/cqweb/scripts
- Set the WAS_BIN variable to the location
of the wsadmin tool by using the syntax appropriate for your
shell.For example:
- set WAS_BIN="CQWebWASprofileHome\bin"
- WAS_BIN=CQWebWASprofileHome/bin
- Start the wsadmin tool by specifying the HCL Compass Web
server profile name. The default profile name is cqwebprofile.
For example:
- %WAS_BIN%\wsadmin -profileName cqwebprofile
- $WAS_BIN/wsadmin.sh -profileName cqwebprofile
- Load the HCL Compass Web
server 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:
- wsadmin> importFile C:/temp/cqwebserver_backups/MBean.bck
- 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.