Defining a CPU loop check profile
Using criteria that you define, CPU loop check profiles automatically detect jobs or STCs that might be caught in a CPU loop or are using excessive CPU. Whenever jobs or STCs meet the profile criteria, MainView Alarm Management generates an alert, and you can define other actions that MainView should take.
To define a CPU loop check profile
- From the MainView for z/OS easy menu (EZMZOS), select the View RealTime Menu option at the top of the panel.
- From EZMZOSR, select Solutions.
- From EZMSOL, select Max Check.
- From EZMMXCK, select List Profiles.
From the COMMAND line of the LPCKPL menu, type ADD.
Specify the profile's name, description, and criteria:
Field
Description
Profile Identity
Enter information about the profile.
Profile Name
Enter a unique alphanumeric name for the profile.
The name can contain up to 12 characters and must start with an alphabetic or national character.
Profile Desc
(Optional) Enter a short description of the profile.
Loop Criteria
Define whether the profile should detect jobs that might be in a CPU loop, or only jobs that are using excessive CPU.
Accumulated CPU time before start
Enter one of the following values:
- To detect potential CPU loops, enter the amount of CPU time that a job can use before the profile starts monitoring it.
- To detect excessive CPU usage, specify a time.
Use the format hh:mm:ss. The maximum valid value is 23:59:59.
CPU usage and Delay percent trigger value
Enter one of the following values:
- To detect potential CPU loops, enter the percentage of the reporting period that an address space can use (or wait to use) the CPU.Valid values are 0 through 100. BMC recommends 95.
- To detect excessive CPU usage, enter 0.
Job Names
Specify the jobs to which this profile should or should not apply.
Include
(Optional) Enter up to five jobs to which this profile should apply.
Exclude
(Optional) Enter up to four jobs to which this profile should not apply.
Job Classes
Specify the job classes to which this profile should or should not apply.
Include
(Optional) Enter up to five job classes to which this profile should apply.
Exclude
(Optional) Enter up to four job classes to which this profile should not apply.
Service Classes
Specify the service classes to which this profile should or should not apply.
Include
(Optional) Enter up to five service classes to which this profile should apply.
Exclude
(Optional) Enter up to four service classes to which this profile should not apply.
Action(s)
Specify the action or actions that MainView should take when a job or STC meets all of the profile's criteria.
WTO
Specify whether MainView should write a write-to-operator (WTO) message to the system console.
Valid values are YES or NO.
Enter S next to YES to write the message.
CANCEL
(Optional) Specify whether MainView should cancel the job or STC.
Valid values are YES or NO.
Enter S next to YES to cancel the job.
QUIESCE
(Optional) Specify whether MainView should quiesce the job.
Valid values are YES or NO.
Enter S next to YES to quiesce the job.
MVS Command
(Optional, and for authorized users only) Enter an IBM MVS console command for MainView Alarm Management to run.
MainView Alarm Management runs this command when a job meets all of the profile's criteria and the profile's alarm generates a START-type alarm message.
You can use the following variables in the command:
Variable
Description
&JOBNAME
Name of the job that meets all of the profile's criteria
&STEPNAME
Step name (or job qualifier) associated with an STC that was started
using the procName.stepName format of the START command&JOBNUM
JES job number
&ASID
Job's address space ID
&CPUMIN
Job's current number of CPU minutes used
&CPUPCT
Job's current CPU usage percentage
&JOBCLASS
Job's job class
&SRVCLASS
Job's service class
To save the profile, at the COMMAND line, type END.
Saving the profile automatically enables it.MainView Alarm Management creates an alarm based on the profile and based on a default alarm definition. If a job meets all of the profile's criteria, MainView Alarm Management takes any actions defined in the profile and generates an alert.
Where to go from here
If you are using an automation product, such as MainView AutoOPERATOR for z/OS, you can configure additional automation to take actions when a job meets all of a CPU loop check profile's criteria and MainView AutoOPERATOR receives the message. Messages start with BBDLC1nnt. For more information about the messages, see the MainView for z/OS online Help. For information about configuring automation for handling messages, seeMainView AutoOPERATOR Basic Automation Guide Volume 1 Using Rules.
See Managing-CPU-loop-and-maximum-value-check-profiles for information about:
- Managing CPU loop check profiles
- Viewing the maximum value check profile alarm
- Viewing alarm reports