MonitorModelMigration.py 脚本

MonitorModelMigration.py 脚本是 Python 脚本,可以从源环境中截取监控模型应用程序,以便将其迁移到目标环境中。

先决条件

必须满足以下条件:
  • 在断开连接的情况下运行命令,即在不启动服务器的情况下运行。使用 -conntype none 选项。
  • 使用 WebSphere 命令行管理工具 (wsadmin) 来运行此命令。

位置

MonitorModelMigration.py 脚本位于 V8.5.6_monitor_root/scripts.wbm/migration/ModelMigration

迁移日志保存在 source_monitor_root/logs/migration/MonitorModelMigrationtimestamp_out.log

语法

参数

-wsadmin_classpath source_monitor_install/lib/wbminstall_log.jar
必需的参数,使必需的 WebSphere® Application Server 类可用。
-extract folder_for_extracted_monitor_models
必需的参数,能够截取用于识别监控模型应用程序所在目录的完整路径的应用程序。
要点: 对于 Windows,请使用正斜杠或两个反斜杠作为分隔符。例如,C:\\temp\\outputC:/temp/output
cluster_name
在源环境中,安装监控模型应用程序的集群的名称。必须指定 cluster_namenode_name 以及 server_name 参数。
node_name
其中的监控模型应用程序安装在源环境中的节点的名称。必须指定 node_nameserver_name 参数或 cluster_name 参数。
server_name
其中的监控模型应用程序安装在源环境中的服务器的名称。必须指定 node_nameserver_name 参数或 cluster_name 参数。

示例

For Linux operating systemFor UNIX operating system以下示例显示网络部署环境:
/opt/IBM/WebSphere/MonitorV7/profiles/Dmgr01/bin/wsadmin.sh -conntype none -wsadmin_classpath /opt/IBM/WebSphere/MonitorV7/lib/wbminstall_log.jar -f /home/MonitorModelMigration.py -extract /home/extractedModels monAppCluster
For Windows operating system以下示例显示网络部署环境:
C:\IBM\WebSphere\MonitorV7\profiles\Dmgr01\bin\wsadmin.bat -conntype none -wsadmin_classpath C:/IBM/WebSphere/MonitorV7/lib/wbminstall_log.jar -f C:/tmp/MonitorModelMigration.py -extract C:/tmp/extractedModels monAppCluster
For Linux operating systemFor UNIX operating system以下示例显示独立环境:
/opt/IBM/WebSphere/MonitorV7/profiles/WBMon01/bin/wsadmin.sh -conntype none -wsadmin_classpath /opt/IBM/WebSphere/MonitorV7/lib/wbminstall_log.jar -f /home/MonitorModelMigration.py -extract /home/extractedModels monNode01 server1
For Windows operating system以下示例显示独立环境:
C:\IBM\WebSphere\MonitorV7\profiles\WBMon01\bin\wsadmin.bat -conntype none -wsadmin_classpath C:/IBM/WebSphere/MonitorV7/lib/wbminstall_log.jar -f C:/tmp/MonitorModelMigration.py -extract C:/tmp/extractedModels monNode01 server1