IBM Tivoli Composite Application Manager for Application Diagnostics, Version 7.1.0.1
Disable and enable the data collector without losing the configuration settings
The problem: You may want to temporarily disable the data collectors without losing the configuration settings.
The solution: You can use the following scripts to do this. The scripts enabledc.py and disabledc.py programmatically enable and disable selected ITCAM data collectors for a given node of the WAS Base or Network Deployment environment. The Scripts are invoked as follows:
- For BASE environment :
- Stop the server.
- Disable data collector:
WAS_home/bin/wsadmin.sh -conntype NONE -lang jython -f DC_home/config_dc/disabledc.py [-ms] <node> [server1] [server2] ... [server n]- Enable data collector:
WAS_home/bin/wsadmin.sh -conntype NONE -lang jython -f DC_home/config_dc/enabledc.py [-tema] <node> [server1] [server2] ... [server n]
- For Network Deployment environment :
- Start the deployment manager.
- Disable data collector:
WAS_home/bin/wsadmin.sh -conntype SOAP -host <dmgr_host_name> -port <dmgr_port_number> -lang jython -f DC_home/config_dc/disabledc.py [-ms] [-restart] <node> [server1] [server2] ... [server n]- Enable data collector:
WAS_home/bin/wsadmin.sh -conntype SOAP -host <dmgr_host_name> -port <dmgr_port_number> -lang jython -f DC_home/config_dc/enabledc.py [-tema] [-restart] <node> [server1] [server2] ... [server n]- Specify optional argument -restart to restart the modified servers, -restart is only applicable to Network Deployment.
For Windows, use wsadmin.bat instead of wsadmin.sh If the argument -tema is specified with the enabledc script, it will only enable data collection for the ITCAM Tivoli Enterprise Monitoring Agent; data collection for the ITCAM Managing Server will still be disabled. If the servers list is not specified, the scripts will search for all servers in the node. The disabledc script will store backup data inside the server JVM System Properties. The WebSphere Server instance must be restarted for the data collection changes to take effect.
Parent topic:
All platforms