Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage help #1

Open
hmedrano opened this issue Mar 30, 2021 · 2 comments
Open

Usage help #1

hmedrano opened this issue Mar 30, 2021 · 2 comments

Comments

@hmedrano
Copy link

Hi, I recently compiled ibcp, and I'm still stuck on how to make it work.
I tried:

$ ibcp -v -f /tmp/myfileserverA  -s server.destination
IS Client: 1
start to read
TCP connection was established
searching for IB devices in host
found 1 device(s)
MR was registered with addr=0x2aaabaaca010, lkey=0xf8010fa7, rkey=0xf8010fa7, flags=0x4
QP was created, QP number=0x1b65a

Local LID        = 0x2
Remote address   = 0x7fd7b280a010
Remote rkey      = 0x8010001
Remote QP number = 0x222
Remote LID       = 0x4e
QP state was change to RTR
Connection established
read file:/tmp/myfileserverA
-----------SUMMARY-------------------
head_node	filename:/tmp/myfileserverA
name:/tmp/myfileserverA
size:3692
mode:33188
-------------------------------------------
Client send data end, waiting for remote to finish writing
--------------------------------------------
Remote write finished

ibcp exists in server.destination, and it creates the ibcp server instance.
The message after the operation seems successful, but I don't know where the file is written in server.destination .

Thanks

@idealtech-i3dlabs
Copy link

idealtech-i3dlabs commented May 5, 2021

Quite interesting, I'm trying to do the same.
Can you provide examples of what server.destination could be and where to get the value ?

@hmedrano
Copy link
Author

Thanks for the response. Maybe I wasn't that clear.
I checked the source code of ibcp, and maybe I didn't go that deep, but what I saw is the following:

That I need to have binaries of ibcp in the server source, and the server destination. So the server/client operation can work.
When I run a transfer operation, like this:

ibcp -v -f mybig.file -s 9.9.9.9

Then ibcp will make an ssh connection to the 9.9.9.9 server and start a server instance of ibcp. (https://github.com/UniqueStudio/ibcp/blob/master/main.c#L135)

All of this seems to work fine, according to the output messages (See my first comment), but.. I don't know where the file is deposited in the server destination, this case 9.9.9.9. It's obvious that I'm not using the tool correctly, I'll like it if you could explain the correct usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants