wiki:manuals/dCache_clients/client_dccp
Last modified 11 years ago Last modified on 09/23/09 15:09:30

The dCache dccp client

dCache provides a series of clients dccp uses the native dCache transfer protocols of dcap and its secured version gsidcap.

Using dccp as a dcap client

unset DCACHE_IO_TUNNEL
$/opt/d-cache/dcap/bin/dccp    /etc/group dcap://leoben.desy.de:22125//pnfs/desy.de/data/dteam/test6
Command failed!
Server error message for [1]: "path //pnfs/desy.de/data/dteam/test6 not found" (errno 10001).
597 bytes in 0 seconds

Using dccp as a gsidcap client

export DCACHE_IO_TUNNEL=libgsiTunnel.so  
$/opt/d-cache/dcap/bin/dccp    /etc/group gsidcap://leoben.desy.de:22128//pnfs/desy.de/data/dteam/test5
Command failed!
Server error message for [1]: "path //pnfs/desy.de/data/dteam/test5 not found" (errno 10001).
597 bytes in 0 seconds

Using debug flags with dccp

$/opt/d-cache/dcap/bin/dccp -d 63   /etc/group dcap://leoben.desy.de:22128//pnfs/desy.de/data/dteam/test3
Dcap Version version-1-2-42 Jul 10 2007 19:56:02
Using system native stat64 for /etc/group.
Allocated message queues 0, used 0

Using environment variable as configuration
Allocated message queues 1, used 1

Creating a new control connection to leoben.desy.de:22128.
Activating IO tunnel. Provider: [libgsiTunnel.so].
Added IO tunneling plugin libgsiTunnel.so for leoben.desy.de:22128.
Setting IO timeout to 20 seconds.
Connected in 0.00s.
Removing IO timeout handler.
Sending control message: 0 0 client hello 0 0 2 42 -uid=501 -pid=32253 -gid=501
Server reply: welcome.
dcap_pool:  POLLIN on control line [3] id=1
Connected to leoben.desy.de:22128
Sending control message: 1 0 client stat "dcap://leoben.desy.de:22128//pnfs/desy.de/data/dteam/test3" -uid=501
Command failed!
Server error message for [1]: "path //pnfs/desy.de/data/dteam/test3 not found" (errno 10001).
[-1] unpluging node
Removing unneeded queue [1]
[-1] destroing node
Real file name: /etc/group.
Using system native open for /etc/group.
extra option:  -alloc-size=597 
[Fri Sep  7 17:50:56 2007] Going to open file dcap://leoben.desy.de:22128//pnfs/desy.de/data/dteam/test3 in cache.
Allocated message queues 2, used 1

Using environment variable as configuration
Activating IO tunnel. Provider: [libgsiTunnel.so].
Added IO tunneling plugin libgsiTunnel.so for leoben.desy.de:22128.
Using existing control connection to leoben.desy.de:22128.
Setting hostname to clinton.desy.de.
Sending control message: 2 0 client open "dcap://leoben.desy.de:22128//pnfs/desy.de/data/dteam/test3" w -mode=0644 -truncate clinton.desy.de 33122 -timeout=-
1 -onerror=default  -alloc-size=597  -uid=501
Polling data for destination[6] queueID[2].
Got callback connection from leoben.desy.de:35905 for session 2, myID 2.
cache_open -> OK
Enabling checksumming on write.
Cache open succeeded in 0.62s.
[7] Sending IOCMD_WRITE.
Entered sendDataMessage.
Polling data for destination[7] queueID[2].
[7] Got reply 4x12 bytes len.
[7] Reply: code[6] response[1] result[0].
get_reply: no special fields defined for that type of response.
[7] Got reply 4x12 bytes len.
[7] Reply: code[7] response[1] result[0].
get_reply: no special fields defined for that type of response.
[7] Expected position: 597 @ 597 bytes written.
Using system native close for [5].
[7] unpluging node
File checksum is: 460898156
Sending CLOSE for fd:7 ID:2.
Setting IO timeout to 300 seconds.
Entered sendDataMessage.
Polling data for destination[7] queueID[2].
[7] Got reply 4x12 bytes len.
[7] Reply: code[6] response[4] result[0].
get_reply: no special fields defined for that type of response.
Server reply: ok destination [2].
Removing IO timeout handler.
Removing unneeded queue [2]
[7] destroing node
597 bytes in 0 seconds

Debugging

The dcap libraries and dccp client use a bit mask variable.

export DCACHE_DEBUG=255

255 is the highest level of debugging, but may prove unstable, I would recommend lower levels with 1,2,4,8.