Purging a monitor model version using wsadmin

If errors occur while uninstalling a monitor model, you can use wsadmin to purge a model version by running a Jython or Jacl script. The example in this topic uses Jython.

About this task

If you prefer to use the Purge function from the administrative console to complete the uninstallation, refer to the topic "Purging a monitor model version" using the related link below.

Procedure

To use wsadmin to purge a monitor model version using a script, complete the following steps:

  1. Verify that you have completed the following steps:
    1. Uninstalled the enterprise application associated with the model version.
    2. Removed the IBM® Cognos® Business Intelligence cubes for the model version.
    3. Deleted the schema for the model version.
  2. Open a command prompt, and change directories to Monitor_Profile_Home/bin.
  3. Enter the following command: wsadmin -lang jython -wsadmin_classpath WAS_home/plugins/com.ibm.wbimonitor.lifecycle.spi.jar -f path_to_purge_script <model_ID> <version_date>
    Note: Use forward slashes, not back slashes, for Windows.

Example

For a Jython script to use in purging a model version, see the purgeModelVersion.py script in the technote in Related reference.