Previous PageNext Page

Chapter 14 - Interprocess Communications for OS/2 Workstations

Providing Named Pipe Software Support for OS/2 Workstations

1. Log in to the network.

2. At an OS/2 command prompt, enter vclient. The VINES Installation Options screen, Figure 14-1, appears.

Figure 14-1. VINES Installation Options Screen

3. Select CHANGE Additional Software. The Additional Software Selections screen, Figure 14-2, appears. Software already installed at this workstation is marked with an asterisk (*).

Figure 14-2. Additional Software Selections Screen

4. Add or remove software according to directions on the screen. When you finish making your changes, press F10. The VINES Installation Options screen appears, which shows your changes.

Example Selecting Named Pipe Client Support Software

Figure 14-3. VINES Installation Options Screen

5. Press F10 to confirm the changes.

If the installation of the selected software requires changes to the CONFIG.SYS file, the Update CONFIG.SYS screen appears with the LIBPATH and SETPATH statements highlighted, as shown in Figure 14-4.

Figure 14-4. Update CONFIG.SYS Screen

6. To enable the workstation, select SAVE new file as CONFIG.SYS. The VINES Installation Complete screen appears.

Setting Up Named Pipe Servers and Clients

Table 14-1. Named Pipe Software Requirements

Starting Up an OS/2 Named Pipe Server

Start up a server application manually
Run a command file

BAN to log in to the network using your StreetTalk name and password
SETNETB, specifying the computer name of the workstation and the StreetTalk name of the Netbios registration service
NPSERVER, starting the NPSERVER as a detached process and enabling the server application to receive Named Pipe requests from client applications

To Manually Start Up an OS/2 Workstation to Run a Named Pipe Server Application

1. At an OS/2 workstation on which VINES is installed, change to the VINES directory and enter ban.

2. Log in to the network using your StreetTalk name and user password.

3. At the command prompt, enter the SETNETB command, specifying both the workstation's computer name, and the name of the Netbios service, as shown below:

setnetb /name:my_computer Netbios_service@group@org

4. At the command prompt, enter:

detach npserver

To Create a Command File to Start Up an OS/2 Workstation

1. Create a login command file that contains the VINES BAN, SETNETB, and detach NPSERVER commands. If you want this command file to run when the workstation boots, name it C:\STARTUP.CMD. For example:

ban
setnetb /name:my_computer Netbios_service@group@org
detach npserver

2. Reboot the workstation.

Using the NPCTL Utility

Starting Up OS/2 Named Pipe Clients

Start up a client manually.
Run a command (or batch) file.

BAN to log in to the network using your StreetTalk name and password
SETNETB to specify the computer name of the workstation and the StreetTalk name of the Netbios service

To Manually Start Up an OS/2 Workstation to Run a Named Pipe Client Application

1. At an OS/2 workstation on which VINES and Named Pipe software is installed, change to the VINES directory and enter ban.

2. Log in to the network using your StreetTalk name and user password.

3. At the command prompt, enter the SETNETB command, specifying both the workstation's computer name and the name of the Netbios service:

setnetb /name:my_computer Netbios_service@group@org

To Create a Command File to Start Up a Named Pipe Client Application

1. Create a login command file that contains the VINES BAN and SETNETB commands. If you want this command file to run when the workstation boots, name it STARTUP.CMD. For example:

ban
setnetb /name:my_computer Netbios_service@group@org

2. Reboot the workstation.

Creating Distributed Application Command Files

The Banyan server containing the file service, DBfiles@MIS@WCTUS, and a Netbios service, DBnames@MIS@WCTUS
The Named Pipe application servers, SVR1 and SVR2
The Named Pipe application clients, DOS_CL1, OS2_CL2, and WIN_CL3

Figure 14-5. Named Pipe Distributed Application Example

Role of the Banyan Server

setdrive m DBfiles@MIS@WCTUS

setnetb /name:anyname DBnames@MIS@WCTUS

Role of the Named Pipe Application Server

Table 14-2. Named Pipe Application Server Roles

Roles of Named Pipe Application Clients

Table 14-3. Named Pipe Application Server Roles

Sample Command Files

Note: When installing Name Piped applications, you may be asked to specify the type of installation. Always specify Banyan software. If this selection is not available, call the application vendor for further instructions.

Command File for Named Pipe Application Servers

c:
cd vines
ban
setnetb /name:SVR1 NBNames@MIS@WCTUS
detach npservecd myapp
myapp -data M:myappdatamaster.dat - query

Table 14-4. Command File for SVR1 Elements

A similar command file can be used for SVR2, except that this command file executes a different portion of the application server software:

c:cd vines
ban
setnetb /name:SVR2 NBNames@MIS@WCTUS
detach npserver
cd myapp
myapp -data m:myappdatamaster.dat -control

Restarting Distributed Applications Using a Command File

c:cd vines
ban < login1.txt
setnetb /name:SVR2 NBNames@MIS@WCTUS
detach npserver
cd myapp
ppdatamaster.dat -control

Command File for the DOS_CL1 Application Client

c:cd vines
ban
setnetb /name:DOS_CL1 NBNames@MIS@WCTUS
j:
cd myapp
myapp

Table 14-5. DOS_CL1 Command File Elements

Command File for the OS2_CL2 Application Client

c:cd vines
ban
setnetb /name:OS2_CL2 NBNames@MIS@WCTUS
j:
cd myapp
myclient.app

Table 14-6. OS2_CL2 Command File Elements

Command File for the WIN_CL3 Application Client Under Windows

c:cd vines
ban
setnetb /name:WIN_CL3 NBNames@MIS@WCTUS
c:
cd windows
win

Table 14-7. WIN_CL3 Command File Elements

Installing and Configuring Banyan Netbios for OS/2

NetBiosSubmitTM - from NETAPI.DLL
Netbios - from ACSNETB.DLL

Pre-installation Requirements

IBM LAN software
Banyan Netbios software

IBM LAN Software

LAN Enabler 2.0 for OS/2 2.0
LAN Requester 3.0 for OS/2 2.1

Note: LAN Requester 3.0 is currently only available as a "distributed feature" of LAN Server 3.0 and requires "LAPS from NTS/2" software. Contact your IBM support provider for information on obtaining this software.

Upgrading Your Workstation

Installing Banyan Netbios

1. Installing IBM Netbios support

2. Updating Banyan client drivers

3. Installing and configuring the new VNSNETB2.SYS device driver

4. Updating the new PROTOCOL.INI and IBMLAN.INI files to use the new device driver. (This step is divided into two parts, depending on the IBM software you install.)

5. Specifying the Netbios name service to use

Installing IBM Netbios Support

To Update the Client Drivers

1. Reboot the workstation without loading Banyan network client software. It may be necessary to modify your workstation startup configuration.

2. Overwrite the existing files with the new versions supplied with this release.

3. Restore the startup configuration to load Banyan network client.

4. Reboot the workstation and verify that network functions operate normally.

To Install the VNSNETB2.SYS Driver and NBDAEMON.EXE

1. Copy the VNSNETB2.SYS driver to your workstation. You can copy the file to the same directory that contains other Banyan OS/2 client drivers.

2. Use a text editor to open the workstation CONFIG.SYS file.

3. Add the following line after the existing Banyan section:

DEVICE=C:\VINES\VNSNETB2.SYS

This example assumes C:\VINES is the directory containing Banyan OS/2 client software.

4. Add the following line after the DEVICE= statements:

RUN=C:\VINES\NBDAEMON.EXE

This example assumes C:\VINES is the directory containing Banyan OS/2 client software.

5. Save the CONFIG.SYS file and exit the text editor.

6. Reboot the workstation and verify that the network functions operate normally.

To Edit the PROTOCOL.INI File for an OS/2 Workstation

1. Use a text editor to open the PROTOCOL.INI file. This file is located in the C:\IBMCOM directory.

2. Add the following section if it does not already exist:

[NETBIOS]

3. Add the Banyan Netbios driver using this format:

= ,

For example:

[NETBIOS]
DriverName = NETBIOS$
Adapter0 = VNSNETB$, 0

4. Save and close the PROTOCOL.INI file.

To Edit the IBMLAN.INI File

Figure 14-6. Sample IBMLAN.INI File

Table 14-8. LAN Enabler/LAN Requester [NETWORKS] Section of a Sample IBMLAN.INI Configuration File

Note: The number of Names, Sessions, and NCBs configured here are allocated from the central pool of resources for the specified adapter in PROTOCOL.INI. This reduces the number of resources reported by NETBIOS.OS2 to the remainder.

Specifying the Name Service

Use the SETNETB command from an OS/2 session
Add a SETNETB statement to the user profile

Note: Using Netbios prior to running SETNETB causes the IBM Netbios driver to stop. You must reboot the workstation and run SETNETB first.

Configuring VNSNETB2.SYS

Table 14-9. Parameters in [VNSNETB_nif]

Previous PageTop Of PageNext Page