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 WebSphere® Application
Server Base or Network Deployment environment. The Scripts are invoked
as follows:
- 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.
Note: 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.