IBM Tivoli Software IBM Tivoli Software

[ Bottom of Page | Previous Page | Next Page | Contents | Index ]


Objective

To run a resource model so you can test it in a local environment.

Note:
You must use a data provider that runs on Windows to perform this procedure.

Background information

After creating your resource model, you can test it. To test a resource model, run the script to make sure it does not generate any errors.

Before you begin

Check the Tasks view to verify that you do not have any errors in your resource model. If the Tasks view displays errors, correct the errors before you run the resource model. The Tasks view displays in the bottom pane of the IBM Tivoli Monitoring Resource Model Builder:

When you finish

If an error displays, correct the error. For debugging a JavaScript resource model, see Debugging a JavaScript resource model. For debugging a Visual Basic resource model, see Debugging a Visual Basic resource model.

When you have fixed all the errors, run the resource model again. To make sure that the resource model actually detects the problems that you have specified, simulate those problems on your workstation when you run the resource model.

Procedure

  1. Open the resource model.
  2. Select the Source page to display the Source window.
  3. Enable logging in the SetDefaultConfiguration method by doing the following:
    1. In the Decision Tree Script, scroll down to the text that reads "Place your additional initializing code below."
    2. Type the following text into the script:
      Svc.EnableLogging(1)
  4. Click the Run icon (right-arrow icon, shown below) from the menu bar to start testing.

    Additional Information: Depending on the debug tool on your system, you might receive a prompt to choose a debugging tool. If you receive this prompt, select a debugging tool to begin the testing process.

  5. Review the resource model data using any of the following views:

    Additional Information: Use these views to see what information is sent to the IBM Tivoli Monitoring engine. For example, you can determine if calls to TMWService.LogInst are being made at the appropriate times, and if the information being logged is correct. If the information is not correct, it can lead to problems distributing data into the Tivoli Enterprise Data Warehouse.


[ Top of Page | Previous Page | Next Page | Contents | Index ]