Previous Topic: Populate a Local System Image with Specific Resources Using the Auto Populate Facility

Next Topic: How You Work with Resource Definitions

Define a Resource Using the Resource Learning Feature

For a resource with no template (for example, a resource of the USRCLS class), use the AutoAssist resource learning feature. The feature helps you define the resource to the knowledge base. The feature guides you through the following:

The feature defines the resource in the local active system image. If the image undergoes a loading or shutdown operation while resource learning is in progress, the learning session aborts.

The feature comprises a sequence of panels that prompt you for information. Some fields can also be primed with initial values. If you intend to build a template from the definition, supply only the common data initially. You can refine the definition later for the specific resource. The feature guides you through the following steps:

Note: You can use the F7 (Backward) function key to backtrack through the steps. If you change your mind and do not want to create the resource definition, press F12 (Cancel) before you press F8 (Continue) at Step 9.

To define a resource in the local active system image using the resource learning feature

  1. Stop the resource you want to define.

Important! During the learning session, you actually start and stop the resource to learn about the relevant messages.

  1. Enter /RADMIN.AD.R to access the resource learning feature.

    The Resource Learning panel appears.

  2. Specify the class and name of the resource in the Resource Class and Resource Name fields. Press F8 (Continue).
  3. Specify the resource type, and provide descriptions for the resource in the Description fields. Press F8 (Continue).

    Note: The operation mode is set to MANUAL for resource learning.

    A panel prompts you to specify the command to start the resource.

  4. Define the activation details for the resource:
    1. Specify the command to start the resource in the Activation Command field. Press F8 (Continue) to start the resource.

      A Message List panel appears, showing the messages received during the starting process.

    2. Select the message that indicates that the resource has become active to proceed to the next step.

      A panel appears with the selected message.

    3. Replace any variable data such as the time of day by the asterisk (*) wildcard character. Each embedded * represents a single character. Specify only enough message text to identify the message positively. Press F8 (Continue).

      A panel prompts you to specify the command to display the status of the resource.

    4. Specify the command to display the status of the resource in the Status Command field. Press F8 (Continue) to issue the command.

      A Message List panel appears, showing the messages received during the displaying process.

    5. Select the message that indicates that the resource is active to proceed to the next step.

      A panel appears with the selected message.

    6. Replace any variable data such as the time of day by the asterisk (*) wildcard character. Each embedded * represents a single character. Specify only enough message text to identify the message positively. Press F8 (Continue).

      A panel prompts you to specify the command to stop the resource.

  5. Define the inactivation details for the resource:
    1. Specify the command to stop the resource in the Inactivation Command field. Press F8 (Continue) to stop the resource.

      A Message List panel appears, displaying the messages received during the stopping process.

    2. Select the message that indicates that the resource has become inactive to proceed to the next step.

      A panel appears with the selected message.

    3. Replace any variable data such as the time of day by the asterisk (*) wildcard character. Each embedded * represents a single character. Specify only enough message text to identify the message positively. Press F8 (Continue).

      The display command specified in Step 5d is issued for the stopped resource. A Message List panel appears, displaying the responses.

    4. Select the message that indicates that the resource is inactive to proceed to the next step.

      A panel appears with the selected message.

    5. Replace any variable data such as the time of day by the asterisk (*) wildcard character. Each embedded * represents a single character. Specify only enough message text to identify the message positively. Press F8 (Continue).

      A panel prompts you to specify the command to force the resource to stop.

  6. Specify the command that can force the resource to stop in the Force Inactivation Command field. Press F8 (Continue).

    A panel appears for you to enter messages that indicate the various resource states. The previously selected messages that indicate the ACTIVE and INACTIVE actual states are automatically displayed on the panel.

  7. Specify the status display messages in the Message fields where applicable. Replace any variable data such as the time of day by the asterisk (*) wildcard character. Each embedded * represents a single character. Specify only enough message text to identify the message positively. Press F8 (Continue).

    A panel appears for you to define relationships between this resource and other resources.

  8. Do one of the following:

    The resource definition is saved. A panel appears for you to refine the created definition. For example, you want to change the operation mode.

  9. Do one of the following:

    A panel appears. The panel lets you create a template from the definition.

  10. (Optional) Specify the name of the template in the Template Name field and describe the template in the Template Description field, and press F6 (Build).

    The template is created. The definition appears for you to review and update.

  11. Press F3 (Exit) to finish the session.

Note: After you exit from the resource learning feature, you can use the Resources option on the Definition Menu to access the definition for further refinement.