IBM s/390 Tablet Accessory User Manual


 
Chapter 4. FLEX-ES Operation 29
Interfaces for all the control units defined in the system section
Devices for all the control units defined in the system section
These two definitions can be two separate files or combined into one file. We elected to
combine them into one file, as listed in Appendix A, FLEX-ES definition listings on page 69.
The FLEX-ES configuration files (resources and systems) must be compiled, using the
command cfcomp. Compilation produces two files. Parts of the output file names are taken
from the names in the definition files and part of the names (syscf and rescf) are fixed. In our
case we will have S10A.syscf and R10A.rescf, based on the names coded in our definitions.
Once compiled, the resource portion (the rescf file) can be activated with the resadm
command:
$ cd /usr/flexes/rundir
$ su (switch to root)
# resadm -s R10A.rescf (must be root to use -s)
# exit (switch back to flexes)
You can list all active resources with the command:
$ resadm -r
Resource: CPU Flags: READY Type: CPU Port: 9365 Pid: 17483
Resource: CHANNEL Flags: READY Type: CHAN Port: 9369 Pid: 17485
Resource: os2821 Flags: READY Type: CU Port: 9368 Pid: 17486
Resource: os3480 Flags: READY Type: CU Port: 9370 Pid: 17487
Resource: os3274 Flags: READY Type: CU Port: 9374 Pid: 17488
Resource: osdasd Flags: READY Type: CU Port: 9375 Pid: 17489
Resource: os3172 Flags: READY Type: CU Port: 9377 Pid: 17490
Resource: osctc Flags: READY Type: CU Port: 9376 Pid: 17491
Resource: NETCU Flags: READY Type: NETCU Port: 9384 Pid: 17492
Resource: TS3270 Flags: READY Type: TS3270 Port: 9381 Pid: 17493
More options of the resadm command are discussed in The resadm command on page 81.
Once the resources are active, the system portion is ready to be started and IPLed. This is
easier to do with a shell script.
4.1.1 Building a shell script
We used vi to create the following shell script file in /usr/flexes/rundir/shos. (The name shos
is arbitrary.) The contents are:
flexes S10A.syscf
xmodmap -e ‘keysym Alt_L = Alt_L Meta_L‘
xset fp+ /usr/flexes/fonts
xset fp rehash
echo ' Verify your master console session is started '
echo ' and then ipl your system '
echo ' '
x3270 -model 3 -keymap pc -port tn3270 localhost:mstcon &
x3270 -model 3 -keymap pc -port tn3270 localhost:L701 &
flexescli localhost S10A
The flexes command (in the shell script) starts an emulated S/390, using the indicated
compiled system definition file.