Establishing a session using Communications Server for Linux
- Note:
- The information in this section applies only to WebSphere MQ for Linux for Intel. It does not apply to WebSphere MQ for Linux for zSeries.
The following information guides you through the tasks perform to create the SNA infrastructure that WebSphere MQ requires. This example creates the definitions for a partner node and LU on HP-UX.
Use sna start followed by xsnaadmin to access the Communications Server for Linux main window. You need root authority to use xsnaadmin.
Communications Server for Linux configuration
Communications Server for Linux configuration involves the following steps:
- Defining a local node
- Adding a Token-Ring port
- Defining a local LU
The Communications Server for Linux main window, from which you start, is shown here:
Defining a local node
- From the Communications Server for Linux main menu, click Services --> Configure node parameters. The "Node parameters" window opens.
Node parameters window. The instructions that follow guide you through the next step of the process.">
- Set APPN support to End node.
- In the Control point name fields, specify the network qualified name of the control point at the local node. In the first field, type the network name ((4)). In the second field, type the control point name ((2)).
- In the Control point alias field, type the control point name ((2)) again.
- In the Node ID fields, type the two components of the node ID ((3)).
- Click OK. A message is displayed informing you that a default LU has been defined automatically for the local node.
- Click OK.
Adding a Token-Ring port
- From the Communications Server for Linux main menu, click Services --> Connectivity --> New port. The following window opens.
- Set Port using to Token Ring Card, or to the type of network adapter card you are using.
- Click OK. The "Token-Ring SAP" window opens.
- In the SNA port name field, type the port name ((9)).
- Click OK.
Defining a local LU
- From the Communications Server for Linux main menu, click Services --> APPC --> New independent local LU. The "Local LU" window opens.
- In the LU name field, type the name of the local LU ((5)).
- Click the LU alias field. Communications Server for Linux suggests an LU alias that is the same as the name of the local LU ((5)).
- Click OK.
APPC configuration
APPC configuration involves the following steps:
- Defining a remote node
- Defining a partner LU
- Defining a link station
- Defining a mode
- Adding CPI-C information
- Adding a TP definition
Defining a remote node
- From the Communications Server for Linux main menu, click Services --> APPC --> New remote node. The "Remote node" window opens.
- In the Node's SNA network name fields, specify the network qualified name of the control point at the remote node. Communications Server for Linux completes the first field for you by setting it to the network name ((4) and (13)) you entered earlier. In the second field, type the control point name ((14)).
- Click OK. A message is displayed informing you that a default LU has been defined automatically for the remote node.
- Click OK.
Defining a partner LU
- From the Communications Server for Linux main menu, click Services --> APPC --> New partner LUs --> Partner LU on remote node. The "Partner LU" window opens.
- In the Partner LU name fields, specify the network qualified name of the partner LU at the remote node. Communications Server for Linux completes the first field for you by setting it to the network name ((4) and (13)) you entered earlier. In the second field, type the name of the partner LU ((15)).
- In the Alias and Uninterpreted name fields, type the name of the partner LU ((15)) again.
- Click Location, select the network qualified name of the control point at the remote node ((13).(14)) from the list that is displayed, and click OK.
- Click OK.
Defining a link station
- From the Communications Server for Linux main menu, click Services --> Connectivity --> New link station. The following window opens.
- Set Link station to to MQPORT.
- Click OK. The "Token ring link station" window opens.
- In the Name field, type the name of the link station ((12)).
- Set Activation to On demand.
- Select the Independent only check box.
- Click Remote node, select the network qualified name of the control point at the remote node ((13).(14)) from the list that is displayed, and click OK.
- Set Remote node type to End or LEN node.
- In the MAC address field, type the MAC address ((19)) of the network adapter card at the remote node.
- Click Advanced. The "Token ring link station parameters" window opens.
- Select the Request CP-CP sessions check box.
- Select the Reactivate link station after failure check box.
- Click OK to exit the "Token ring link station parameters" window.
- Click OK to exit the "Token ring link station" window.
Defining a mode
This purpose of the section is to explain how to define a new mode with the name LU62PS. The example continues subsequently, however, by using the mode #INTER ((17)), which is a standard mode supplied by Communications Server for Linux.
- From the Communications Server for Linux main menu, click Services --> APPC --> Modes. The "Modes" window opens.
- Click New. The "Mode" window opens.
- In the Name field, type the name of the new mode, LU62PS.
- Click COS Name, select the class of service #INTER from the list that is displayed, and click OK.
- For the Session limits:
- Type 8 in the Initial field.
- Type 8 in the Maximum field.
- Type 4 in the Min con. winner sessions field.
- Click OK to exit the "Mode" window.
- Click Close to exit the "Modes" window.
Adding CPI-C information
- From the Communications Server for Linux main menu, click Services --> APPC --> CPI-C. The "CPI-C destination names" window opens.
- Click New. The "CPI-C destination" window opens.
- In the Name field, type the CPI-C symbolic destination name ((18)).
- Select the Use PLU alias check box, and type the name of the partner LU ((15)), which you specified earlier as the partner LU alias.
- In the Mode field, type the mode name ((17)).
- Select the Application TP check box, and type the TP name ((16)).
- Click OK to exit the "CPI-C destination" window.
- Click Close to exit the "CPI-C destination names" window.
Adding a TP definition
- From the Communications Server for Linux main menu, click Services --> APPC --> Transaction programs. The "Transaction Programs" window opens.
- Click New. The "TP invocation" window opens.
- Select the Application TP check box, and type the TP name ((7)).
- Clear the Queue incoming Allocates check box.
- In the Full path to TP executable field, type the full path to the executable program ((10)).
- In the Arguments field, type -m local queue manager ((11)).
- In the User ID and Group ID fields, type mqm.
- In the Environment field, type APPCLLU=local LU name ((5)) and APPCTPN=TP name ((7)) separated by the pipe character.
- Click OK to exit the "TP invocation" window.
- Click Selection --> Close TP window to exit the "Transaction Programs" window.
Communications Server for Linux operation
The Communications Server for Linux control daemon is started with the sna start command. Depending on the options selected at installation, it may already be running.
The xsnaadmin utility controls Communications Server for Linux resources.
Logging and tracing are controlled from here. Log and trace files can be found in the /var/opt/sna directory. The logging files sna.aud and sna.err can be read using a standard editor such as vi.
In order to read the sna1.trc trace file, first format it by running the command:
snatrcfmt -f sna1.trc -o sna1This produces an sna1.dmp file, which can be read using a normal editor. The sna2.trc trace file can be processed in the same way.
It is possible to edit the configuration file, but this is not a recommended method of configuring Communications Server for Linux.
The APPCLLU environment variable must be set before starting a sender channel from the Linux system. The command can be either entered interactively or added to the logon profile. Depending on the level of Bourne shell or Korn shell program being used, the command is:
export APPCLLU=Local LU name (5) newer levelor
APPCLLU=Local LU name (5) older level export
What next?
The connection is now established. You are ready to complete the configuration. Go to WebSphere MQ for Linux configuration.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.