Defining Model Builder Tasks
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.
The Manage Model Builder Tasks tool provides 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 Source Database in the CDB Automator catalog before you can create a Model Builder Task. Defining a CDB Source Database enables Cost Management to retrieve the necessary data for the model.
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 Management console, click Administration Tools.
From the Administration Tools, click Manage Model Builder Tasks.The Model Builder Task Manager dialog box is displayed listing all the defined tasks. From the dialog box you can add, modify, or remove Model Builder Tasks.
Perform one of the following actions:
- To add a new Model Builder Task, click Add.
- To modify an existing Model Builder Task, select the icon of the task you want to modify from the list, and then click Modify.
The Add/Modify dialog box is displayed.
Complete the fields as follows:
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-Management-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 Database | Desired database accessible from the specified Capacity Database Web Services Server The database needs to be compatible with Cost Management. |
Time Zone Offset | Desired time zone offset You can specify an offset from the time zone of the data in the 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 box is displayed.
To designate zNALC LPARs, enter the name of the zNALC LPAR that you want to include, and then click Accept.
To exclude LPARs from cost calculation, click Exclude and enter the name of the LPAR you want to exclude. Then click Accept.
To specify the NO89 command for an 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 SCRT commands. Then enter the commands as follows:
IWP | Integrated_Workload_PricingTo enable Trace messages, click Trace. Then click
to output trace messages to the log for the Model Builder Task.
- After completing the fields in Advanced Options, click Accept.
- Complete the selections, click Add Task.
The task appears as a listing in the Model Builder Tasks dialog box. - 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 MLC Software Contract Reporting, MLC Monthly Reporting, MLC Planning, and TFP Monthly Reporting tools. For more information, see Scheduling-Model-Builder-Tasks.
This section contains the following topic: