导入 MBean 配置设置

您可以使用已保存的配置来恢复先前的 MBean 设置。

关于此任务

路径名中使用了以下变量:
ClearQuest-home
IBM Rational ClearQuest 的安装目录
CQWebWASprofileHome
ClearQuest Web 服务器概要文件的安装目录

过程

  1. 在命令提示符窗口中,将缺省目录设置为 wsadmin 命令 shell 的 ClearQuest Web 服务器支持脚本的位置。 例如:
    Windows
    cd "ClearQuest-home\cqweb\scripts"
    UNIX Linux
    cd $ClearQuest-home/cqweb/scripts
  2. 使用适合 shell 的语法,将 WAS_BIN 变量设置为 wsadmin 工具的位置。 例如:
    Windows
    set WAS_BIN="CQWebWASprofileHome\bin"
    UNIX Linux
    WAS_BIN=CQWebWASprofileHome/bin
  3. 通过指定 ClearQuest Web 服务器概要文件名称来启动 wsadmin 工具。缺省概要文件名称是 cqwebprofile 例如:
    Windows
    %WAS_BIN%\wsadmin -profileName cqwebprofile
    UNIX Linux
    $WAS_BIN/wsadmin.sh -profileName cqwebprofile
  4. 将 ClearQuest Web 服务器 Jacl 支持脚本(其中包含 exportToFileimportFile 命令)装入 wsadmin 命令 shell:

    wsadmin> source teamAdminUtils.jacl

  5. 从先前导出的配置导入 MBean 配置设置。 例如:
    Windows
    wsadmin> importFile C:/temp/cqwebserver_backups/MBean.bck
    UNIX Linux
    wsadmin> importFile /tmp/cqwebserver_backups/MBean.bck
    要点: 在 Windows 上从 wsadmin 命令 shell 运行 Jacl 脚本时,可以在要传递给该脚本的路径规范中使用正斜杠“/”。或者,如果您选择使用反斜杠“\”,那么必须使用额外的反斜杠对每个反斜杠字符进行转义。

反馈