Show TOC Start of Content Area

Background documentation Uninstallation of Summary Nodes, Object Nodes, and Monitors  Locate the document in its SAP Library structure

There are two ways of uninstalling a summary node, object node or monitor – by path and by owner. The corresponding two methods in the MonitorContext are:

·        public void uninstallMonitorsByPath(String path, boolean isRemovedFromCcmsPersistence);

·        public void uninstallMonitorsByOwner(String monitorOwner, boolean isRemovedFromCcmsPersistence);

The first method can be used to uninstall a summary node, object node or monitor by setting the path parameter with the exact path to the node in the monitoring tree. The second one can be used to uninstall all monitors belonging to an application by setting the monitorOwner parameter with the name of the application. Both require an additional parameter – isRemovedFromCcmsPersistence. As a result, there are two different ways to remove a node from the CCMS Connector:

·        Remove the node from the CCMS Connector, but keep some useful information (isRemovedFromCcmsPersistence = false)

·        Remove the node from the CCMS Connector and delete the corresponding CCMS node in the shared memory (isRemovedFromCcmsPersistence = true)

In most of the cases, the first mode must be used because the second one deletes the alerts and the history, which may be fatal for problem analysis (for example, post mortem analysis) or long term history.

The isRemovedFromCcmsPersistence parameter can be set to true in case of a temporary information of less importance or if an application explicitly demands a persistent deletion.

Example

Example 1 – uninstall by path:

monitorContext.uninstallMonitorsByPath("Root/Applications/VIP Clients - France", true);

 

Example 2 – uninstall by owner:

monitorContext.uninstallMonitorsByOwner("sap.com/BankApplication", true);

 

 

 

End of Content Area