9.4.3 Examples
Example 1:
There is a shared device server on the local host listening on port 3990 and we want to use its 0100
device as our 0100 device. The device statement will look like this:
0100 3390 localhost:3990:0100
Because the default port number is actually 3990 and the default remote device address is the same as
the local device number the above statement (providing we do not have actually a file named 'localhost' )
could be shortened as follows:
0100 3390 localhost
Example 2:
Device sharing can also be split between multiple instances. For example, suppose the following device
definitions and system parameter for instance A:
SHRDPORT 3990
0100 3390 localhost:3991
0101 3390 mvscat.dasd
And for instance B we have the following device definitions and system parameter:
SHRDPORT 3991
0100 3390 mvsres.dasd
0101 3390 localhost
In this case each instance acts as both a client and a server. Both instances of Hercules are running on
the same machine.
The above examples may be clearer if we specify also all the default values. To show this the same con-
figuration is used but in this case the Hercules instances are running on separate physical machines:
Hercules instance A (machine IP 192.168.200.1):
SHRDPORT 3990
0100 3390 192.168.200.2:3991:0100 # Remote on 192.168.200.2 (mvsres.dasd)
0101 3390 mvscat.dasd # Local on 192.168.200.1 (mvscat.dasd)
Hercules instance B (machine IP 192.168.200.2):
SHRDPORT 3991
0100 3390 mvsres.dasd # Local on 192.168.200.2 (mvsres.dasd)
0101 3390 192.168.200.1:3990:0101 # Remote on 192.168.200.1 (mvscat.dasd)