The following examples demonstrate how you can perform various modifications using the mergeprop utility.
Updating and adding
The first code fragment shows the contents of the delta file in which a new AppServer Broker instance addasbroker2, is defined. The contents of this delta file is based on minor changes made to the sample default broker asbroker1, as shown:
This same command structure can be used to update a group.
Note: On an add action, you are only required to specify those properties whose values you intend to override. Default values are applied in all other circumstances.
Adding a property
This example demonstrates how to add a property specified as an "environment" property to the asbroker2 created in the earlier example.
The following code fragment shows the environment property being added to the asbroker2 definition in the ubroker.properties file:
It is also helpful to know how to perform a deletion. Remember that you can only perform group-level deletions; you cannot delete a single property within a group. The command line demonstrates how to delete the instance of asbroker2:
The following command line lists the properties defined specifically for the UBroker.AS.asbroker1 group in ubroker.properties, omitting inherited properties:
$ mergeprop -type ubroker -action list UBroker.AS.asbroker1
The following command line lists all properties of the UBroker.AS.asbroker1 group, including inherited properties:
The following command line lists all properties, including inherited properties of the FMCONFIGCLI.OSFI group in the file installation-path\%DLC%\properties/JavaTools.properties:
The following command line shows how to list a full group definition, specifically a full database group definition. In this example the sports database is referenced and its full group definition which lists all configurations and server groups associated with the sports database is noted: