Importing business alerts

Using the ImportDAs script, you can import business alerts defined in a previously exported XML file to a monitor instance. The model version must have been created previously on the monitor instance.

Purpose

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

Location

product_dir\scripts.wbm\da\importDAs.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\importDAs.jy" "import_filename.xml"

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\importDAs.jy" "import_filename.xml" -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:

\bin> wsadmin -wsadmin_classpath "..\..\..\plugins\com.ibm.wbimonitor.lifecycle.spi.jar;..\..\..\plugins\com.ibm.wbimonitor.repository.jar" -lang jython -f "..\..\..\scripts.wbm\DA\importDAs.jy" "import_filename.xml"

where:
import_filename
is the name of the file being imported
The following example is for a stand-alone environment:
importDAs.jy "DA1.xml"
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/importDAs.jy" "import_filename.xml"

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/importDAs.jy" "import_filename.xml" -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_6.2.0.jar:../../../plugins/com.ibm.wbimonitor.repository_6.2.0.jar" -lang jython -f "../../../scripts.wbm/da/importDAs.jy" "/tmp/DAExport.xml" -conntype SOAP -host wbiaixp513 -port 8879