WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Recording and playing back configuration scripts using the CMP API Exerciser

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.
  1. Start the CMP API Exerciser.
    • Windows platformOn Windows, click Start > All Programs > IBM WebSphere Message Broker 8.0.0.0 > Java Programming APIs > CMP API Exerciser.
    • Linux platformUNIX platformz/OS platformOn other operating systems, run the following shell script:
      install_dir\sample\ConfigManagerProxy\StartConfigManagerProxyExerciser
    The CMP API Exerciser window opens.
  2. Start recording a script by clicking Scripting > Record New Script. The Save dialog opens. Type a name for the script file, select an appropriate file location, and click Save.
    1. 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.

    2. Optional: Insert a pause by clicking Scripting > Insert a pause.

      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.

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

      Information about the actions taken are saved to the script file.

  3. To replay the script file:
    1. Click Scripting > Play Back Recorded Script.

      The Open dialog opens.

    2. 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.
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:47:01


Task topicTask topic | Version 8.0.0.7 | ae33380_