IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > Testing monitor models
Resetting the Monitor test environment
Test environment server profiles are created when the Monitor test environment is installed with Integration Designer or Rational Application Developer. In the Servers view, you can create or reset a default server profile for Business Monitor on either Process Server or WebSphere Enterprise Service Bus.
For example, you might now want to create a default server profile that you did not create when installed the Monitor test environment. Or, you might need to reset an existing default server profile that is no longer functioning correctly.
The default server profiles require an IBM DB2 database server, which you can choose to install when install Business Monitor development toolkit or Integration Designer.
Before starting up Integration Designer or Rational Application Developer to create or reset a default server profile, make sure that you have permission to create and drop databases. Verify that the local DB2 database server is set up correctly on your system and is started. (You can use the DB2 Control Center to check.) Verify that you know the port number on which the database server is listening.
All the profiles created and reset using the instructions below will use the same local database server (instance). Verify that the environment is set up to use the same database server.
If you are using a DB2 database that was not installed as part of the Business Monitor development toolkit or Integration Designer installation, make sure that the database server is accessible as follows. You must complete these instructions before starting Integration Designer or Rational Application Developer.
- From the command line, run
db2 start database managerYou should see one of the following two results.
- DB20000I The START DATABASE MANAGER command completed successfully.
- SQL1026N The database manager is already active.
- If that does not work, check that the DB2 environment is set up and that the DB2 executable files are in your environment %PATH%.
Resetting a profile restores the server and profile to the clean state it was in when first installed. It also provides an easy way to uninstall all model applications.
If you reset the test environment, the Showcase model will no longer be installed.
Procedure
To create or reset default server profiles:
- Close any command windows or Windows Explorer browsers that are open in the folder where the profile is installed. Otherwise, when the profile is deleted, the removal of the directory will fail and the test environment will not be reset.
- In the Business Monitoring perspective, click the Servers tab to open the Servers view.
- If you want to reset a default server profile (which will delete the server profile and then re-create it), stop the server instance that refers to the profile.
For example, if you want to reset the Business Monitor on Process Server profile, stop the Business Monitor on Process Server server instance.
Important: Verify that you stop any active java.exe processes that are associated with the profile.
You might want to verify using the Windows Task Manager that there are no other java.exe processes associated with the profile running, and stop them if you find any.
- Click Manage Server Profiles
. (Alternatively, you can right-click any server and select Manage Server Profiles.) The Manage Server Profiles window opens.
The window displays the logical names of the default server profiles, which are the names that you see when install the Monitor test environment. The window also displays the physical names of the default server profiles, which are the actual names used in a server configuration. (You can open a server configuration in the server configuration editor by double-clicking a server instance in the Servers view.) The server instances listed in the Servers that will be deleted and Servers that will be created or recreated list boxes refer to the physical names of the default server profiles.
At the top of the window, the available actions are listed for each default server profile. The list of available actions is dependent on the current state of the default server profiles.
For example, if no default server profile currently exists for Business Monitor on WebSphere Enterprise Service Bus, a Create the Business Monitor on WebSphere Enterprise Service Bus action is displayed.
- Select the check box beside each action that you want to initiate for the listed servers. For each action that you select, the Servers that will be deleted list displays the names of the server instances that will be deleted from the Servers view. Similarly, the Servers that will be created or recreated list displays the names of any server instances that will be created or reset in the Servers view.
- If the Administrator Credentials wizard opens, specify a user ID and password for each profile name that is listed, then click Next. (The default user ID and password are both admin.)
- On the Add the Database Credentials page, you can see a list of the local databases (if they exist) that will be dropped if you reset the profile or profiles you chose. Any data in those databases will be lost. Verify that the DB2 database instance is up and running, that the credentials are correct, and that the port number is correct (the default is 50000 but it might be different on your system).
- Click Finish.
Results
Although it takes a significant amount of time to create or reset a default server profile, the operations run as background processes, so you can continue to work in the workspace. When the operations have completed, a message informs you that the profile was created or reset successfully and the new server instances appear in the Servers view.
Testing monitor models in the test environment
Previous topic: Verifying the test results
Next topic: Remove the monitor model