Neoview Workload Management Services Guide (R2.4)

Associating a Connection Rule With a Service
Use the ALTER WMS CONN command to associate a connection rule with a service. You can
associate more than one connection rule with a service, but you cannot associate the same
connection rule with more than one service.
The NDCS server evaluates each connection rule in the order in which you have listed the
connection rule and service associations in the ALTER WMS CONN command. The order of the
connection rules in the ALTER WMS CONN command helps determine which service to assign
to the client session. The NDCS server assigns the client session to the service that is associated
with the first connection rule that matches the connection attributes of the client session.
CAUTION: Each time you enter an ALTER WMS CONN command, you overwrite existing
associations of connection rules and services, including associations for the predefined “HPS_”
rules and services.
In this example, the ALTER WMS CONN command associates the user-defined connection rules,
CONNRULE1 and CONNRULE2, with SERVICE1, and retains existing associations of the
predefined connection rules and services:
NS%ALTER WMS CONN (
HPS_TRANSPORTER1 HPS_TRANSPORTER,
HPS_MANAGEABILITY1 HPS_MANAGEABILITY,
HPS_MANAGEABILITY2 HPS_MANAGEABILITY,
HPS_MANAGEABILITY3 HPS_MANAGEABILITY,
HPS_MANAGEABILITY4 HPS_MANAGEABILITY,
HPS_MANAGEABILITY5 HPS_MANAGEABILITY,
HPS_MANAGEABILITY6 HPS_MANAGEABILITY,
HPS_MANAGEABILITY7 HPS_MANAGEABILITY,
HPS_MANAGEABILITY8 HPS_MANAGEABILITY,
HPS_MANAGEABILITY9 HPS_MANAGEABILITY,
(CONNRULE1, CONNRULE2) SERVICE1
);
--- WMS operation complete.
%NS
For the syntax, see the ALTER WMS CONN Command” (page 108).
How to Retain Connection Rule and Service Associations
To retain existing associations of connection rules and services when associating a connection
rule with a service, follow this procedure each time you use the ALTER WMS CONN command:
1. In an NCI session, run the LOG command in NS mode to start logging the session to a text
file on your workstation:
SQL>mode ns
NS%log c:\alterwmsconn.txt
%NS
2. Run the STATUS WMS CONN command to display the existing associations of connection
rules and services:
NS%status wms conn;
TYPE RULE_NAME
SERVICE_NAME
---- ------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
CONN HPS_TRANSPORTER1
HPS_TRANSPORTER
CONN HPS_MANAGEABILITY1
HPS_MANAGEABILITY
CONN HPS_MANAGEABILITY2
HPS_MANAGEABILITY
Connection Rules 47