Use Case 2: Modify event data storage configuration

About this task

You want to change the location and capacity of the event data that is stored in the \programdata\WinCollect file. You want to store the event data in C:\WinCollect\Data and change the capacity to 20 GB. There is no default template for this change, but you can easily create one by using information in the agentconfig.xml file. The following sample shows the existing service:
<Service classification="Service" type="Service" version="7.2.8" module="WinCollectCommon" name="DiskManager">
		<Environment>
			<Parameter name="BasePath" value="%ALLUSERSPROFILE%\WinCollect\Data"/>
			<Parameter name="Capacity" value="6144"/>
		</Environment>
	</Service>
Note: %ALLUSERSPROFILE% is an environment variable. The default value is C:\ProgramData. You want to change this value to C:\WinCollect\Data.

Procedure

  1. Create an XML file named service_DiskManager.xml with the following contents:
    <Service classification="Service" type="Service" version="7.2.8" module="WinCollectCommon" name="DiskManager">
    		<Environment>
    			<Parameter name="BasePath" value="c:\ibm\WinCollect\Data"/>
    			<Parameter name="Capacity" value="20480"/>
    		</Environment>
    	</Service>
  2. Move the file to the \IBM\WinCollect\patch directory.
    After a few seconds, the file disappears and the agent restarts. Data is now written to the new directory.