Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Agent configuration update script use cases

You can change the agent configuration without making manual or scripted edits to the AgentConfig.xml file by using update scripts.

When you copy an update script to the WinCollect patch directory, the Agent performs the actions that are described in your script.

Update script actions

Update scripts can include the following actions:

<Addto> - Adds a child to the relevant node. You can include a type and certain defined key value pairs.
<Update> - Updates the value of a key.
<Delete> - Similar to <Addto>, except you add the name of the object to the object Path.

The agent creates a new configuration in the patch folder and validates the new configuration. When the validation is successful, the old agent configuration is backed up. The agent moves the update script, the old AgentConfig.xml file, and the new AgentConfig.xml file into a backup folder (patch_xxxx) and puts the new agent configuration into operation.

Several sample update scripts are installed with WinCollect 10. They are stored in the \IBM\WinCollect\samples directory.

Examples

Note:

These scripts are examples only. All agent configuration service modules are supported so that you can create your own scripts.

Note:

Update script file names must begin with update_. All other file names are ignored.

update_addXPath.xml
update_delSecurity.xml
update_updtConsPort.xml

The following use cases are examples of how you can use update scripts to change agent configurations: