It seems to me that CUADD=0 is valid when the CHPIDs are DEDICATED.
Shimon Lebowitz <[EMAIL PROTECTED]> Sent by: The IBM z/VM Operating System <[email protected]> 01/13/2008 08:56 AM Please respond to The IBM z/VM Operating System <[email protected]> To [email protected] cc Subject Re: Dynamically defining ESCON CTC ---------------------- Information from the mail header ----------------------- Sender: The IBM z/VM Operating System <[email protected]> Poster: Shimon Lebowitz <[EMAIL PROTECTED]> Subject: Re: Dynamically defining ESCON CTC ------------------------------------------------------------------------------- > One side must be CNC and the other must be ESCON_CTC. However, the > devices have to be right too. The CNC device must be defined without any > extra parms, while the ESCON_CTC side must be defined as CTCA EXT. I'll > attach the exec that finally worked for anyone who finds themselves in the > same spot. Geeee, who would guess that two tin cans and some string could > be so tough to create??? I am happy to hear that you managed to get it working, but looking at the commands you posted leaves me somewhat puzzled. > 'CP DEF CHPID 15 PCHID 167 CSS 0 TYPE CNC DEDICATED_NOT_REC ACC LP1' > 'CP DEF CHPID 2B PCHID 1F5 CSS 0 TYPE ESCON_CTC ' , > 'DEDICATED_NOT_REC ACC LP2' > 'CP SLEEP 1 SEC' > 'CP DEFINE CU 150 TYPE ESCON UNITADD 00 CUADD 00 CHPID 15' > 'CP DEFINE CU 2B0 TYPE ESCON UNITADD 00 CUADD 00 CHPID 2B' As I read this, CHPID 15 belongs to LPAR 1, and CHPID 2B belongs to LPAR 2. The control units on these channels will each have to talk to the LPAR on the other end, CU 150 needs to talk to LPAR 2, and CU 2B0 talks to LPAR 1. In that case, I fail to see how your definitions with CUADD 00 on *both* control units will ever work, unless dynamically defined CTCs are very different from those defined in the IOCP. The rule in the IOCP is clear: use the LPAR number of the 'target' LPAR as the CUADD on the 'source' control unit. So, in your case, I would define them like this: 'CP DEFINE CU 150 TYPE ESCON UNITADD 00 CUADD 02 CHPID 15' 'CP DEFINE CU 2B0 TYPE ESCON UNITADD 00 CUADD 01 CHPID 2B' Did the commands you posted *really* work??? I thank you for this discussion, and for posting the required extra operands, since in general I have found it really difficult to get the dynamic incantations 'just right'. Thanks, Shimon -- ************************************************************************ Shimon Lebowitz mailto:[EMAIL PROTECTED] VM System Programmer mailto:[EMAIL PROTECTED] Israel Police National HQ. http://www.poboxes.com/shimonpgp Jerusalem, Israel phone: +972 2 542-9877 fax: 542-9308 ************************************************************************
