IBM s/390 X3270 client, $ x3270 -model 3 -keymap pc -port tn3270 localhost, Function Keys Used

Page 58

5.8 x3270 client

The FLEX-ES product distribution includes a copy of x3270. This is based on the freely distributable x3270 package, but with a few modifications. In general, it is intended only for use on the ThinkPad/EFS system itself, under Linux. Users connecting from other platforms will probably use whatever TN3270 clients are available for their platforms. For this redbook project, we used IBM’s PCOM package—usually from OS/2 machines.

An x3270 window (on the Linux console) is started with the command:

$x3270 -model 3 -keymap pc -port tn3270 localhost &

+--

run in background

 

+---------

local system (from /etc/hosts)

+--------------------

 

port tn3270 (from

/etc/services)

+-------------------------------

 

 

in /usr/X/lib/app-defaults/X3270

+

-----------------------------------------

 

 

models 2, 3, 4, 5

available

+-------------------------------------------------

 

 

 

 

command

 

You can optionally identify the FLEX-ES terminal session you want to connect to like this:

$x3270 -model 3 -keymap pc -port tn3270 localhost:t91f &

In this case, your resources definition (or a prior FLEX-ES mount command) must have defined a 3270 device named t91f. If you do not identify a specific terminal connection, the x3270 session is connected to the Terminal Solicitor. In a FLEX-ES system, port tn3270 normally resolves (via /etc/services) to port 24, the default port for the Terminal Solicitor.

The x3270 command must be in the current search path, of course.9 It is in the /usr/flexes/bin directory, and we suggested placing this in the current PATH. The model parameter refers to

3270 models:

Model Characteristics

224 lines x 80 columns

3 32 lines x 80 columns

4 43 lines x 80 columns

5 27 lines x 132 columns

These are standard 3270 family model designations. Model 3 use is perhaps the most common and that is what we used.

Important keyboard mapping for x3270 includes:

Function

Keys Used

 

 

PA1

Left-Alt + 1

 

(hold down the left Alt key and press 1)

PA2

Left-Alt + 2

 

 

Clear

Left-Alt + c

or

Left-Alt + Home

Enter

Enter

 

(large Enter key performs 3270 Enter function)

NewLine

Left-Alt + Enter

(performs 3270 New Line function)

SysRq

Left-Alt + s

 

(the System Request key (usually for SNA))

F13

Left-Alt + F1

 

(and so forth for F14 - F24)

EraseEOF

Left-Alt + f

 

 

Insert

Left-Alt + i

 

 

Del

Delete

 

 

BackTab

Shift + Tab

 

(tab backwards)

9You must make certain than another x3270 program does not appear first in the search path, as discussed in “X3270” on page 20.

48S/390 PID: ThinkPad Enabled for S/390

Image 58
Contents ThinkPad Enabled for S/390 Bill OgdenPage International Technical Support Organization First Edition October Contents Shutting down Index Vi S/390 PID ThinkPad Enabled for S/390 Special notice AuthorIBM trademarks Comments welcomeIntroduction Purpose of this redbook ThinkPad/EFS systemsFLEX-ES Linux Positioning with other small S/390sThinkPad/EFS hardware used Terminology System and Linux installation Disk planningDifferences Partition Manually Partition Linux installationThinkPad Mount Point Device Requested Actual Type Purpose255.255.255.0 Device Partition Type Default Boot12.17.210 12.17.150Gnome Select Start X automatically Installation notesMonitor Setup IBM 9513 T55A TFT No clock chip 24 bit # df -h# ps -ef grep xinetd Etc/xinetd.d # vi telnet# kill -s USR1 pidnumber PID number for xinetd 14 S/390 PID ThinkPad Enabled for S/390 FLEX-ES and OS/390 installation FLEX-ES Brief introductionPC Processor in ThinkPad Page Installation Installing the FLEX-ES license key AD systems OS/390 AD systemsNext steps # mkdir /s3912 OS/390 on CD-ROM Basic CD-ROM formats3 OS/390 device configuration FLEX-ES formatsAn unzip program Installation tasksUnzipping and installing Awsckd CD-ROM files Mount /dev/cdrom /mnt/cdromMinor problems File ownershipVolume in two separate zip files Files unzip in wrong orderFLEX-ES Operation FLEX-ES system and resource definitions Comments# resadm -s R10A.rescf Building a shell script$ cd /usr/flexes/rundir $ resadm -r$ sh shos Flexes ipl a80 0a82cs Terminal Solicitor IPL OS/390=stor 11.42.47 Operation and useUser terminal connection A80,8System performance monitors Linux TN3270Iodf requirements Rmf5 TCP/IP for OS/390 # resadm -k Shutting down# resadm -T # exit36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Security Operating Systems Messages consoleServer memory Vmstat command Importance of Linux swapping CPUUltrabay Using a second Linux hard disk# cat /proc/partitions Second disk planning Partition Mount Size Use Disk layout AD systemDevice Volser Addr Use FLEX-ES FakeTape on OS/390 Alternative method560 222222Multi-system setup $ x3270 -model 3 -keymap pc -port tn3270 localhostt91f X3270 client$ x3270 -model 3 -keymap pc -port tn3270 localhost Function Keys UsedRemote resources # cd /usr/lib/X11/app-defaults # cp X3270 X3270old# vi Disk caches System BWrites Cache Hits Tuning cachesize FSI Channel AdaptersScsi adapter for the ThinkPad Backup and restore considerationsDisk fragmentation Using tar to back up S/390 volumes $ tar -cvzf /holding/OS39RA.tarz /s390/OS39RAUsing tar and ftp $ cd /usr/flexes/rundir $ sh buOS39RAc16 S/390 identification CD-RW driveDisplay PSW and registers RAS discussionVerify ckd disk Linux windowsInstalling FLEX-ES upgrades ThinkPad power controlUseful Linux commands Common commandsMultiple consoles, sessions, screens Text editors62 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 64 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 66 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 68 S/390 PID ThinkPad Enabled for S/390 Appendix A. FLEX-ES definition listings Basic definitions for a single HDDShell script for a single HDD Definitions for two HDDs Shell script for two HDDs Appendix B. FLEX-ES parameters System definitionsCpu0 Cpu1 Cpu2 Resource definitions Emulated control unit typesEmulated device types Typical resource definitionsCKD disk resources Terminal resources Tape resources LAN resourcesCloned devices Resadm command Common rulesCLI commands 710 Altcons Flexes mount A90 S390/WORK01560 Home/tape3 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 Referenced Web sites How to get IBM RedbooksIBM Redbooks Other resourcesIBM Redbooks collections Index Pipe Port Power control Terminal logo Terminal Solicitor 16, 18, 31, 39, 65 92 S/390 PID ThinkPad Enabled for S/390 Partners in Development ThinkPad Enabled for S/390 Page Page ThinkPad Enabled for S/390 System setup AD CD-ROM use System operation