Defining Model Builder Tasks
Use the following procedure to create, add, and manage Model Builder Tasks.
The Model Builder Tasks tool provides you with the ability to build cost models based on current data from the CDB server. Once defined and scheduled, Model Builder Tasks generate the models required for the Software Contract Reporting, Monthly Reporting, and Planning tools.
You can build a variety of models to affect the scope of your analysis. In general, if you have multiple CDB servers, you must define multiple Model Builder Tasks to run. If you have more than one workload type you want to process, you can define one Model Builder Task for all of the workloads. It is not necessary to create a separate task for each workload type.
However, if you want to run a Model Builder Task for multiple workload types, you can specify only one filter. If you need to specify different filters for different workloads, you need to create a separate Model Builder Task for each workload that you want to filter.
Model Builder tasks provide advanced options where you can:
- Exclude particular LPARs from the cost calculations
- Designate the LPARs that use zNALC licensing for z/OS products
- Enable trace messages to the log file to assist in diagnostics
Before you begin
You need to define at least one CDB Server profile before you can create a Model Builder Task. Defining the CDB Server profile enables Cost Analyzer to connect to the CDB database and retrieve the necessary data for the model. For more information, see Defining-connections-to-CDB-servers.
Cost models are built referencing the active Cost Table. If you have multiple cost tables, you need to ensure that the cost table you want to reference for cost calculations is set as the active cost table. For more information, see Managing-multiple-cost-tables.
To define Model Builder Tasks
- From the Cost Analyzer console, click Administration Tools.
In the Administration Tools window, click Manage Model Builder Tasks.The Model Builder Task Manager dialog opens, listing all of the tasks that have been defined:
From the dialog you can add, modify, or remove Model Builder Tasks.
Perform one of the following actions:
- To add a new Model Builder Task, click the Add button.
- To modify an existing Model Builder Task, select the icon of the task you want to modify from the list, and then click the Modify button.
The Add/Modify dialog is displayed as shown in the following figure:
Complete each field based on the following table:
Field | Description |
|---|---|
Task name | Name to be assigned to the task |
Task description | (Optional) Description of the task |
Workload type | Click one or more of the following types:
For more information, see Cost-Analyzer-workloads. |
Workload Filter | Filter for the workload Workload filters can be specified for Suites, Service Class, and Report Class workloads. For these workloads, you can enter a list of comma delimited workload names or wildcard character patterns to be used as a filter to reduce the size of the cost model. To filter workloads, specify the type of filter:
A filter can contain the following types of wild cards:
|
Source CDB Server | Desired CDB Server Profile |
Source CDB Database | Desired CDB Database accessible from the specified CDB Server The database needs to be compatible with Cost Analyzer. |
Time Zone Offset | Desired time zone offset You can specify an offset from the time zone of the data in the CDB database. |
(Optional) If you want to exclude particular LPARs from the cost calculation, designate zNALC LPARs, specify NO89 commands, specify SCRT commands, or enable Trace messages, click Advanced Options.The Advanced Options dialog displays as shown in the following figure:
To designate zNALC LPARs, enter the name of the zNALC LPAR you want to include, and then click Accept.
To exclude LPARs from the cost calculation click the Exclude tab, enter the name of the LPAR you want to exclude and then click Accept.
To specify the NO89 command for a MLC product or a priced feature that does not create SMF Type 89 records, click the NO89 commands tab, then enter the command as follows:NO89 productID[:featureCode]=[CPCSN:]lparName,... | *All
The following table defines the value of the variables:
Variable
Description
productID
IBM product number
featureCode
IBM priced feature number
CPCSN
The CPC serial number
lparName
List of LPAR names separated by commas
To specify an EXCLUDE command for an interval that must be excluded from the peak R4HA calculation, click the SCRT commands tab, then enter the command as follows:
EXCLUDE89 CPC=<xxxx> IMAGE_ID=<lparname>,... | *ALL
PRODUCT_ID=<productid>,...|*ALL
START=<yyyy m d h>
RESUME=<yyyy m d h>
ACTIVE=Y|NTo specify a CONTAINER, UPDATE CONTAINER, or IGNORE CONTAINER command, click the SCRT commands tab, then enter the commands as follows:
Command
Example
CONTAINER
CONTAINER CPC=<tttt>-<sssss>,IMAGE_ID=(<image1>,<image2>,...,<imageN>),ID=<solutionID>The variables are defined as follows:
- tttt – CPU Type
- sssss – Last five characters of CPU serial number
- image1,image2,...ImageN – Names of the LPARs that are container LPARS
- SolutionID – Solution identification number
Note: At least one image_ID required. Image_ID is LPAR name
UPDATE CONTAINER
UPDATE CONTAINER,ID=<solutionID>,SET_NAME="<solutionName>"Note: This command is required.
IGNORE CONTAINER
IGNORE CONTAINER,ID=<solutionID>,START=<yyyy>/<mm>/<dd>/<hh>,RESUME=<yyyy>/<mm>/<dd>/<hh>Note: The IGNORE CONTAINER control statement is only intended for use under rare circumstances and as directed by IBM.
To specify an Integrated Workload Pricing (IWP) command, click the SCRT commands tab, then enter the commands as follows:
IWP | Integrated_Workload_PricingTo enable Trace messages, click the Trace tab, and then click
to output trace messages to the log for the Model Builder Task.
- When finished with Advanced Options, click Accept.
- When finished with all selections, click Add Task.The task appears as a listing in the Model Builder Tasks dialog.
- Click Save Changes to save the Model Builder Task to the server.
Where to go from here
After defining your Model Builder Tasks, schedule them to run on a nightly basis for use with the Software Contract Reporting, Monthly Reporting, and Planning tools. For more information, see Scheduling-Model-Builder-Tasks.
This section contains the following topic:
Related topic