You can use the MigrateKpis script to migrate one or more key performance indicators (KPI) from a model version to a new model version. Note that the new model version must have been previously created on the monitor instance.
The MigrateKpis script migrates one or more KPIs from a model version to a new model version. In a network deployment environment, run the MigrateKPIs script on the system where you deployed the monitor model moderator and logic modules.
| Parameter | Description | Comments |
|---|---|---|
| migrate_type | One of: [ALL, MODELED, RUNTIME, SPECIFIED]. | |
| KPI_list | A list of kpiIds separated by commas. | applicable only when export_type =SPECIFIED |
| host_name | The name of the host where IBM® Business Monitor is installed (this may be localhost). | |
| port_number | The SOAP connector port of the WebSphere® Application Server server. Using the WebSphere Application Server administrative console , you can find this information by clicking |
profile_root\bin> wsadmin -wsadmin_classpath "..\..\..\plugins\com.ibm.wbimonitor.lifecycle.spi.jar;..\..\..\plugins\com.ibm.wbimonitor.repository.jar" -lang jython -f "..\..\..\scripts.wbm\kpi\migrateKpis.jy" model_ID from_version_ID to_version_ID migrate_type [KPI_list] -conntype SOAP -host host_name -port port_number
profile_root\bin> wsadmin -wsadmin_classpath "..\..\..\plugins\com.ibm.wbimonitor.lifecycle.spi.jar;..\..\..\plugins\com.ibm.wbimonitor.repository.jar" -lang jython -f "..\..\..\scripts.wbm\kpi\migrateKpis.jy" model_ID from_version_ID to_version_ID migrate_type [KPI_list] -conntype SOAP -host host_name -port port_number
profile_root\bin> wsadmin -wsadmin_classpath "..\..\..\plugins\com.ibm.wbimonitor.lifecycle.spi.jar;..\..\..\plugins\com.ibm.wbimonitor.repository.jar" -lang jython -f "..\..\..\scripts.wbm\kpi\migrateKpis.jy" model_ID from_version_ID to_version_ID migrate_type [KPI_list] -conntype SOAP -host host_name -port port_number
migrateKpis.jy Mymodel 2007-12-31T23:59:59 SPECIFIED "Kpi1,Kpi2,Kpi3" -conntype SOAP -host localhost -port
8880
profile_root/bin> ./wsadmin.sh -wsadmin_classpath "../../../plugins/com.ibm.wbimonitor.lifecycle.spi.jar:../../../plugins/com.ibm.wbimonitor.repository.jar" -lang jython -f "../../../scripts.wbm/kpi/migrateKpis.jy" model_ID from_version_ID to_version_ID migrate_type [KPI_list] -conntype SOAP -host host_name -port port_number

profile_root/bin> ./wsadmin.sh -wsadmin_classpath "../../../plugins/com.ibm.wbimonitor.lifecycle.spi.jar:../../../plugins/com.ibm.wbimonitor.repository.jar" -lang jython -f "../../../scripts.wbm/kpi/migrateKpis.jy" model_ID from_version_ID to_version_ID migrate_type [KPI_list] -conntype SOAP -host host_name -port port_number
migrateKpis.jy Mymodel 2007-08-31T23:59:59 2007-12-31T23:59:59 SPECIFIED "Kpi1,Kpi2,Kpi3" -conntype SOAP -host localhost -port 8880