IBM s/390 manual CLI commands

Page 92

￿You can -t (selectively terminate a resource) and then -x (refresh the resources file). This will refresh only resources that are not running at that time.

￿The resource manager writes log information to the /var/log/messages file (via the Linux syslog logging facility).

￿The resource manager automatically uses TCP/IP port 555 to communicate with other elements of FLEX-ES, whether there is a single Server or there are multiple Servers involved.

CLI commands

Every S/390 emulated system instance has an associated main console for FLEX-ES control commands. This is a virtual console that is not directly connected to a real terminal. The commands it processes are the CLI commands, some of which are described here. A program named flexescli is used to communicate with the virtual main console. flexescli works from a Linux command line, and you can start as many flexescli instances as you like (and work via FLEX-ES networking if you have multiple FLEX-ES servers). The flexescli program sends commands to a main console and returns the results.

In discussions we typically ignore the details of the flexescli and main console interaction and describe operations in terms of commands to flexescli. Also, for our ThinkPad/EFS discussion, we usually assume that only a single S/390 is being emulated at any given time.

CLI commands can be entered two ways:

￿You can start the flexescli program in interactive mode and then issue CLI commands directly at the flexes prompt provided by the CLI program.

￿You can use ECHO to pipe a command to flexescli. In this case, it executes the command and terminates.

The syntax for the flexescli command is:

# flexescli IPname systemname

If the flexescli program is not in the current PATH, you would need to issue the full path name for it. The IPname can be an IP address, a host name that is resolved by DNS, or a local name (in /etc/hosts). The standard IPname localhost is used to reference the local IP loopback address. The systemname is the name of a syscf file used to start an emulated S/390. In our examples, this is S10A.syscf. (The syscf suffix is omitted for the flexescli command.) The flexescli program must always be directed to a specific S/390 instance (even if there is only one running).

An example of executing a single command through the CLI interface might be:

#pwd

#echo ‘ipl a80 0a8200’ flexescli localhost S10A

# ...

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

 

+-- S/390

system name (S10A.syscf)

 

+

----------- local

system (TCP/IP loopback)

 

+

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

the flexescli command

 

+

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

the pipe operator

 

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

 

 

CLI command to be executed

The flexescli program senses whether input is waiting for it in a pipe; if so, it executes the waiting command and quits. If started this way:

#flexescli localhost S10A flexes>

it issues a flexes prompt and waits for commands. It will run until it receives a quit command.

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

Image 92
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 Linux installation ThinkPadPartition Manually Partition Mount Point Device Requested Actual Type PurposeDevice Partition Type Default Boot 12.17.210255.255.255.0 12.17.150Gnome Installation notes Monitor Setup IBM 9513 T55A TFT No clock chip 24 bitSelect Start X automatically # df -h# kill -s USR1 pidnumber PID number for xinetd Etc/xinetd.d # vi telnet# ps -ef grep 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 OS/390 AD systems Next stepsAD systems # mkdir /s3912 OS/390 on CD-ROM Basic CD-ROM formats3 OS/390 device configuration FLEX-ES formatsInstallation tasks Unzipping and installing Awsckd CD-ROM filesAn unzip program 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 CommentsBuilding a shell script $ cd /usr/flexes/rundir# resadm -s R10A.rescf $ resadm -r$ sh shos Flexes ipl a80 0a82cs =stor IPL OS/390Terminal Solicitor Operation and use User terminal connection11.42.47 A80,8Linux TN3270 Iodf requirementsSystem performance monitors Rmf5 TCP/IP for OS/390 Shutting down # resadm -T# resadm -k # exit36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Server memory Operating Systems Messages consoleSecurity Vmstat command Importance of Linux swapping CPU# cat /proc/partitions Using a second Linux hard diskUltrabay Second disk planning Device Volser Addr Use Disk layout AD systemPartition Mount Size Use FLEX-ES FakeTape on OS/390 Alternative method560 222222Multi-system setup X3270 client $ x3270 -model 3 -keymap pc -port tn3270 localhost$ x3270 -model 3 -keymap pc -port tn3270 localhostt91f Function Keys Used# vi # cd /usr/lib/X11/app-defaults # cp X3270 X3270oldRemote resources Disk caches System BWrites Cache Hits Tuning cachesize FSI Channel AdaptersDisk fragmentation Backup and restore considerationsScsi adapter for the ThinkPad 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 560 Home/tape3 Flexes mount A90 S390/WORK01710 Altcons 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 How to get IBM Redbooks IBM RedbooksReferenced Web sites 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