MonitorModelMigration.py script
The MonitorModelMigration.py script is a Python script that extracts monitor model applications from the source environment so that you can migrate them to the target environment.
Prerequisites
The following conditions must
be met:
- Run the command in disconnected mode, that is, with the server stopped. Use the -conntype none option.
- Use the WebSphere command-line administration tool (wsadmin) to run the command.
Location
The MonitorModelMigration.py script is in V8.5.5_monitor_root/scripts.wbm/migration/ModelMigration
The migration logs are saved in source_monitor_root/logs/migration/MonitorModelMigrationtimestamp_out.log
Syntax
- If your source is a network deployment environment, run the following
command in the source environment:
deployment_manager_profile_root/bin/wsadmin -conntype none -wsadmin_classpath source_monitor_install/lib/wbminstall_log.jar -f MonitorModelMigration.py -extract folder_for_extracted_monitor_models cluster_name - If your source is a stand-alone environment, run the following
command in the source environment:
stand-alone_profile_root/bin/wsadmin -conntype none -wsadmin_classpath source_monitor_install/lib/wbminstall_log.jar -f MonitorModelMigration.py -extract folder_for_extracted_monitor_models node_name server_name
Parameters
- -wsadmin_classpath source_monitor_install/lib/wbminstall_log.jar
- A required parameter to make required WebSphere® Application Server classes available.
- -extract folder_for_extracted_monitor_models
- A required parameter to extract applications that identifies the
full path to the directory where the monitor model applications are
placed.Important: For Windows, use a forward slash or double backslash as a separator. For example, C:\\temp\\output or C:/temp/output.
- cluster_name
- The name of the cluster where the monitor model applications are installed in the source environment. You must specify either the cluster_name or the node_name and server_name parameters.
- node_name
- The name of the node where the monitor model applications are installed in the source environment. You must specify either the node_name and server_name parameter or the cluster_name parameter.
- server_name
- The name of the server where the monitor model applications are installed in the source environment. You must specify either the node_name and server_name parameter or the cluster_name parameter.
Examples

The following
example shows a network deployment environment:/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
The following example shows a network deployment environment: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

The following example shows a stand-alone environment:/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
The following example shows a stand-alone environment: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