Exporting business alerts

Using the ExportDAs script, you can export one or more business alerts to an XML file so that the XML file can be imported on another monitor instance.

Purpose

The ExportDAs script exports one or more business alerts from a model version to a new model version. In a network deployment environment, run the ExportDAs script on the system where you deployed the monitor model moderator and logic modules.

Location

product_dir\scripts.wbm\da\exportDAs.jy
Windows

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\exportDAs.jy" "export_filename.xml" model_ID version_ID export_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\exportDAs.jy" "export_filename.xml" model_ID version_ID export_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)
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\exportDAs.jy" "export_filename.xml" model_ID version_ID export_type [DA_list]

where:

  • export_type is one of: [ALL, SPECIFIED]
  • DA_list is a list of DynamicAlertIds separated by commas
  • DA_list is only applicable when export_type=SPECIFIED
The following example is for a stand-alone environment:
exportDAs.jy "DA1.xml" SampleModel 2008-08-26T10:01:16Z ALL 
Linux Unix

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/exportDAs.jy" "export_filename.xml" model_ID version_ID export_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/exportDAs.jy" "export_filename.xml" model_IDversion_IDexport_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)
The following example is for a network deployment environment:
root@wbiaixp517 /usr/IBM/WebSphere/AppServer/profiles/Custom01/bin]#./wsadmin.sh -wsadmin_classpath "../../../plugins/com.ibm.wbimonitor.lifecycle.spi.jar:../../../plugins/com.ibm.wbimonitor.repository.jar" -lang jython -f "../../../scripts.wbm/da/exportDAs.jy" "/tmp/DAExport.xml" model_ID version_ID ALL -conntype SOAP -host wbiaixp513 -port 8879