You can use the madconfig utility –recordfile option
to record a set of responses in a property file that provides input
to any madconfig operation. A response property
file is useful for running madconfig options on
a scheduled basis, or for simplifying scripted installations in a
test or multi-environment setting.
Procedure
- To record a response file, run the madconfig utility
with the –recordfile option and specify a target
property file in the command. For example, use the command
madconfig -recordfile myfile.properties create_datasource
where myfile.properties is
the name of the property file that stores your responses. You can
define a full path to the property file.
- When you record the response file, the madconfig operation
you are recording is processed (that is, the madconfig utility
both processes the operation and records your responses). For example,
if you run this command:
madconfig -recordfile myfile.properties create_datasource
a data source is created when the responses
are recorded.
- You can edit the property file after its creation to modify
the responses if needed. If you want to add comments to your property
file, use number signs (#) at the beginning of each comment line.
For example:
# ----------------------------------------------------------
# ---- Database properties ----
# ----------------------------------------------------------
mad.db.name=MyDatabase
mad.db.host=localhost
mad.db.type=mssqlu
See the documentation on the individual madconfig utility
operations for full details about the prompts and variables for each.