IBM Tivoli Software IBM Tivoli Software

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


Editing source

Objective

To edit the source code of a resource model.

Background information

You might want to modify the source when you are debugging the resource model and the logging instances need to be examined in the Logging view. For example, you can add the line "Svc.EnableLogging(1)" to the Default Config function.

The decision tree script implements the settings defined during the creation of the resource model. In the decision tree script, you have to write a monitoring algorithm that controls the whole process. The monitoring algorithm is written in Visual Basic or JavaScript and displays on the right of the main window when you open a resource model.

Note:
The IBM Tivoli Monitoring Resource Model Builder implements the Sax(TM) interpreter, which differs slightly from other Visual Basic interpreters, such as Microsoft Visual Studio. For more information, refer to the following web site:

http://www.saxsoft.com/Basic/Details

In the script, you can edit the predefined functions. You can add additional code, but you cannot modify the settings specified in the previous windows. If you try to modify them from the script, the new settings are not saved. However, you can add additional steps to the functions, as long as you are careful writing the new lines of code.

Note:
Do not modify remarks contained in tags like <<....>> ... <<\...>>, otherwise the IBM Tivoli Monitoring Resource Model Builder can produce unpredictable results.

When you write the monitoring script, you must specify how your resource model works. When you specify the event attributes, you must list them in the same order as they display in the Events window.

Before you begin

None

When you finish

Test the resource model source by clicking on the right-arrow in the Source page menu. The results display in the RMB Event Viewer.

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 running the resource model. The Tasks view displays in the bottom pane of the IBM Tivoli Monitoring Resource Model Builder.

Procedure

  1. Open the resource model.
  2. Select the Source page.
  3. Edit the source code.
    Note:
    Changes made in the decision tree script are not reflected on the other IBM Tivoli Monitoring Resource Model Builder pages for this resource model.
  4. Save the changes, or go to another page to continue making changes.

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