The LANDP link server enables LANDP workgroups to be linked over the TCP/IP network. This allows clients in one workgroup to access servers in another workgroup without any change being needed to the clients or servers. The LANDP link server can also be used to increase the number of clients supported by some servers to over 250.
To create a link between two workgroups the LANDP link server must be present in both workgroups and configured to export services from one workgroup and to import the same services into the other workgroup.
During this tutorial, you will configure 3 workstations split amongst pair of LANDP workgroups, and use the Link server to export a Shared File service from one workgroup to the other.
The LANDP Link server communicates over TCP/IP only, so it is important that all 3 workstations can communicate with each other over the Internet Protocol, IP. You should start by noting down the IP address of each workstation. The IP address is given on a Windows NT system by typing IPCONFIG at a command prompt. On a Linux or OS/2 system, the IP address is given by the IFCONFIG command.
You can test the IP connection between the workstations by typing PING ip-address.
Customization is split into 3 parts:
We must first prepare the Shared File server that will be exported. Open COMMON.SPC and enter the following vectors to define the record format the Shared File Server will use.
RECDEF |
NAME=LDPREC01, DELIMIT='/', DECSEP=',' |
RECFIELD  |
NAME=NAMES, LENGTH=20, FORMAT=C |
RECFIELD |
NAME=NUMBP, LENGTH=12, FORMAT=N |
RECFIELD |
NAME=BALS, LENGTH=12, FORMAT=P |
Next we will define the Shared File database definition that will use the above record format. Add the following vectors to COMMON.SPC:
SHFLDBD  |
SHFLPRF=LDPDATA, DBDNAME=LDPDBD, RECNAME=LDPREC01, KEY01=(NUMBP,P,N,,), KEY02=(NAMES,S,N,,), KEY03=(BALS,S,N,,), DBDPATH=C:\LDP\SHFL\, DBFLNAME=LDPDATA |
Shared File PCBs enable us to perform useful queries on a Shared File database. Add the following Vectors to define some PCBs:
SHFLPCB  |
PCBNAME=ACCNUMB, KEYFIELD=NUMBP |
SHFLPCB |
PCBNAME=ACCNAME, KEYFIELD=NAMES |
SHFLPCB |
PCBNAME=BALANCE, KEYFIELD=BALS |
Finally, add the following vectors to specify the distribution of the SVPCPRBN utility along with the LANDP files for each workstation:
SOFTPACK  |
PACKNAME=CONFTEST, FILENAME=EHCXLATE.DLL, |
SOFTPACK  |
PACKNAME=CONFTEST, FILENAME=SVPCPRBN.EXE, |
SOFTPACK  |
PACKNAME=CONFTEST, FILENAME=SVPCPRBN.HLP, |
We will now define the 3 workstations that make up the machines in the 2 workgroups. One workgroup, called WG1 will contain 2 machines, one of which will be a shared file client, the other a link server. The second workgroup, called WG2, will contain a single workstation running a shared file service.
Create 2 directories in EHCCUS called WG1 and WG2. Create a LANCONF.SPC file in WG1 containing the following vectors:
LANCONF  |
NAME=WG1, WSNAMES=(AA,AB), XPORT=T, SUFFIX=Y |
LWSCONF |
NAME=AA, TYPE=NT, SERVER=(EHCLINK,,N), PAR&LINK=(,,IP address of workstation BB), SES&LINK=(I,SHFILE01), SOFTPACK=CONFTEST |
LWSCONF |
NAME=AB, TYPE=NT, CLIENT=(SHFILE01,AA), SOFTPACK=CONFTEST |
Create another LANCONF.SPC file in WG1 containing the following vectors:
LANCONF  |
NAME=WG2, WSNAMES=(BB), XPORT=T, SUFFIX=Y |
LWSCONF |
NAME=BB, TYPE=NT, SERVER=(SHFILE01,,N), PAR&SHFL=(LDPDATA,,3), SERVER=(EHCLINK,,N), PAR&LINK=(), SES&LINK=(E,SHFILE01,BB), SOFTPACK=CONFTEST |
The next step is to validate the configuration files, then distribute the LANDP files to each workstation. The LANDP distribution stage is described in detail in part 4 of the LANDP Installation and Customization manual
If possible, you should make use of a shared network drive to distribute the LANDP files to multiple workstations.
Because the workgroups are communicating over TCP/IP, you must associate the LANDP workstation names with their IP addresses. The simplest way to do this is to configure the "hosts" file on each system. On most Windows NT systems, the "hosts" file is available in C:\WINDOWS\SYSTEM32\DRIVERS\ETC\. Add the following lines to the file named "hosts" on all of the workstations:
IP address of workstation AA     LIP-AAWG1
IP address of workstation AB     LIP-ABWG1
IP address of workstation BB     LIP-BBWG2
More information on the configuration of the LANDP TCP/IP support is available in Appendix E of the LANDP Installation and Customization Manual.
Once all of the workstations have their LANDP files installed, you should start LANDP on each of the workstations.
When starting workstation BB, remember to set the LOGPATH environment and generate the Shared File log as follows:
SET LOGPATH=.
GENLOG
Shared File server log management is described in detail on page 92 of the LANDP Servers and System Management manual.
Workstation AB now has the Shared File service available to it, exported from workgroup WG1. You should test the link by adding some records to the Shared File server from AB using the SVPCPRB program. Please see the Basic Shared File Tutorial for more information on using the Shared File server.