260 Problem Determination Using Self-Managing Autonomic Technology
8.1 Scenario description
This scenario provides a solution when an application reaches a threshold limit of
disk utilization. A custom resource model will be monitoring free disk space on
the file system. If the free space is below a certain limit, the first corrective action
is to ZIP all old files into a backup archive. If the free space continues to drop
below a second limit, the second corrective action is to delete old backup
archives.
The scenario uses custom Common Information Model (CIM) Instrumentation
Library Type (ILT) classes as data sources and for performing corrective actions.
The configuration of the resource model is performed with both parameters and
thresholds.
Figure 8-1 shows an outline of all components of the scenario. The following
sections provide details of this example scenario implementation.
Figure 8-1 Components of scenario one
8.2 Resource model definition
This section defines a resource model for this scenario using the Tivoli Resource
Model Builder. Refer to 6.2, “Resource models” on page 199, which outlines the
different components of resource models.
File system
Application Node
Data
Scenario1 Application
Insert Data
AME Runtime
(SARA)
AME
RM
Action
Free up disk space
Monitor disk usage
Use Diskspace
Chapter 8. Problem Determination scenario one 261
8.2.1 Creating the Eclipse project
To create a Tivoli resource model project in the Resource Model Builder, perform
the following steps:
1. To start the Eclipse, select Start Programs IBM Autonomic
Computing Toolkit Development kit Start Eclipse.
2. Open the Tivoli Management Perspective by selecting Window Open
Perspective Other Tivoli Management Perspective.
3. Create a new Tivoli Management Project by selecting File New Project
and then selecting Tivoli Management Project, as shown in Figure 8-2.
Figure 8-2 New Tivoli Management Project
4. Click Next.
5. Enter your Project name, for example ACPD_Scenario_One, and click Next.
6. Now, it is not possible to start the Basic Resource Model Wizard or the Empty
Resource Model Wizard. To create an empty project, just click Finish.
262 Problem Determination Using Self-Managing Autonomic Technology
8.2.2 General resource model settings
Now that the project is in place, resource models can be created. To create an
empty resource model, perform the following steps:
1. Right-click the project MyManagementProject and select New Empty
Resource Model Wizard. The Empty Resource Model Wizard window
opens, as shown in Figure 8-3.
Figure 8-3 Tivoli Empty Resource Model Wizard
2. Click Next after filling all the fields with the following information:
Internal Name ACPD_Scenario_One
Descriptive Name ACPD_Scenario_One_Disk_Storage
Description Monitors the free disk space in a
specific folder. If the amount of free
disk gets too low, then all files older
than one day are zipped (except zip
files). If there is still not enough
diskspace, then all zip files older than
one week are deleted.
Category Internal Name storage
Chapter 8. Problem Determination scenario one 263
Category Descriptive Name Disk storage
Major Version 1
Minor Version 0
Cycle Time 60
Script Language Selection Set the script type of the decision algorithm to
JavaScript, which enables the resource
model to be used on all platforms.
Select the platforms w32-ix86
3. Now, select the project name to contain the resource model, as shown in
Figure 8-4. Specify the File name of the resource model and click Finish. By
default, the wizard suggests the internal name followed by .jrm.
Figure 8-4 Select project for resource model and specify its name.
Now, the workspace should look like the one shown in Figure 8-5 on page 264.

Get Problem Determination Using Self-Managing Autonomic Technology now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.