![]() |
![]() |
[ Bottom of Page | Previous Page | Next Page | Contents | Index ]
To edit the source code of a resource model.
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.
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.
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.
None
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.
[ Top of Page | Previous Page | Next Page | Contents | Index ]