Changing the heartbeat interval

You want to change the heartbeat interval from 5 minutes to 1 hour on all deployed systems. You can change this interval by using the update_updtTemplate.xml update script.

Procedure

  1. Locate the update_updtTemplate.xml template in the \IBM\WinCollect\samples directory.
  2. Save a copy of the template and name it update_heartbeat.xml.
  3. Modify the file:
    1. Open the agent config definition file (AgentConfigDefinition.xml) and find the Heartbeat parameter.
      Important: Do Not Modify the AgentConfigDefinition.xml file.
      The Heartbeat parameter is in the StatusServer object.
    2. Change the object path in your script to StatusServer, the parameter to Heartbeat, and the value to 3600 (1 hour in seconds).
      The final script looks like this:
      <?xml version="1.0" encoding="UTF-8"?>
      <WinCollectScript version="10.0.0" >
          <Update objPath="LocalSources(Name=Local)/Source(Name=Security)" >
              <Parameter name="Filter" value="1100,1102,4624,4625,4634,4648,4657,4672,4688,4689,4704,4706,4713,4714,4716,4719,4720,4722,4725,4726,4728,4731,4732,4733,4735,4740,4756,4765,4766,4767,4769,4776,4778,4779,4781,4782,4793,4870,4873,4874,4880,4881,4882,4885,4886,4887,4888,4890,4891,4892,4896,4897,4898,4899,4900,5038,5136,5137,5138,5139,5140,5141,5142,5144,5145,5376,5377,5632,6272,6273,6274,6275,6276,6277,6278,6279,6280,6281" />
              <Parameter name="FilterEnabled" value="true" />
          </Update>
      </WinCollectScript>
  4. Save the update_heartbeat.xml file and move it to the \IBM\WinCollect\patch directory.
    After a few seconds, the file disappears and the agent restarts. The old agentconfig.xml file is moved to the backup directory (patch_checkpoint_xxxx).