Mainframe Zlinux Hands-On

Embed Size (px)

Text of Mainframe Zlinux Hands-On

Warranty HCLs Mainframe Management Services System

System Administration on Z/VM and Z/Linux Hands-on

Z/VM Overview of z/VM General ConceptsEstablishing VM Sessions Logging onto the Virtual Console User Directory Execution Modes

Using CMSCommands CMS File System Developing Programs - Xedit, Execs, Pipelines...

Debugging2

Overview of z/VM An operating system (VM = virtual machine) A hypervisor, which refers to a system that virtualizes the real hardware environment Runs on the zSeries architecture created by IBM Latest version is Version 5, Release 4

z/VM as an Operating System A highly flexible test and production environment Has the ability to run multiple machine images and architectures Can simplify the migration from one release to another3

Creating System Level

4

5

6

Conversational monitor system (CMS)191 XEDIT ISPF A-Disk 00C Reader 00E Printer 00D Punch7

Ready

ice Vision JAVA C OBOL C ++

Shared File System

C S M

Control program (CP)Guest OS'sSystem Page Spool

mini disks

C M S

data

C M S

z / O S

L I N U X

V M

V S E

T P F

System work

Communication

VM/CP

virtual devices

real devices

8

Components of z/VMVM contains Two Basic PartsCP - Control Program CMS (or Guests LINUX, CP, z/OS, etc.)

C M S

C M S

z/ O S

L I N U XCP

L I N U XLINUX

Control Program

CMS General Con epts

CMS: Conversational Monitor System CMS is an interactive user interface that runs under the control of CP Provides an application programming and execution environment

Commands, EXECs (scripts), pipelines, Xedit, compilers, user programs

Many tools availableREXX, Vendor programs10

CMS Strengt sUser-friendlyEnglish-like, extensible command language Simple, easy-to-use file system

Cooperates well with CPCommands to exploit CP function and devices Exploits virtual machine concepts Commands can be automatically passed to CP, if not found in CMS, or directly by issuing #CP command

High performanceSingle-user orientation Shared CMS Nucleus File system performance

11

Pre installe feat res an pro

ts

ICKDSF EREP

VMRM RSCS DIRMAINT RACF

VM Performance Tool Kit

SA/SF (n/c)TCP/IP (n/c) HCD/HCM (n/c)12

13

14

Sample User Dire toryUS R BMUS R BMUS R 6M 32M G CCOUNT SYSTEMS MACH ESA 4 CPU CPU PL CMS 32 5 CONSOLE SPOOL C 254 READER * SPOOL D 254 PUNCH A SPOOL E 4 3 A RR * CMS system is L NK MAINT LINK MAINT E E RR * Pro t o e is LINK 5767 2P 2 E 2 E RR LINK 5767 2P 5 5 3 5 RR 2 RR LINK 5767 2P MDISK 33 535 5 RES MR READ WRITE MULTIPLE15

Establis ing a VM Session

VM Logo Screen

One at a time - 3270 emulation (pcom) LOGON ... here -> move a signon to another session

Using CP to control the Virtual Machine

#CP IPL CMS - restart your entire CMS session, profile exec runs to customize your session #CP LOGOFF - logon xxx - sign off/on16

VM Logo S reen

17

Sessions

18

CP Control Program

19

20

CMS Con epts

21

CP Comman sQuery Storage Information

Q DASD Q DASD FREE

Using CP to control the Virtual Machine

TCP/IP Network Information OSA Information

22

23

CP Comman s

24

CP Comman s

25

CP Comman s Q ery OSA z/VM

26

CP Comman s Q ery Comman s

Query All to display the status of all the real devices attached to the system. All indicates all devices attached to the system Query All Active / Free indicates devices active to the system and which are free 27

CP Comman s Q ery Comman s

Query CPU ID is to display the double word processor identifier used by our virtual machine. Returns the CPU ID of the issuing users Virtual processor. CPUID= aassssssccccdddd aa identifies the version code. These two digits are set to X'FF' to identify that your virtual machine is running under z/VM.

ssssss identifies the processor. This field contains six hexadecimal digits. This is the only part of the CPUID that can be modified by means of the SET CPUID command or set by the system directory's OPTION control statement.

cccc identifies the model number. This field is set to the model number of the real machine. dddd identifies the machine check extended logout length. For z900 and z800 servers, this field is set to X'0000'. For all other supported servers, this field is set to X'8000'.

28

CP Comman s Q ery Comman s

Query Files List the count of SPOOL files in the system Q mdisk 190 Display device characteristics of minidisks : dedicated DASD,T-Disks ,Regular and virtual disks

MDISK Its defined in the USER DIRECT file something like SYSTEM FILES on Z/OS Device type 3390 , Volume Label , Size CYLS/ BLKS of the mini disk

29

CP Comman s Q ery Comman s

30

CP Comman s Mini is s on Storage z/VM

31

32

CMS ile System

33

Z/Lin x Han s onUSING PUTTY .SSH to HOST

34

Z/Lin x Han s onEnter yo r USER ID an PWD w en prompte

Enter EXIT to terminate session

35

Z/Lin x Han s on

36

Z/Lin x Han s on

37

Z/Lin x Han s on

38

Z/Lin x Han s on

39

Z/Lin x Han s on

40

Z/Lin x Han s on

41

Z/Lin x Han s on

42

Z/Lin x ile System

43

Z/Lin x ile System

44

Z/Lin x ile System

45

Z/Lin x ile System

46

Z/Lin x ile System

47

Z/Lin x ile System

48

Z/Lin x Han s on

49

Z/Lin x ile System Lab Exer ise

50

Z/Lin x Han s on

51

52

53

Z/Lin x Han s on

54

Z/Lin x Han s on

55

Z/Lin x Han s on

56

T HANK Y OU HCL 2009This is solely for the use of HCL only. Without prior permission, no part of it may be circulated, quoted or reproduced outside of the organization.

Q&A

57