Use the CMP API Exerciser to record and play back configuration
scripts.
You can run a script file from the
command line, a shell window, or from a batch file. If you run the
script by using one of these methods, ensure the first action completed
by the script is to connect to a broker.
- Start the CMP API Exerciser.
The CMP API Exerciser window
opens.
- Start recording a script by clicking . The Save dialog
opens. Type a name for the script file, select an appropriate file
location, and click .
- Complete one or more actions on a broker by using the CMP API Exerciser.
If you start
recording before you run actions against the broker, the first action
taken is to connect to the broker; however, you can start recording
a script at any point during the management of a broker.
- Optional: Insert a pause by clicking .
The CMP API Exerciser pauses
so that responses can be returned before the next action is issued.
Use this option to avoid naming conflicts if you are deleting and
recreating objects of the same name.
The Insert
a pause dialog opens; specify the duration of the pause
in seconds.
- Stop recording the script by clicking .
Information about the actions
taken are saved to the script file.
- To replay the script file:
- Click .
The Open dialog opens.
- Select the appropriate script file and click Open. The script file is replayed.
Next: Continue to work with
the CMP API Exerciser, or run another sample.