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:
- Verify that you have completed the following steps:
- Uninstalled the enterprise application associated with
the model version.
- Removed the IBM® Cognos® Business Intelligence cubes
for the model version.
- Deleted the schema for the model version.
- Open a command prompt, and change directories to Monitor_Profile_Home/bin.
- 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.