Migrating business alerts
Using the MigrateDAs script, you can migrate one or more business alerts from a model version to a new model version. The new model version must have been created previously on the monitor instance.
Purpose
The MigrateDAs script migrates one or more business alerts from a model version to a new model version. In a network deployment environment, run the MigrateDAs script on the system where you deployed the monitor model moderator and logic modules.
Location
product_dir\scripts.wbm\da\migrateDAs.jyIn a network deployment environment, run the MigrateDAs script on the system where you deployed the monitor model moderator and logic modules.
Windows usage
- IBM® Business Monitor stand-alone environment:
profile_root\bin> wsadmin -wsadmin_classpath "..\..\..\plugins\com.ibm.wbimonitor.lifecycle.spi.jar;..\..\..\plugins\com.ibm.wbimonitor.repository.jar" -lang jython -f "..\..\..\scripts.wbm\DA\migrateDAs.jy" model_ID from_version_ID to_version_ID migrate_type [DA_list]
- IBM Business Monitor network deployment environment:
- Run the command on the application cluster, on the system where
you deployed the monitor model moderator and logic modules.
profile_root\bin> wsadmin -wsadmin_classpath "..\..\..\plugins\com.ibm.wbimonitor.lifecycle.spi.jar;..\..\..\plugins\com.ibm.wbimonitor.repository.jar" -lang jython -f "..\..\..\scripts.wbm\DA\migrateDAs.jy" model_ID from_version_ID to_version_ID migrate_type [DA_list] -conntype SOAP -host host_name -port port_number
where:- host_name is the deployment manager host name
- port_number is the deployment manager port number (SOAP_CONNECTOR_ADDRESS)
- For Rational® Application Developer development toolkit:
profile_root\bin> wsadmin -wsadmin_classpath "..\..\..\plugins\com.ibm.wbimonitor.lifecycle.spi.jar;..\..\..\plugins\com.ibm.wbimonitor.repository.jar" -lang jython -f "..\..\..\scripts.wbm\DA\migrateDAs.jy" model_ID from_version_ID to_version_ID migrate_type [DA_list]
where:- migrate_type is one of: [ALL, SPECIFIED]
- DA_list is a list of DynamicAlertIds separated by commas
- DA_list is only applicable when migrate_type=SPECIFIED
migrateDAs.jy SampleModel 2008-08-26T10:01:16 2008-08-26T10:01:16Z ALL
Linux and UNIX usage
- IBM Business Monitor stand-alone environment:
profile_root/bin> wsadmin -wsadmin_classpath "../../../plugins\com.ibm.wbimonitor.lifecycle.spi.jar:../../../plugins/com.ibm.wbimonitor.repository.jar" -lang jython -f "../../../scripts.wbm/DA/migrateDAs.jy" model_ID from_version_ID to_version_ID migrate_type [DA_list]
- IBM Business Monitor network deployment environment:
- Run the command on the application cluster, on the system where
you deployed the monitor model moderator and logic modules.
profile_root/bin> wsadmin -wsadmin_classpath "../../../plugins\com.ibm.wbimonitor.lifecycle.spi.jar:../../../plugins/com.ibm.wbimonitor.repository.jar" -lang jython -f "../../../scripts.wbm/DA/migrateDAs.jy" model_ID from_version_ID to_version_ID migrate_type [DA_list] -conntype SOAP -host host_name -port port_number
where:- host_name is the deployment manager host name
- port_number is the deployment manager port number (SOAP_CONNECTOR_ADDRESS)