Discussion:
[hercules-390] DTCCTC045E CTCA device Error getting XA subchan id
email4ray2009@gmail.com [hercules-390]
2016-11-04 20:47:17 UTC
Permalink
VM 5.3 under Hercules 3.11 with CTCI-WIN (x64) 3.3.3.3285 , TUN/TAP and "WinPcap 4.3" -Running on Win 7 64 bit .
TUN/TAP tt32Test and tt64Test and Windows CMD Ping guest address with TTxxTest pgms running .
can ping the 192.168.2.20 from ttxxTest and can use Windows cmd ping to 192.168.2.50 (ttxxx fake) ok.
Hercules .cnf file for z/VM has definition for CTCI
0400 3088 CTCI 192.168.2.50 192.168.2.20



The Machine Hercules runs on is IP 192.168.2.20


Hercules is running on a Guest VM Windows machine the Host (real ) machine IP is 192.168.2.17
Hercules starts with no errors , and I ipl the z/VM
On z/VM Query 400 responds CTCA 400 free
Attach 400 to TCPIP on z/VM



In profile, PORT 23 is not included I only want to use FTP server
When I ipl/start TCPIP



PROFILE TCPIP contains
PORT
21 TCP FTPSERVE
111 TCP PORTMAP
111 UDP PORTMAP
DEVICE ctc0 CPU 0 CTC 0400
LINK link0 CTC 0 ctc0
HOME
192.168.2.50 255.255.255.0 link0
GATEWAY
192.168.2.20 255.255.255.0 192.168.2.1 ctc0 0
DEFAULTNET
192.168.2.20 255.255.255.0 192.168.2.1 ctc0 0
*************



I get the following error and CTC is not started
DTCPRI385I Device CTC0:
DTCPRI386I Type: CTC, Status: Not started
DTCPRI387I Envelope queue size: 0
DTCPRI388I Address: 0400
DTCCTC045E CTCA device CTC0: Error getting XA subchan id for 00000400 or 00000401
DTCCTC082E CTCA shutting down:
DTCPRI385I Device CTC0:
DTCPRI386I Type: CTC, Status: No status available
DTCPRI387I Envelope queue size: 0
DTCPRI388I Address: 0400



Does anyone have a clue what's going on? Is this a known problem?



Ty...
Greycoder
Ivan Warren ivan@vmfacility.fr [hercules-390]
2016-11-05 11:17:13 UTC
Permalink
Post by ***@gmail.com [hercules-390]
Hercules .cnf file for z/VM has definition for CTCI
0400 3088 CTCI 192.168.2.50 192.168.2.20
CTCI must be defined in pair :
0400-0401 3088 CTCI 192.168.2.50 192.168.2.20
Post by ***@gmail.com [hercules-390]
On z/VM Query 400 responds CTCA 400 free
Attach 400 to TCPIP on z/VM
Use :
CP Att 400-401 tcpip

No need to change TCPIP config.
--Ivan


[Non-text portions of this message have been removed]
email4ray2009@gmail.com [hercules-390]
2016-11-06 02:31:40 UTC
Permalink
Thanks Ivan,
Appreciate the tip...


In fact I had tried that also, since posting, and I also have
:Attach 400 as 400 and :Attach 401 as 401
and :Attach E40 as E40 and :Attach E41 as E41 in the SYSTEM DTCPARMS for TCPIP , Ipl TCPIP
get same error .
Q 400 Q 401 Q e40 Q e41 all are attached to TCPIP after it started.
Added E40-E41 CTCA in the Hercules.cnf file also.
0400-0401 3088 CTCI 192.168.2.50 192.168.2.20
0E40-0E41 3088 CTCI 192.168.2.50 192.168.2.20
and I see in Hercules start up log before I IPL zvm,
HHCCT073I 0400: TUN Device Tun0 opened
HHCCT073I 0E40: TUN Device Tun1 opened


Maybe there's something else I have to do in CP config?
Or maybe it's something in zVM5.3 that has changed since earlier versions?
I may try similar set up on ZVM 4.7 but trying to avoid setting up another system.





....
Ivan Warren ivan@vmfacility.fr [hercules-390]
2016-11-06 03:04:53 UTC
Permalink
Post by ***@gmail.com [hercules-390]
Thanks Ivan,
Appreciate the tip...
...
Post by ***@gmail.com [hercules-390]
Added E40-E41 CTCA in the Hercules.cnf file also.
0400-0401 3088 CTCI 192.168.2.50 192.168.2.20
0E40-0E41 3088 CTCI 192.168.2.50 192.168.2.20
Wow wow wow ! You are confusing virtual addresses and real addresses.

Here you have 2 conflicting definitions (2 CTCI device pairs with the
same IP definitions).

If you want Real CUU (as defined by hercules) 400 and 401 to be seen as
virtual addresses E40 and E41 by the z/VM TCPIP virtual machine you should :
CP ATT 400 TCPIP E40
CP ATT 401 TCPIP E41

These Class B CP commands will dedicate Real device 400/401 to the
virtual machine's virtual address E40/E41.

You may also elect to use "DEDICATE" statements in the definition of the
TCPIP virtual machine in your CP directory. (It will allow the TCPIP
virtual machine to be started automatically).

The definition of the TCP/IP configuration in the TCPIP virtual machine
need to reflect the *VIRTUAL* device addresses. The *REAL* addresses are
hidden by z/VM. The only thing is that in the TCPIP CONFIG file, you
only specify the "Even" address (the Odd address is implied).. CTCI
works with having a Read/Write side (1 address to read IP packets from,
1 address to send IP packets out).
Post by ***@gmail.com [hercules-390]
Maybe there's something else I have to do in CP config?
Not really. No DMKRIO or SYSTEM CONFIG required here. z/VM can detect
and automatically configure 3088 (at least enhanced CTC devices like the
CTCI implementation.. It wouldn't work for an integrated 4361 CTC...)
Post by ***@gmail.com [hercules-390]
Or maybe it's something in zVM5.3 that has changed since earlier versions?
I may try similar set up on ZVM 4.7 but trying to avoid setting up another system.
Not really.. It's been this way ever since VM/SP 5 when "FAL" (the VM
TCP/IP stack) came out (Well, VM/SP5 needed a DMKRIO definition, but not
required for z/VM).

--Ivan

PS : This might have to be moved to the herc-vm yahoo group... This
discussion is a bit too VM centric.


[Non-text portions of this message have been removed]
email4ray2009@gmail.com [hercules-390]
2016-11-10 22:47:13 UTC
Permalink
Cleaned up and started over with LCS setting and CTCA setting , LCS with 2 devices 400/401 and 1 device 400
There has to be something stupid I'm doing or maybe issue with TUN/TAP tool???


These tests tried Herc 3.11, and Herc 3.12 and Herc 4. All same issues
New test for both LCS and CTCA settings...
Hercules Parms :
# LCS Definitions for TCP/IP Added
0400.2 LCS -o OATFILE.TXT
OATFILE.TXT
**************************************************************
* Dev Mode Port Entry info
**************************************************************
0400 IP 00 PRI 192.168.2.17
0401 IP 01 NO 192.168.2.17
End OATFILE.txt
And have CTCI definition for another address:
# CTCI Definitions for TCP/IP Added
0410 3088 CTCI 192.168.2.50 192.168.2.17
Now get following
HHCCP048I 0401:CCW=04200018 7FF7B05C=>00000000 00000000 00000000 00000000 ................
HHCCP075I 0401:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 ................
HHCCP076I 0401:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0401:Sense=CMDREJ
HHCCP075I 0410:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 ................
HHCCP076I 0410:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0410:Sense=CMDREJ

I tried removing the 0401 from OATFILE.TXT leaving the 0400.2 LCS statement and get same error on 0400 and 0410
Finally I tried only 0400 LCS -o OATFILE
OATFILE.TXT
**************************************************************
* Dev Mode Port Entry info
**************************************************************
0400 IP 00 PRI 192.168.2.17
** And CTCI
0410 3088 CTCI 192.168.2.50 192.168.2.17
And Get the errors on 400 and 410
HHCCP048I 0400:CCW=04200018 7FF8B05C=>00000000 00000000 00000000 00000000 .
HHCCP075I 0400:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 .
HHCCP076I 0400:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0400:Sense=CMDREJ
HHCCP075I 0410:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 .
HHCCP076I 0410:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0410:Sense=CMDREJ
HHCCP048I 0410:CCW=04200018 7FF7B05C=>00000000 00000000 00000000 00000000 .
It looks to me that TUN/TAP is not responding/or rejecting or sending bad data to both the LCS and the CTCA device.
The tt32Test and tt64Test work pinging 192.168.2.17 (host adapter) , and pinged from windows cmd to 192.168.2.50 (emulated host IP).
After I boot z/VM, In all cases tested,
CP Q 400 and CP Q 410 respond with Offiine.
and if I vary online I get
HCPCPN6895I Device 0400 cannot be varied online because the device
HCPCPN6895I identification data is inconclusive.
HCPCPN6785E Unable to identify device 0400 dynamically.
1 device(s) specified; 0 device(s) successfully varied online
Harold Grovesteen h.grovsteen@tx.rr.com [hercules-390]
2016-11-11 14:29:43 UTC
Permalink
Post by ***@gmail.com [hercules-390]
Cleaned up and started over with LCS setting and CTCA setting , LCS
with 2 devices 400/401 and 1 device 400
There has to be something stupid I'm doing or maybe issue with TUN/TAP tool???
No that is not the issue.
Post by ***@gmail.com [hercules-390]
These tests tried Herc 3.11, and Herc 3.12 and Herc 4. All same issues
New test for both LCS and CTCA settings...
# LCS Definitions for TCP/IP Added
0400.2 LCS -o OATFILE.TXT
OATFILE.TXT
**************************************************************
* Dev Mode Port Entry info
**************************************************************
0400 IP 00 PRI 192.168.2.17
0401 IP 01 NO 192.168.2.17
End OATFILE.txt
# CTCI Definitions for TCP/IP Added
0410 3088 CTCI 192.168.2.50 192.168.2.17
Now get following
HHCCP048I 0401:CCW=04200018 7FF7B05C=>00000000 00000000 00000000 00000000 ................
HHCCP075I 0401:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 ................
HHCCP076I 0401:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0401:Sense=CMDREJ
HHCCP075I 0410:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 ................
HHCCP076I 0410:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0410:Sense=CMDREJ
I tried removing the 0401 from OATFILE.TXT leaving the 0400.2 LCS
statement and get same error on 0400 and 0410
Finally I tried only 0400 LCS -o OATFILE
OATFILE.TXT
**************************************************************
* Dev Mode Port Entry info
**************************************************************
0400 IP 00 PRI 192.168.2.17
** And CTCI
0410 3088 CTCI 192.168.2.50 192.168.2.17
And Get the errors on 400 and 410
HHCCP048I 0400:CCW=04200018 7FF8B05C=>00000000 00000000 00000000 00000000 .
HHCCP075I 0400:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 .
HHCCP076I 0400:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0400:Sense=CMDREJ
HHCCP075I 0410:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 .
HHCCP076I 0410:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0410:Sense=CMDREJ
HHCCP048I 0410:CCW=04200018 7FF7B05C=>00000000 00000000 00000000 00000000 .
It looks to me that TUN/TAP is not responding/or rejecting or sending
bad data to both the LCS and the CTCA device.
The tt32Test and tt64Test work pinging 192.168.2.17 (host adapter) ,
and pinged from windows cmd to 192.168.2.50 (emulated host IP).
After I boot z/VM, In all cases tested,
CP Q 400 and CP Q 410 respond with Offiine.
and if I vary online I get
HCPCPN6895I Device 0400 cannot be varied online because the device
HCPCPN6895I identification data is inconclusive.
HCPCPN6785E Unable to identify device 0400 dynamically.
1 device(s) specified; 0 device(s) successfully varied online
______________________________________________________________________
______________________________________________________________________
These messages indicate that there is missing or unexpected information
being exchanged between VM and Hercules during dynamic definition of the
devices by VM.

What would be helpful is to start the Hercules CCW traces for devices
400 and 401 _before_ you IPL VM.

Issue commands t+400 and t+401 in the Hercules console before the IPL.
Post the results for whichever network device definition you are
testing. If of course you are using different device numbers in your
Hercules configuration, use those in the t+ commands rather than 400 and
401.

Harold Grovesteen
email4ray2009@gmail.com [hercules-390]
2016-11-11 17:28:48 UTC
Permalink
I start Hercules, connect consoles, start trace , then enter IPL command to start IPL.


12:19:34 t+410
12:19:34 HHCPN136I CCW tracing is now on for device 0:0410
12:19:53 ipl zvm_ins
12:19:53 HHCCP007I CPU0000 architecture mode set to ESA/390
12:19:53 CPU0000: SIGP Set architecture mode (12) CPU0000, PARM 00000001: CC 0
12:19:53 HHCCP007I CPU0000 architecture mode set to z/Arch
12:19:57 CPU0000: SIGP Set architecture mode (12) CPU0000, PARM 0000000000000000: CC 0
12:19:57 HHCCP007I CPU0000 architecture mode set to ESA/390
12:19:57 CPU0000: SIGP Set architecture mode (12) CPU0000, PARM 00000001: CC 0
12:19:57 HHCCP007I CPU0000 architecture mode set to z/Arch
12:19:57 HHCCP014I CPU0000: Operand exception CODE=0015 ILC=4



The following errors occur 10 times at that point (before tracing turned on), all get CMDREJECT on the 410 device


12:19:58 HHCCP050I 0410:SCSW=00824017 Stat=0E00 Count=0018 CCW=7FF8B968
12:19:58 HHCCP048I 0410:CCW=04200018 7FF8B05C=>00000000 00000000 00000000 0000000 ................
12:19:58 HHCCP075I 0410:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 ................
12:19:58 HHCCP076I 0410:Sense=80000000 00000000 00000000 00000000 00000000 00000000
12:19:58 HHCCP077I 0410:Sense=CMDREJ
12:19:58 HHCCP050I 0410:SCSW=00824017 Stat=0E00 Count=0018 CCW=7FF8B968
12:19:58 HHCCP048I 0410:CCW=E4200100 7FF8B05C=>00000000 00000000 00000000 0000000 ................
12:19:58 HHCCP075I 0410:Stat=0C00 Count=0100 =>00000000 00000000 00000000 00000000 ................
12:19:58 HHCCP050I 0410:SCSW=00804007 Stat=0C00 Count=0100 CCW=7FF8B968



Now I query the device and 410 is offline, try vary online and

11:29:51 HCPCPN6895I Device 0410 cannot be varied online
11:30:31 HCPCPN6895 device identification data is inconclusive
I am running Hercules 3.12 , Fishlib 2.12 , CTCI 3,3,3 , WinPcap 4.1.3 on Win 7 64 bit.


I cant find anything on debug/trace for TUN/TAP
Post by ***@gmail.com [hercules-390]
Cleaned up and started over with LCS setting and CTCA setting , LCS
with 2 devices 400/401 and 1 device 400
There has to be something stupid I'm doing or maybe issue with TUN/TAP tool???
No that is not the issue.
Post by ***@gmail.com [hercules-390]
These tests tried Herc 3.11, and Herc 3.12 and Herc 4. All same issues
New test for both LCS and CTCA settings...
# LCS Definitions for TCP/IP Added
0400.2 LCS -o OATFILE.TXT
OATFILE.TXT
**************************************************************
* Dev Mode Port Entry info
**************************************************************
0400 IP 00 PRI 192.168.2.17
0401 IP 01 NO 192.168.2.17
End OATFILE.txt
# CTCI Definitions for TCP/IP Added
0410 3088 CTCI 192.168.2.50 192.168.2.17
Now get following
HHCCP048I 0401:CCW=04200018 7FF7B05C=>00000000 00000000 00000000 00000000 ................
HHCCP075I 0401:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 ................
HHCCP076I 0401:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0401:Sense=CMDREJ
HHCCP075I 0410:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 ................
HHCCP076I 0410:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0410:Sense=CMDREJ
I tried removing the 0401 from OATFILE.TXT leaving the 0400.2 LCS
statement and get same error on 0400 and 0410
Finally I tried only 0400 LCS -o OATFILE
OATFILE.TXT
**************************************************************
* Dev Mode Port Entry info
**************************************************************
0400 IP 00 PRI 192.168.2.17
** And CTCI
0410 3088 CTCI 192.168.2.50 192.168.2.17
And Get the errors on 400 and 410
HHCCP048I 0400:CCW=04200018 7FF8B05C=>00000000 00000000 00000000 00000000 .
HHCCP075I 0400:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 .
HHCCP076I 0400:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0400:Sense=CMDREJ
HHCCP075I 0410:Stat=0E00 Count=0018 =>00000000 00000000 00000000 00000000 .
HHCCP076I 0410:Sense=80000000 00000000 00000000 00000000 00000000 00000000
HHCCP077I 0410:Sense=CMDREJ
HHCCP048I 0410:CCW=04200018 7FF7B05C=>00000000 00000000 00000000 00000000 .
It looks to me that TUN/TAP is not responding/or rejecting or sending
bad data to both the LCS and the CTCA device.
The tt32Test and tt64Test work pinging 192.168.2.17 (host adapter) ,
and pinged from windows cmd to 192.168.2.50 (emulated host IP).
After I boot z/VM, In all cases tested,
CP Q 400 and CP Q 410 respond with Offiine.
and if I vary online I get
HCPCPN6895I Device 0400 cannot be varied online because the device
HCPCPN6895I identification data is inconclusive.
HCPCPN6785E Unable to identify device 0400 dynamically.
1 device(s) specified; 0 device(s) successfully varied online
______________________________________________________________________
______________________________________________________________________
These messages indicate that there is missing or unexpected information
being exchanged between VM and Hercules during dynamic definition of the
devices by VM.

What would be helpful is to start the Hercules CCW traces for devices
400 and 401 _before_ you IPL VM.

Issue commands t+400 and t+401 in the Hercules console before the IPL.
Post the results for whichever network device definition you are
testing. If of course you are using different device numbers in your
Hercules configuration, use those in the t+ commands rather than 400 and
401.

Harold Grovesteen
email4ray2009@gmail.com [hercules-390]
2016-11-13 15:33:44 UTC
Permalink
Note Solved this problem. Windows environment messed up (paths & env settings). cleaned up , and fixed win CMD used to start Hercules , set to run as Administrator. Re-installed Herc 3.12 and CTCI-WIN and WinPcap. After that the TUN/TAP opens LCS or CTCI devices , no more errors.
Loading...