Let's look at an example using the policy statements shown in
Figure 1.
- After I've created HZSPRM01 as it appears in Figure 1, I issue the F hzsproc,ADD
PARMLIB command to add HZSPRM01 to the list of parmlib members
I want IBM® Health Checker to
use.
- Here's where things get interesting. By default, the active IBM Health Checker for z/OS® policy is DEFAULT, unless I specify otherwise.
That means that if I want the DEFAULT policy to be the active one,
I can now either issue the F hzsproc,ACTIVATE,POLICY=DEFAULT command
or do nothing - I get DEFAULT as the active policy either way. The
system applies the values for policy DEFAULT to check CHECKA immediately,
upgrading its default severity to HIGH. The system reapplies this
values every time CHECKA is refreshed.
- Now I want to switch to my DAY policy, so I issue the F hzsproc,ACTIVATE,POLICY=DAY command.
When I do the activate, the system immediately applies the DAY policy
values to policy CHECKA. But until I refresh CHECKA, values applied
to CHECKA include both DAY values and any DEFAULT values that policy
DAY does not contradict. This means that the pre-refresh values currently
in use for CHECKA after I activate policy DAY include:
- SEVERITY(HIGH) from DEFAULT
- VERBOSE(YES) from DAY
- INTERVAL(00:01) from DAY
- But I wanted only the DAY values applied to CHECKA! What do I
do? I refresh CHECKA using command F hzsproc,REFRESH,CHECK=(IBM,CHECKA).
After refresh, my values for CHECKA include only DAY values:
- VERBOSE(YES) from DAY
- INTERVAL(00:01) from DAY
Refreshing CHECKA resets all the values to their default setting
except for the active DAY policy values.
- Wait, there's more. Now I want to switch to policy NIGHT, so I
issue my F hzsproc ACTIVATE POLICY=NIGHT command.
Until I refresh CHECKA, values applied to CHECKA will also include
some DAY and some NIGHT values:
- VERBOSE(YES) from DAY
- DEBUG(ON) from NIGHT
- INTERVAL(00:02) from NIGHT
Notice that NIGHT value INTERVAL(00:02) overrides the DAY interval
of 00:01.
- When I refresh CHECKA, I get just the NIGHT values:
- DEBUG(ON) from NIGHT
- INTERVAL(00:02) from NIGHT