Working with Model Variable Lists

When you build a model in the Host Integrator Design Tool, you can create model variables, which are placeholders for data. Situations where model variables are useful include:

You can accomplish these same tasks by configuring your session pools to provide values for the model variables in the models in your session pools. To use the value for all sessions in a pool, configure an individual model variable. If you need to provide a unique model variable value for each session in the pool, create a model variable list that contains a set of values for the model variables in the model on which your session pool is based.

Note: When the data object provides a value for a model variable, it overrides any model variable values that have been assigned in the Administrative Console.

For more information about creating model variables in the Design Tool, search for "Model variable" in the Design Tool Reference.

Using Model Variable Lists

A typical use of a model variable list is to store host user IDs and passwords for the session server to use when logging into the host. This simplifies the login process. It is often necessary to create a pool of host user IDs and passwords for your client applications to use. In this case, you would create a model variable list that would assign a host user ID and password for each client session.

Keep the following restrictions in mind as you create and configure model variable lists:

Creating and Configuring Model Variable Lists

You can use the Administrative Console to create and configure a model variable list, or define it during deployment with deployment descriptors. It is recommended that you choose one of these options and continue to use the same option for other updates; changes performed in the Administrative Console are overwritten when you use a deployment descriptor file.

  1. Open the Administrative Console and log onto the management server using an Administrator profile. Open the Host Integrator perspective.

  2. In the Session Server Explorer tree, click Servers, and then select the session server for which you want to create the model variable list.

  3. Right-click Model Variable Lists and select Add Model Variable List.

    The Add Model Variable List dialog box displays.

  4. Type a name for the new model variable list in the List name field, and then click OK.

    The model variable list displays in the Session Server Explorer tree and in the Model Variable List view. To open the view, click Open Model Variable Lists view in the Overview panel or right-click Model Variable Lists in the Session Server Explorer tree and select Open Associated Views.

Creating entries in your list

At this point, you have a model variable list. This list can be used by all session pools on the server. To complete the process, follow the steps below to create list entries in your model variable list:

  1. In the Session Server Explorer tree, click the model variable list you just created, and then click Properties.

  2. In the Model Variable List panel, click Add to add variables and variable values. In the Variable Name box, enter the name of the variable, for example, userID.

    The variable name you enter here must be a variable configured in the model on which the session pool that will use this model variable list is based.

  3. To continue adding variables, click Create on the Add Variables dialog box. As you add variables they are entered in the Variables list on the Properties page.

    When you add a variable, you can specify if the value of the variable is unique or will contain hidden values. At least one variable in the list should contain unique values.

    To hide the value for a variable, select Hide Values. These variables are encrypted. This corresponds to Encrypt value in the Design Tool. Once you've hidden and submitted a value, they remain hidden.

  4. In the Entries section, click Add to enter a value for each variable, for example User1. Click Create to add multiple entries. Click Close.

Configuring session pools to use the list

Now that you've created a model variable list, configure one or more session pools to use it.

  1. In the navigation tree, click Pools, and then click the session pool that you want to configure.

  2. Right-click Properties, and then select Model Variable lists.

  3. A list of available model variable lists is displayed in the top panel. Select one or more lists, and then click OK.

You can review the information regarding available session pools and model variable lists in the corresponding Pool or Model Variable Lists views.

Determining Variable Names in a Model Variable List

Session pools are based on models. When you create a model variable list, variable names must be valid for the model on which the session pool is based.

  1. In the Session Server Explorer tree, select the session pool, right-click, and select Properties.

  2. In the left pane of the Properties pane, open Model Variable Lists. You can see the model variable lists available for use with the session pool and those that are not.

    The page contains a list of variables defined in the model that is associated with the selected pool, as well as the model variable lists that cannot be used by the model, including the reason why.

Securing Host Passwords

If you use session pools (especially with 3270 or 5250 hosts), a model variable list defines the unique host user names and passwords for the session server to use. The variable values are specified in the model deployment package and stored on the server.

Whether you create a model variable list in the Design Tool deployment options (mvl_desc.xml) or in the Administrative Console, it is the best practice to use the Hidden option for host passwords. This option provides the following benefits:

Requiring administrator authentication to use the model variable management API is also a very good practice. See Working Securely for information on authentication and authorization.

To use the Hide option in the Administrative Console

  1. In the Session Server Explorer, select the server associated with the model variable list.
  2. Expand the Model Variable List node and select the model variable list you are securing. From the right-click menu, choose Properties. This opens the property dialog for the model variable list.
  3. For each variable you are adding, choose Hide values to encrypt the variable.

 

Related Topics
Bullet Working with Session Pools
Bullet Using Individual Model Variables