1992.5.10 SUBJECT: SNA3270 6.0 install script sun3# extract_unbundled Enter media drive location [local | remote]: local Enter Device Name (e.g. rst0, rmt0, rfd0c) : /dev/rst0 **Please mount the release media if you haven't done so already.** Press return when ready: The following product will be installed: 3+0 records out 6.1 SunLink(TM) SNA3270 Sun-2(TM) Sun-3(TM) Sun-4(TM) Sun386i(TM) SUNBIN 1/4" Tape (tar format, QIC 11/9TRK ) 1 of 1 Part Number: 700-2172-10 Rev.A Compatible with the SunOS 4.0 release Copyright (c) 1986-1989, Sun Microsystems, Inc. All Rights Reserved. Sun considers its source code as an unpublished, proprietary trade secret, and it is available only under strict license provisions. This copyright notice is placed here only to protect Sun in the event the source is deemed a published work. Dissassembly, decompilation, or other means of reducing the object code to human readable form is prohibited by the license agreement under which this code is provided to the user or company in possession of this copy. RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 52.227-7013 and in similar clauses in the FAR and NASA FAR Supplement. Do you want to continue [y|n]? y /usr/etc/extract_unbundled : Extracting Installation Scripts x ./install_SunLink, 26413 bytes, 52 tape blocks x ./install_unbundled, 1674 bytes, 4 tape blocks x ./parameters_SunLink, 3213 bytes, 7 tape blocks /usr/etc/extract_unbundled : Begin Install Script Execution Invoking /usr/tmp/unbundled/install_SunLink Log file is /usr/tmp/unbundled/6.1_SNA3270.log Do you want to see a description of this installation script? [y|n] y Installs sunlink/sna3270, sunlink/mapper, sunlink/sync directories. The following are Software Requirements for 6.1 SunLink SNA3270: SunLink 3270 client software. The following are Hardware Requirements for 6.1 SunLink SNA3270: A communications port (local port or see Optional Hardware). The following are Optional Software for 6.1 SunLink SNA3270: None. The following are Optional Hardware for 6.1 SunLink SNA3270: SCP (Sun-2 or Sun-3) or MCP (Sun-3 or Sun-4). Do you want to continue? [y|n] y Here is the Current Free Disk space: Filesystem kbytes used avail capacity Mounted on /dev/sd0a 7431 6072 615 91% / /dev/sd0g 106047 79742 15700 84% /usr This software requires 500 kbytes of disk space (per architecture). Do you want to continue? [y|n] y 6.1_SNA3270 : This software is compatible with these operating systems: 4.0 Check this product's READ THIS FIRST for the most current statement on its SunOS compatibility. Do you want to continue? [y|n] y Enter system type [standalone | server]: standalone Using /export/exec to install sun3 software to /usr since /export/exec/sun3 is a link to /usr. Ready to install 6.1 SunLink SNA3270 in /export/exec/sun3. Do you want to continue? [y|n] y Extracting software... x sun3/sunlink/sync/MAKEDEV.sunlink, 764 bytes, 2 tape blocks x sun3/sunlink/sync/iflayer, 16384 bytes, 32 tape blocks x sun3/sunlink/sync/ifmptp, 16384 bytes, 32 tape blocks x sun3/sunlink/sync/syncinit, 16384 bytes, 32 tape blocks x sun3/sunlink/sync/syncstat, 16384 bytes, 32 tape blocks x sun3/sunlink/sync/syncloop, 16384 bytes, 32 tape blocks x sun3/sunlink/mapper/rc.local.add, 217 bytes, 1 tape blocks x sun3/sunlink/mapper/install.maps, 6385 bytes, 13 tape blocks x sun3/sunlink/mapper/sunlink_mapper_xdr.o, 9346 bytes, 19 tape blocks x sun3/sunlink/mapper/get_sunlink_ent.o, 9929 bytes, 20 tape blocks x sun3/sunlink/mapper/sunlink_mapper, 16384 bytes, 32 tape blocks x sun3/sunlink/mapper/include/get_sunlink_ent.h, 473 bytes, 1 tape blocks x sun3/sunlink/mapper/yp/sample, 117 bytes, 1 tape blocks x sun3/sunlink/mapper/yp/makefile.sunlink, 875 bytes, 2 tape blocks x sun3/sunlink/sna3270/c3274.hdx, 250 bytes, 1 tape blocks x sun3/sunlink/sna3270/envset.snahost1, 209 bytes, 1 tape blocks x sun3/sunlink/sna3270/startsna, 3249 bytes, 7 tape blocks x sun3/sunlink/sna3270/stopsna, 371 bytes, 1 tape blocks x sun3/sunlink/sna3270/sna3274, 114688 bytes, 224 tape blocks x sun3/sunlink/sna3270/snopts, 24576 bytes, 48 tape blocks x sun3/sunlink/sna3270/install/install.sna3270.gateway, 19951 bytes, 39 tape blocks x sun3/sunlink/sna3270/install.sna3270, 1948 bytes, 4 tape blocks x sun3/sunlink/sna3270/sys/sun3/OBJ/sdlc.o, 2926 bytes, 6 tape blocks x sun3/sunlink/sna3270/sys/sun3/OBJ/sdlc_ctl.o, 4190 bytes, 9 tape blocks x sun3/sunlink/sna3270/sys/sun3/OBJ/sdlc_in.o, 4417 bytes, 9 tape blocks x sun3/sunlink/sna3270/sys/sun3/OBJ/sdlc_out.o, 1401 bytes, 3 tape blocks x sun3/sunlink/sna3270/sys/sun3/OBJ/zs_isdlc.o, 12324 bytes, 25 tape blocks x sun3/sunlink/sna3270/sys/sun3/OBJ/ifdev.o, 4693 bytes, 10 tape blocks x sun3/sunlink/sna3270/sys/netsdlc/sdlc.h, 8138 bytes, 16 tape blocks x sun3/sunlink/sna3270/sys/netsdlc/sdlc_conf.c, 603 bytes, 2 tape blocks x sun3/sunlink/sna3270/sys/GENERIC.add, 80 bytes, 1 tape blocks x sun3/sunlink/sna3270/sys/files.add, 392 bytes, 1 tape blocks x sun3/sunlink/sna3270/sys/sun/wrapxxx.h, 889 bytes, 2 tape blocks x sun3/sunlink/sna3270/sys/sun/kern_wrapxxx.c, 1280 bytes, 3 tape blocks 3+0 records in 3+0 records out install_SunLink : **** Installation Completed **** sun3# cd /usr sun3# ls 5bin/ dict/ kvm/ net@ stand@ ucbinclude@ 5include/ etc/ lib/ nserve@ sunlink/ ucblib@ 5lib/ export/ local/ pub@ sys@ xpg2bin/ adm@ hosts/ lost+found/ share/ tmp/ xpg2include/ bin/ include/ man@ spool@ tputil/ xpg2lib/ boot@ kth/ mdec@ src@ ucb/ sun3# cd sunlink sun3# ls -al total 5 drwxr-xr-x 5 root 512 Dec 2 1988 ./ drwxr-xr-x 24 root 1024 Dec 2 1988 ../ drwxr-xr-x 4 root 512 Oct 27 1988 mapper/ drwxr-xr-x 4 root 512 Oct 27 1988 sna3270/ drwxr-xr-x 2 root 512 Oct 27 1988 sync/ sun3# extract_unbundled Enter media drive location [local | remote]: local Enter Device Name (e.g. rst0, rmt0, rfd0c) : /dev/rst0 **Please mount the release media if you haven't done so already.** Press return when ready: The following product will be installed: 6.1 SunLink(TM) SNA3270 Sun-2(TM) Sun-3(TM) Sun-4(TM) Sun386i(TM) SUNBIN 1/4" Tape (tar format, QIC 11/9TRK ) 1 of 1 Part Number: 700-2172-10 Rev.A Compatible with the SunOS 4.0 release Copyright (c) 1986-1989, Sun Microsystems, Inc. All Rights Reserved. Sun considers its source code as an unpublished, proprietary trade secret, and it is available only under strict license provisions. This copyright notice is placed here only to protect Sun in the event the source is deemed a published work. Dissassembly, decompilation, or other means of reducing the object code to human readable form is prohibited by the license agreement under which this code is provided to the user or company in possession of this copy. RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 52.227-7013 and in similar clauses in the FAR and NASA FAR Supplement. Do you want to continue [y|n]? y /usr/etc/extract_unbundled : Extracting Installation Scripts tar: blocksize = 80 x install_SunLink, 26413 bytes, 52 tape blocks x install_unbundled, 1674 bytes, 4 tape blocks x parameters_SunLink, 3114 bytes, 7 tape blocks /usr/etc/extract_unbundled : Begin Install Script Execution Invoking /usr/tmp/unbundled/install_SunLink Log file is /usr/tmp/unbundled/6.1_3270.log Do you want to see a description of this installation script? [y|n] y Installs sunlink/3270 and sunlink/dai directories. The following are Software Requirements for 6.1 SunLink 3270: A SunLink 3270 gateway (SNA3270, BSC3270, LCL3270). The following are Hardware Requirements for 6.1 SunLink 3270: None. The following are Optional Software for 6.1 SunLink 3270: None. The following are Optional Hardware for 6.1 SunLink 3270: None. Do you want to continue? [y|n] y Here is the Current Free Disk space: Filesystem kbytes used avail capacity Mounted on /dev/sd0a 7431 6080 607 91% / /dev/sd0g 106047 80120 15322 84% /usr This software requires 700 kbytes of disk space (per architecture). Do you want to continue? [y|n] y 6.1_3270 : This software is compatible with these operating systems: 4.0 Check this product's READ THIS FIRST for the most current statement on its SunOS compatibility. Do you want to continue? [y|n] y Enter system type [standalone | server]: standalone Using /export/exec to install sun3 software to /usr since /export/exec/sun3 is a link to /usr. Ready to install 6.1 SunLink 3270 in /export/exec/sun3. Do you want to continue? [y|n] y Extracting software... x sun3/sunlink/3270/thprog.c, 2491 bytes, 5 tape blocks x sun3/sunlink/3270/thprog.o, 1102 bytes, 3 tape blocks x sun3/sunlink/3270/te3278, 122880 bytes, 240 tape blocks x sun3/sunlink/3270/scinit, 49152 bytes, 96 tape blocks x sun3/sunlink/3270/kyinit, 81920 bytes, 160 tape blocks x sun3/sunlink/3270/ibmftp, 24576 bytes, 48 tape blocks x sun3/sunlink/3270/pe3287, 81920 bytes, 160 tape blocks x sun3/sunlink/3270/KYI3278.std, 1228 bytes, 3 tape blocks x sun3/sunlink/3270/KYI3278.sun, 1339 bytes, 3 tape blocks x sun3/sunlink/3270/KYI3278.alt1, 1317 bytes, 3 tape blocks x sun3/sunlink/3270/KYI3278.alt2, 1246 bytes, 3 tape blocks x sun3/sunlink/3270/KYD3278.std, 1276 bytes, 3 tape blocks x sun3/sunlink/3270/KYD3278.sun, 1857 bytes, 4 tape blocks x sun3/sunlink/3270/KYD3278.alt1, 1914 bytes, 4 tape blocks x sun3/sunlink/3270/KYD3278.alt2, 1573 bytes, 4 tape blocks x sun3/sunlink/3270/SCI3278.2621, 37 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.4415, 260 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.513, 217 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.5410m2, 252 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.5410, 177 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.910, 953 bytes, 2 tape blocks x sun3/sunlink/3270/SCI3278.970, 736 bytes, 2 tape blocks x sun3/sunlink/3270/startpe, 1851 bytes, 4 tape blocks x sun3/sunlink/3270/SCI3278.970rv, 654 bytes, 2 tape blocks x sun3/sunlink/3270/SCI3278.adm31, 188 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.adm3a, 42 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.cP, 471 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.cPdim, 458 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.la, 41 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.sun, 214 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.vt100, 652 bytes, 2 tape blocks x sun3/sunlink/3270/SCI3278.wy100, 330 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.wy50rv, 228 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.wy50dim, 232 bytes, 1 tape blocks x sun3/sunlink/3270/SCI3278.vz, 412 bytes, 1 tape blocks x sun3/sunlink/3270/te3278.icon, 1933 bytes, 4 tape blocks x sun3/sunlink/3270/startte, 4328 bytes, 9 tape blocks x sun3/sunlink/3270/startte.19, 1098 bytes, 3 tape blocks x sun3/sunlink/3270/run_ky, 1333 bytes, 3 tape blocks x sun3/sunlink/3270/run_sc, 1890 bytes, 4 tape blocks x sun3/sunlink/3270/KYI3278.sun-cmd, 1339 bytes, 3 tape blocks x sun3/sunlink/3270/SCI3278.sun-cmd, 214 bytes, 1 tape blocks x sun3/sunlink/dai/dai.h, 6960 bytes, 14 tape blocks x sun3/sunlink/dai/dai_test.c, 18108 bytes, 36 tape blocks x sun3/sunlink/dai/DAILIB.a, 23050 bytes, 46 tape blocks x sun3/sunlink/dai/DAILIB.debug.a, 135784 bytes, 266 tape blocks 3+0 records in 3+0 records out install_SunLink : **** Installation Completed **** sun3# cd /usr/sunlink sun3# ls -al total 7 drwxr-xr-x 7 root 512 Jul 5 1989 ./ drwxr-xr-x 24 root 1024 Jul 5 1989 ../ drwxr-xr-x 2 70 1024 Oct 27 1988 3270/ drwxr-xr-x 2 70 512 Oct 27 1988 dai/ drwxr-xr-x 4 root 512 Oct 27 1988 mapper/ drwxr-xr-x 4 root 512 Oct 27 1988 sna3270/ drwxr-xr-x 2 root 512 Oct 27 1988 sync/ sun3# cd sna3270 sun3# ls c3274.hdx install.sna3270* startsna* envset.snahost1 sna3274* stopsna* install/ snopts* sys/ sun3# install.sna3270 This script installs the SunLink SNA3270 product. The script does the following: 1. Optionally, invokes the kernel building script install.sna3270.kernel. 2. Optionally, invokes the gateway configuring script install.sna3270.gateway. Do you want to configure a new kernel? [y or n]: y This script installs the kernel-related portions of the SNA3270 product. The script does the following: 1. Builds a new kernel that contains the pseudo-device entries used by SNA3270. 2. Optionally, creates the /dev/ifd entries used by SNA3270. NOTE: This script adds the device drivers required to use a local port. This script does not add the SCP or MCP device drivers required if you wish to run SNA3270 using either SCP or MCP ports. If you wish to use an SCP or MCP port, you must install that product separately. You will need to supply the following information: 1. An existing kernel configuration filename (eg, GENERIC). Using that file as a base, the SNA3270 pseudo-device entries will be added. 2. You may specify a new name for this modified kernel configuration. Do you have this information and wish to continue? [y or n]: y Enter the name of an existing kernel configuration file [GENERIC]: y The configuration file /usr/kvm/sys/sun3/conf/y doesn't exist. You may either abort this script or enter a configuration file that exists. Do you wish to abort? [y or n]: n Enter the name of an existing kernel configuration file [GENERIC]: What do you wish to call the kernel configuration file after the SNA3270 pseudo-device entries are added? [SNA3270]: Updating kernel configuration file. Adding ifd entry to configuration file. Adding sdlcline entry to configuration file. Adding zsi entry to configuration file. Updating system modules in /usr/kvm/sys Not installing wrapxxx.h and kern_wrapxxx.c in /usr/kvm/sys/sun Updating /usr/kvm/sys/sun3/conf/files Configuring kernel...this can take up to several minutes. Compiling/loading kernel...this can take up to several minutes. /usr/kvm/sys/sun3/SNA3270/vmunix has been built. This new vmunix should be copied to /newvmunix and then booted single user mode to test it before installing it as /vmunix. Do you wish to create /dev/ifd entries? [y or n]: y Adding entries to /dev. Do you want to configure a new gateway? [y or n]: y This script installs the gateway-related portions of the SNA3270 product. The script does the following: 1. Creates the snopts configuration files for the gateway. 2. Creates the envset.gateway configuration file. 3. Disables logins on a local port if necessary. 4. Optionally, adds lines to /etc/rc.local to start the sunlink_mapper. 5. On the Sun 386i, adds lines to /etc/rc.local to load the loadable device drivers. You will need to supply the following information: 1. The name of this SNA3270 gateway. 2. The XID for the 3270 controller this gateway is emulating. 3. The polling (station) address of the controller this gateway is emulating. 4. Whether the link/modems are full or half duplex. 5. Whether this gateway is on a multidrop or point-to-point link. 6. Whether the link protocol uses NRZI or NRZ mode. 7. How many 3270 devices this gateway supports. 8. Model number of each 3270 device on the gateway. 9. Access control information for each 3270 device on the gateway. 10. Which port (local, mcp or scp) this gateway will use. With the exception of items 1, 9, and 10, the above information should be obtained from the person in charge of your mainframe's system generation (sysgen) procedures. You decide the gateway name, access control desired, and which port to use. The default is to give the gateway the same name as the hostname of the machine it runs on and not to restrict access at the gateway, but rely on the standard mainframe access control procedures. There is no default port; you must specify which port to use. Do you have this information and wish to continue? [y or n]: y What is the name of this SNA3270 gateway? [sun3]: hyundai-ibm Does the mainframe require an XID exchange? [y or n]: n What is the hexadecimal polling (station) address? [01-FE]: c1 Is the link/modem half duplex? [y or n]: n Is the link point-to-point? [y or n]: y Does the link use NRZI (ie, NRZI=YES) encoding? [y or n]: y Please verify the following information: The mainframe does not require an XID exchange. The gateway's polling (station) address is c1 (in hexadecimal). The communication link/modems are full duplex. The link is a point-to-point link. The link does use NRZI bit-encoding (NRZI=YES). Is the above information correct? [y or n]: y How many 3270 devices does this gateway support? [1 to 32]: 32 The default configuration is a control unit that supports 32 devices, all of which are model 2's with unlimited access. Do you wish to modify this default configuration? [y or n]: n Compiling /etc/sunlink/sna3270/gateway/c3274.hyundai-ibm using 'snopts' utility. /etc/sunlink/sna3270/gateway/C3274.hyundai-ibm is the output file. snopts info saved in /etc/sunlink/sna3270/gateway/snopts.info.hyundai-ibm. Do you wish to see the snopts info? [y or n]: y SNA/SDLC 3274 CONTROLLER CONFIGURATION 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 xid = 0200017fffff station address = c1 full duplex nrzi point-to-point lu 00 access: everyone lu 01 access: everyone lu 02 access: everyone lu 03 access: everyone lu 04 access: everyone lu 05 access: everyone lu 06 access: everyone lu 07 access: everyone lu 08 access: everyone lu 09 access: everyone lu 10 access: everyone lu 11 access: everyone lu 12 access: everyone lu 13 access: everyone lu 14 access: everyone lu 15 access: everyone lu 16 access: everyone lu 17 access: everyone lu 18 access: everyone lu 19 access: everyone lu 20 access: everyone lu 21 access: everyone lu 22 access: everyone lu 23 access: everyone lu 24 access: everyone lu 25 access: everyone lu 26 access: everyone lu 27 access: everyone lu 28 access: everyone lu 29 access: everyone lu 30 access: everyone lu 31 access: everyone What type of port will this gateway use for SNA3270 emulation? Specify your choice [local, scp, or mcp]: local Which local port? [a or b]: a Data will be saved in /etc/sunlink/sna3270/gateway/envset.hyundai-ibm. Do you wish to add sunlink_mapper to /etc/rc.local? [y or n]: y Contents of ../mapper/rc.local.add have been added to /etc/rc.local. The sunlink_mapper will now be run automatically at boot time. Do you wish to start the sunlink_mapper at this time? [y or n]: y [1] 857 Do you want to configure another new gateway? [y or n]: n sun3# cd /dev sun3# ls -l ifd* crw------- 1 root 45, 0 Sep 26 10:29 ifd0 crw------- 1 root 45, 1 Sep 26 10:29 ifd1 crw------- 1 root 45, 10 Sep 26 10:29 ifd10 crw------- 1 root 45, 11 Sep 26 10:29 ifd11 crw------- 1 root 45, 13 Sep 26 10:29 ifd13 crw------- 1 root 45, 14 Sep 26 10:29 ifd14 crw------- 1 root 45, 15 Sep 26 10:29 ifd15 crw------- 1 root 45, 2 Sep 26 10:29 ifd2 crw------- 1 root 45, 3 Sep 26 10:29 ifd3 crw------- 1 root 45, 4 Sep 26 10:29 ifd4 crw------- 1 root 45, 5 Sep 26 10:29 ifd5 crw------- 1 root 45, 6 Sep 26 10:29 ifd6 crw------- 1 root 45, 7 Sep 26 10:29 ifd7 crw------- 1 root 45, 8 Sep 26 10:29 ifd8 crw------- 1 root 45, 9 Sep 26 10:29 ifd9 sun3# chmod 666 ifd* sun3# ls -l ifd* crw-rw-rw- 1 root 45, 0 Sep 26 10:29 ifd0 crw-rw-rw- 1 root 45, 1 Sep 26 10:29 ifd1 crw-rw-rw- 1 root 45, 10 Sep 26 10:29 ifd10 crw-rw-rw- 1 root 45, 11 Sep 26 10:29 ifd11 crw-rw-rw- 1 root 45, 12 Sep 26 10:29 ifd12 crw-rw-rw- 1 root 45, 13 Sep 26 10:29 ifd13 crw-rw-rw- 1 root 45, 14 Sep 26 10:29 ifd14 crw-rw-rw- 1 root 45, 15 Sep 26 10:29 ifd15 crw-rw-rw- 1 root 45, 2 Sep 26 10:29 ifd2 crw-rw-rw- 1 root 45, 3 Sep 26 10:29 ifd3 crw-rw-rw- 1 root 45, 4 Sep 26 10:29 ifd4 crw-rw-rw- 1 root 45, 5 Sep 26 10:29 ifd5 crw-rw-rw- 1 root 45, 6 Sep 26 10:29 ifd6 crw-rw-rw- 1 root 45, 7 Sep 26 10:29 ifd7 crw-rw-rw- 1 root 45, 8 Sep 26 10:29 ifd8 crw-rw-rw- 1 root 45, 9 Sep 26 10:29 ifd9 sun3# cd /usr/etc sun3# ls -la sunlink* -rwxr-xr-x 1 root 4354 Feb 8 1990 sunlink.install* sun3# cd / sun3# cp vmunix vmunix.org sun3# cd /usr/sys/sun3 sun3# ls OBJ/ clock.h eccreg.h machine@ psl.h setjmp.h SNA3270/ conf/ eeprom.h memerr.h pte.h trap.h a.out.h cpu.h enable.h mmu.h reg.h udvma.h asm_linkage.h dbx_machdep.c frame.h param.h scb.h vm_hat.h buserr.h diag.h interreg.h pcb.h seg_kmem.h vmparam.h sun3# cd SNA3270 sun3# ls -l vmunix -rwxr-xr-x 1 root 1220086 Sep 26 10:24 vmunix* sun3# mv vmunix /vmunix sun3# sync sun3# sync sun3# reboot sun3# cd /usr/sunlink/mapper sun3# ls get_sunlink_ent.o install.maps* sunlink_mapper* yp/ include/ rc.local.add* sunlink_mapper_xdr.o sun3# install.maps . The Yellow Pages map for 3270s.byname, rjes.byname, appcs.byname, or hfds.byname. This machine must be the YP master for that map. or . The local /etc/3270s, /etc/rjes, /etc/appcs, or /etc/hfds file. Other machines wishing to reflect these changes must have their local /etc files updated in the manner determined by your installation. You will need to supply the following information: 1. The name of the map to be updated. 2. Whether this is a Yellow Page or a local update. 3. The gateway name for the entry to be added or removed. When adding an entry, you are also prompted for the machine name and a comment. Do you have this information and wish to continue? [y or n]: y What SunLink map is to be updated? Specify your choice (3270s, rjes, appcs, or hfds): 3270s Are you updating the Yellow Pages map? [y or n]: n Current /etc/3270s saved as /etc/3270s.bak. Do you want to add or remove a /etc/3270s entry? [y or n]: y What is the name of the 3270s gateway? hyundai-ibm What is the name of the machine that this gateway runs on? hyundai-sun What comment would you like to include for this gateway? SUN3/60 Entry to be added: hyundai-ibm hyundai-sun:hyundai-ibm #SUN3/60 OK to add hyundai-ibm entry? [y or n]: y Adding hyundai-ibm entry. Do you want to add or remove a /etc/3270s entry? [y or n]: n Only the local copy of /etc/3270s has been updated. You must also update any other system wishing to access this info. sun3# cd .. sun3# ls 3270/ dai/ mapper/ sna3270/ sync/ sun3# cd sna3270 sun3# ls -l total 155 -rw-r--r-- 1 root 250 Oct 27 1988 c3274.hdx -rw-r--r-- 1 root 209 Oct 27 1988 envset.snahost1 drwxr-xr-x 2 root 512 Oct 27 1988 install/ -rwxr-xr-x 1 root 1948 Oct 27 1988 install.sna3270* -rwxr-xr-x 1 root 114688 Oct 27 1988 sna3274* -rwxr-xr-x 1 root 24576 Oct 27 1988 snopts* -rwxr-xr-x 1 root 3249 Oct 27 1988 startsna* -rwxr-xr-x 1 root 371 Oct 27 1988 stopsna* drwxr-xr-x 5 root 512 Oct 27 1988 sys/ sun3# vi envset.snahost1 # # Sample SunLink SNA 3270 gateway environment setup file. # # Usage : source /usr/sunlink/sna3270/envset.gateway # setenv P3274 snahost1 setenv C3274 /usr/sunlink/sna3270/C3274.$P3274 setenv S3274 /dev/ifd0 sun3# cd ../3270 sun3# ls KYD3278.alt1 KYI3278.sun-cmd SCI3278.970 SCI3278.sun-cmd pe3287* te3278.icon KYD3278.alt2 SCI3278.2621 SCI3278.970rv SCI3278.vt100 run_ky* thprog.c KYD3278.std SCI3278.4415 SCI3278.adm31 SCI3278.vz run_sc* thprog.o KYD3278.sun SCI3278.513 SCI3278.adm3a SCI3278.wy100 scinit* KYI3278.alt1 SCI3278.5410 SCI3278.cP SCI3278.wy50dim startpe* KYI3278.alt2 SCI3278.5410m2 SCI3278.cPdim SCI3278.wy50rv startte* KYI3278.std SCI3278.910 SCI3278.la ibmftp* startte.19* KYI3278.sun SCI3278.924 SCI3278.sun kyinit* te3278* sun3# kyinit -k KYI3278.sun -o ky3278.sun name=KY_CARAT number=97 length=0 two key-strings have the same value. name=KY_ENTER number=118 length=1 name=KY_ENTER1 number=118 length=1 two key-strings have the same value. name=KY_ENTER number=118 length=1 name=KY_ENTER1 number=118 length=1 LENGTH OF OUTPUT FILE ky3278.sun IS 1754 BYTES, 217 NODES sun3# scinit -s SCI3278.sun -o sc3278.sun 964 bytes written to sc3278.sun sun3# startsna hyundai-ibm sun3# startte hyundai-ibm sun3# pwd /usr/sunlink/3270 sun3# ls KYD3278.alt1 KYI3278.sun-cmd SCI3278.970 SCI3278.sun-cmd kyinit* startte.19* KYD3278.alt2 SCI3278.2621 SCI3278.970rv SCI3278.vt100 pe3287* te3278* KYD3278.std SCI3278.4415 SCI3278.adm31 SCI3278.vz run_ky* te3278.icon KYD3278.sun SCI3278.513 SCI3278.adm3a SCI3278.wy100 run_sc* thprog.c KYI3278.alt1 SCI3278.5410 SCI3278.cP SCI3278.wy50dim sc3278.sun thprog.o KYI3278.alt2 SCI3278.5410m2 SCI3278.cPdim SCI3278.wy50rv scinit* KYI3278.std SCI3278.910 SCI3278.la ibmftp* startpe* KYI3278.sun SCI3278.924 SCI3278.sun ky3278.sun startte* sun3# cat startte #!/bin/sh # # @(#)startte.sh 6.5 88/03/25 SMI # # Start up a SunLink 3270 terminal emulator. # # gateway= name_of_gateway -- 1st parm, must be specified # model= model_number -- 2nd parm, defaults to "2" (MD3278 file ck'd) # term= terminal_type -- 3rd (or 2nd) parm, defaults to $TERM # DIR3270= directory_name -- basename portion of dir where startte was found # SUNLINK= directory_name -- dir for $DIR3270/startte, eg, /usr/sunlink # P3274= $gateway -- exported env variable used by te3278 # D3274= 0-255 -- exported env variable used by te3278 # MD3278= $model -- exported env variable used by te3278 # PF3274= printfile name -- exported env variable used by te3278 # KY3278= kyobj file.term -- exported env variable used by te3278 # SC3278= scobj file.term -- exported env variable used by te3278 # KYI3278= kysrc file.term -- exported env variable # SCI3278= scsrc file.term -- exported env variable # height= -Wh $height -- used only if a shelltool is forked for te3278 # width= -Ww $width -- used only if a shelltool is forked for te3278 # TEICON= -WI icon_file -- used only if a shelltool is forked for te3278 # TE3278= te3278 file -- program ultimately invoked # need /usr/sunlink/3270 on PATH so ibmftp doesn't require full path name PATH=/usr/sunlink/3270:/usr/ucb:/bin:/usr/bin:/etc:/usr/etc export PATH if test "$1" = ""; then echo "Usage: $0[model_number] [TERM_type]" echo " eg, $0 sun3274 4 sun" exit 100 fi gateway=$1 model="" # set model and term based on possible second and third parameters # case "$2" in "" ) term="$TERM";; [2-5] ) term=${3-"$TERM"}; model="$2";; * ) term="$2" ;; esac P3274="$gateway" D3274="0-255" # dirname is a system V function that will be part of 4.0 eventually # dirname(){ expr $1'/' : '\(.*[^/]\)//*[^/][^/]*//*$' \| .;} DIR3270=`dirname $0` # startte full directory name if test "$DIR3270" = "."; then DIR3270=`pwd`; fi SUNLINK=`dirname $DIR3270` # startte parent directory name if test "$SUNLINK" = "$HOME"; then SUNLINK="/usr/sunlink"; fi DIR3270=`basename $DIR3270` # startte subdirectory name only # setfile allows $HOME/DIR3270 files to override $SUNLINK/DIR3270 files. # # typically, $1==var, $2==DIR3270/filename, $3==$HOME and $4==/usr/sunlink, so: # var will be set to $HOME/DIR3270/filename if it exists, otherwise # var will be set to /usr/sunlink/DIR3270/filename. # setfile(){ if test -f "$3/$2" then eval $1="$3/$2" else eval $1="$4/$2" fi; } # $1=var $2=subdir/filename $3 $4=default to where startte invoked # setfile PF3274 $DIR3270/PF3274 $HOME $SUNLINK setfile KY3278 $DIR3270/KY3278.$term $HOME $SUNLINK setfile SC3278 $DIR3270/SC3278.$term $HOME $SUNLINK setfile KYI3278 $DIR3270/KYI3278.$term $HOME $SUNLINK # If model not specified as startte's 2nd parameter, check file MD3278.$term. # MD3278 file is typically a 2-line Bourne shell: #!/bin/sh , echo "N" # if test "$model" = ""; then setfile MD3278 $DIR3270/MD3278.$term $HOME $SUNLINK if test -x $MD3278; then model=`$MD3278` fi fi # set height and width based on model; if undefined, check last char of script. # Thus, if "ln -s startte startte4" is made, startte4 will result in model=4. # case "$model" in 2 ) height=25; width=80 ;; 3 ) height=33; width=80 ;; 4 ) height=44; width=80 ;; 5 ) height=28; width=132 ;; * ) case "$0" in *2 ) model="2"; height=25; width=80 ;; *3 ) model="3"; height=33; width=80 ;; *4 ) model="4"; height=44; width=80 ;; *5 ) model="5"; height=28; width=132 ;; * ) model="2"; height=25; width=80 ;; esac esac MD3278="$model" export P3274 D3274 PF3274 KY3278 SC3278 KYI3278 SCI3278 MD3278 setfile TEICON $DIR3270/te3278.icon $HOME $SUNLINK setfile TE3278 $DIR3270/te3278 $HOME $SUNLINK if test "$WIN_PARENT" = "" -a "$WINDOW_PARENT" = ""; then $TE3278 else if test "$FONT3278" != ""; then windowfont="-Wt $FONT3278" fi shelltool -Ww $width -Wh $height -WI $TEICON -B offset_x $windowfont \ -Wl "3278 Model $model -- $gateway" -WL "$gateway" sh -c \ "$TE3278 || (echo && echo HIT RETURN TO DESTROY WINDOW && read dummy)" & fi sun3# cd .. sun3# ls 3270/ dai/ mapper/ sna3270/ sync/ sun3# cd sna3270 sun3# ls c3274.hdx install.sna3270* startsna* install/ snopts* sys/ sun3# cat startsna #!/bin/csh -f # # @(#)startsna.sh 6.8 5/6/88 Copyright 1988 Sun Micro # # Start up a SunLink SNA 3270 server. This scripts starts an instance # of an SNA 3274 gateway process. # # The first and only parameter is the logical name of the gateway. # The name of the gateway is configured by the system administrator. # The names of all configured gateways can be found in /etc/3270s or # in the Yellow Pages database (ypcat 3270s.byname). # # S3274 is of the form /dev/dcpBN or /dev/ifdN or /dev/mcpsN # setenv PATH /usr/ucb:/bin:/usr/bin:/etc:/usr/etc cd /usr/sunlink/sna3270 set path=( /usr/sunlink/sna3270 $path ) set S32DIR=/etc/sunlink/sna3270 set CFGDIR=$S32DIR/gateway if ( "$1" == "" ) then echo "Usage: startsna " exit 1 endif set ENVFILE="No envset.$1 found." if ( -e envset.$1 ) then source envset.$1 set ENVFILE="envset.$1" else if ( -e $CFGDIR/envset.$1 ) then source $CFGDIR/envset.$1 set ENVFILE="$CFGDIR/envset.$1" endif endif if ( $?P3274 == 0 ) then echo "Can't start sna3274 - P3274 must be defined" exit 1 endif if ( $?S3274 == 0 ) then echo "Can't start sna3274 - S3274 must be defined" exit 1 endif if ( "$1" != "$P3274" ) then echo "Can't start sna3274 - configuration error" exit 1 endif set len = `expr length $S3274` set port = `expr substr $S3274 $len 1` set PORTTXT="" switch ($line) # # local port case, eg, "cat /dev/null > /dev/ifd0; iflayer ifd0 sdlc0 zsi0" # There are two local ports: zsi0 and zsi1 # case ifd*: cat /dev/null > $S3274 ../sync/iflayer ifd$port sdlc$port zsi$port if ( $status != 0 ) then echo iflayer failed -- ../sync/iflayer ifd$port sdlc$port zsi$port exit 1 endif breaksw # # SCP case; eg, (1) if necessary, dcpload -b a dcpmon.image, # (2) dcpattach /dev/dcpa1, # (3) dcplayer dcpa1 sdlc1 zsi1 # case dcp*: set board = `expr substr $line 4 1` set boare = `expr substr $line 1 4` dd if=/dev/${boare}mem of=/dev/null bs=1 count=1 >& /dev/null if ( $status != 0 ) then echo Loading Comm Board ../dcp/dcpload -b $board ../dcp/dcpmon.image endif ../dcp/dcpattach $S3274 ../dcp/dcplayer $line sdlc$port zsi$port breaksw # # mcp case; this is a simplistic approach: # assumes ifd0,1 sdlc0,1 are reserved for zsi0,1 (local ports), # so mcps0,1,2,3 will use /dev/ifd2,3,4,5 and sdlc2,3,4,5, # eg, for /dev/mcps2 "cat /dev/null > dev/ifd4; iflayer ifd4 sdlc4 mcps2" # eg, for /dev/mcps3 "cat /dev/null > dev/ifd5; iflayer ifd5 sdlc5 mcps3" # case mcps*: set inst = `expr $port + 2`; if ( -e $S3274 ) rm $S3274 ln /dev/ifd$inst $S3274 cat /dev/null > /dev/ifd$inst ../sync/iflayer ifd$inst sdlc$inst $line if ( $status != 0 ) then echo iflayer failed -- ../sync/iflayer ifd$inst sdlc$inst $line exit 1 endif set PORTTXT=" which is a symbolic link to /dev/ifd$inst" breaksw default: echo "Can't start sna3274 - S3274 is an invalid device: $S3274" exit 1 breaksw endsw set LOGFILE=$S32DIR/snalog.$P3274 echo "Starting sna3270 gateway $P3274 ..." > $LOGFILE echo " envset file: $ENVFILE" >> $LOGFILE echo " configuration file: $C3274" >> $LOGFILE echo " port: $S3274$PORTTXT" >> $LOGFILE echo " " >> $LOGFILE sna3274 >>&! $LOGFILE & sun3# cd /usr/sunlink sun3# ls -al total 7 drwxr-xr-x 7 root 512 Jul 5 1989 ./ drwxr-xr-x 24 root 1024 Jul 5 1989 ../ drwxr-xr-x 2 70 1024 Sep 26 10:40 3270/ drwxr-xr-x 2 70 512 Oct 27 1988 dai/ drwxr-xr-x 4 root 512 Oct 27 1988 mapper/ drwxr-xr-x 4 root 512 Oct 27 1988 sna3270/ drwxr-xr-x 2 root 512 Oct 27 1988 sync/ sun3# cd 3270 sun3# ls -l total 422 -rw-r--r-- 1 70 1914 Oct 27 1988 KYD3278.alt1 -rw-r--r-- 1 70 1573 Oct 27 1988 KYD3278.alt2 -rw-r--r-- 1 70 1276 Oct 27 1988 KYD3278.std -rw-r--r-- 1 70 1857 Oct 27 1988 KYD3278.sun -rw-r--r-- 1 70 1317 Oct 27 1988 KYI3278.alt1 -rw-r--r-- 1 70 1246 Oct 27 1988 KYI3278.alt2 -rw-r--r-- 1 70 1228 Oct 27 1988 KYI3278.std -rw-r--r-- 1 70 1339 Oct 27 1988 KYI3278.sun -rw-r--r-- 1 70 1339 Oct 27 1988 KYI3278.sun-cmd -rw-r--r-- 1 70 37 Oct 27 1988 SCI3278.2621 -rw-r--r-- 1 70 260 Oct 27 1988 SCI3278.4415 -rw-r--r-- 1 70 217 Oct 27 1988 SCI3278.513 -rw-r--r-- 1 70 177 Oct 27 1988 SCI3278.5410 -rw-r--r-- 1 70 252 Oct 27 1988 SCI3278.5410m2 -rw-r--r-- 1 70 953 Oct 27 1988 SCI3278.910 -rw-r--r-- 1 70 474 Oct 27 1988 SCI3278.924 -rw-r--r-- 1 70 736 Oct 27 1988 SCI3278.970 -rw-r--r-- 1 70 654 Oct 27 1988 SCI3278.970rv -rw-r--r-- 1 70 188 Oct 27 1988 SCI3278.adm31 -rw-r--r-- 1 70 42 Oct 27 1988 SCI3278.adm3a -rw-r--r-- 1 70 471 Oct 27 1988 SCI3278.cP -rw-r--r-- 1 70 458 Oct 27 1988 SCI3278.cPdim -rw-r--r-- 1 70 41 Oct 27 1988 SCI3278.la -rw-r--r-- 1 70 214 Oct 27 1988 SCI3278.sun -rw-r--r-- 1 70 214 Oct 27 1988 SCI3278.sun-cmd -rw-r--r-- 1 70 652 Oct 27 1988 SCI3278.vt100 -rw-r--r-- 1 70 412 Oct 27 1988 SCI3278.vz -rw-r--r-- 1 70 330 Oct 27 1988 SCI3278.wy100 -rw-r--r-- 1 70 228 Oct 27 1988 SCI3278.wy50rv -rwxr-xr-x 1 70 24576 Oct 27 1988 ibmftp* -rw-r--r-- 1 root 1754 Sep 26 10:39 ky3278.sun -rwxr-xr-x 1 70 81920 Oct 27 1988 kyinit* -rwxr-xr-x 1 70 81920 Oct 27 1988 pe3287* -rwxr-xr-x 1 70 1333 Oct 27 1988 run_ky* -rwxr-xr-x 1 70 1890 Oct 27 1988 run_sc* -rw-r--r-- 1 root 964 Sep 26 10:40 sc3278.sun -rwxr-xr-x 1 70 49152 Oct 27 1988 scinit* -rwxr-xr-x 1 70 1851 Oct 27 1988 startpe* -rwxr-xr-x 1 70 4328 Oct 27 1988 startte* -rwxr-xr-x 1 70 1098 Oct 27 1988 startte.19* -rwxr-xr-x 1 70 122880 Oct 27 1988 te3278* -rw-r--r-- 1 70 1933 Oct 27 1988 te3278.icon -rw-r--r-- 1 70 2491 Oct 27 1988 thprog.c -rw-r--r-- 1 70 1102 Oct 27 1988 thprog.o sun3# cd ../dai sun3# ls -l total 192 -rw-r--r-- 1 70 23050 Oct 27 1988 DAILIB.a -rw-r--r-- 1 70 135784 Oct 27 1988 DAILIB.debug.a -rw-r--r-- 1 70 6960 Oct 27 1988 dai.h -rw-r--r-- 1 70 18108 Oct 27 1988 dai_test.c sun3# cd ../mapper sun3# ls -l total 46 -rw-r--r-- 1 root 9929 Oct 27 1988 get_sunlink_ent.o drwxr-xr-x 2 root 512 Oct 27 1988 include/ -rwxr-xr-x 1 root 6385 Oct 27 1988 install.maps* -rwxr-xr-x 1 root 217 Oct 27 1988 rc.local.add* -rwxr-xr-x 1 root 16384 Oct 27 1988 sunlink_mapper* -rw-r--r-- 1 root 9346 Oct 27 1988 sunlink_mapper_xdr.o drwxr-xr-x 2 root 512 Oct 27 1988 yp/ sun3# cd ../sna3270 sun3# ls -l total 155 -rw-r--r-- 1 root 250 Oct 27 1988 c3274.hdx -rw-r--r-- 1 root 209 Oct 27 1988 envset.snahost1 drwxr-xr-x 2 root 512 Oct 27 1988 install/ -rwxr-xr-x 1 root 1948 Oct 27 1988 install.sna3270* -rwxr-xr-x 1 root 114688 Oct 27 1988 sna3274* -rwxr-xr-x 1 root 24576 Oct 27 1988 snopts* -rwxr-xr-x 1 root 3249 Oct 27 1988 startsna* -rwxr-xr-x 1 root 371 Oct 27 1988 stopsna* drwxr-xr-x 5 root 512 Oct 27 1988 sys/ sun3# cd ../sync sun3# ls -l total 81 -rwxr-xr-x 1 root 764 Oct 27 1988 MAKEDEV.sunlink* -rwxr-xr-x 1 root 16384 Oct 27 1988 iflayer* -rwxr-xr-x 1 root 16384 Oct 27 1988 ifmptp* -rwxr-xr-x 1 root 16384 Oct 27 1988 syncloop* -rwxr-xr-x 1 root 16384 Oct 27 1988 syncstat* sun3# Revision History Created on 10 May , 1992