Recording and playing back configuration scripts using the Configuration Manager Proxy API Exerciser

The Configuration Manager Proxy API Exerciser sample can be used to record and play back configuration scripts. To record and play back configuration scripts using the Configuration Manager Proxy API Exerciser, perform the following steps:
  1. Start the Configuration Manager Proxy API Exerciser.
    • On Windows, click Start > IBM WebSphere Message Brokers 6.0 > Java Programming APIs > Configuration Manager Proxy API Exerciser.
    • On other platforms, run the following shell script from the installation directory:

      INST_DIR\sample\ConfigManagerProxy\StartConfigManagerProxyExerciser

      Where INST_DIR is the installation directory.

    The Configuration Manager Proxy API Exerciser window is displayed.
  2. Start recording a script by clicking Scripting > Record New Script....

    The Save dialog is displayed.

  3. Type a name for the script file and select an appropriate file location, then click Save.
  4. Perform a number of actions on a Configuration Manager using the Configuration Manager Proxy API Exerciser.
    In this case the first action performed will be connecting to a Configuration Manager, however you can start recording a script at any point during the management of a Configuration Manager.
    Note: If the script is to be invoked from the command line, a shell window, or a batch file, ensure the fist action performed in the script is connecting to a Configuration Manager.
  5. Optional: Insert a pause by clicking Scripting > Insert a pause...

    A pause causes the Configuration Manager Proxy API Exerciser to wait for a period of time so that responses can be returned before the next action is issued. This is important in order to remove naming conflicts if you are deleting and recreating objects of the same name.

    The Insert a pause... dialog is displayed, which allows you to specify the duration of the pause.

  6. Stop recording the script by clicking Scripting > Stop Recording.

    Information relating to the actions preformed are saved to the script file.

  7. To replay the script file, click Scripting > Play Back Recorded Script....

    The Open dialog is displayed.

  8. Select the appropriate script file, then click Open.

    The script file is replayed.

    Note: You can execute a script file from the command line, a shell window, or from a batch file.
Related concepts
The Configuration Manager Proxy samples
Related tasks
Running the Configuration Manager Proxy API Exerciser sample
Viewing and managing a broker domain using the Configuration Manager Proxy API Exerciser
Customizing the Configuration Manager Proxy API Exerciser
Modifying the Configuration Manager Proxy samples