Map USB device to server IP address

Hello!

I need some way to determine from which IP addresses OS USB devices (from the lsusb output) came from. I was trying to implement this using device serial numbers, but for some strange reason DEVICE INFO command just stopped working and now prints an empty line. usbip -p command prints 'unknown host' for all connected devices. Is there any other ways to make a list mapping lsusb output to servers' ip addresses?

#2

The only way to do it is to link by serial number, but not all devices have serial numbers or even have unique serial numbers so its not generally solvable.

Here is an example of the DEVICE INFO command

michael@ubuntu:~$ ./vhclientx86_64 -t "DEVICE INFO,synology.11"
ADDRESS: synology.11
VENDOR: Verbatim
VENDOR ID: 0x13fe
PRODUCT: STORE N GO
PRODUCT ID: 0x3623
SERIAL: 079C03070660144A
IN USE BY: YOU

If you request device info with an invalid device address then the result will be a blank line e.g (synology.12 is not a device)

michael@ubuntu:~$ ./vhclientx86_64 -t "DEVICE INFO,synology.12"

#3

Hello, Michael

I'm definetely sure that I enter correct device address and it was printed previously. I even tried to plugin another device and copy paste addresses from the LIST output. I get all information for the new device (android tablet) and nothing for the old one (not even vendor and product IDs). I'm testing that using two VirtualBox VMs, may it be the reason?

#4

Output:
xojiod@testhost:~$ sudo ./vhuit64 -t "LIST"
VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)

Windows Hub (testhost2:7575)
*--> MF3010 DONE (testhost2.2) (In-use by you)
--> USB Tablet (testhost2.1)

Auto-Find currently on
Auto-Use All currently off
Reverse Lookup currently off
VirtualHere Client not running as a service
xojiod@testhost:~$ sudo ./vhuit64 -t "DEVICE INFO,testhost2.1"
ADDRESS: testhost2.1
VENDOR: VirtualBox
VENDOR ID: 0x80ee
PRODUCT: USB Tablet
PRODUCT ID: 0x0021
IN USE BY: NO ONE
xojiod@testhost:~$ sudo ./vhuit64 -t "DEVICE INFO,testhost2.2"

xojiod@testhost:~$

#5

OK, im still unable to reproduce the issue, it all works for me.

Can you do the steps you just did above but after running ./vhuit64 -t "DEVICE INFO,testhost.22" can you run ./vhuit64 -t "LIST"

#6


xojiod@testhost:~$ sudo ./vhuit64 -t "LIST"
VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)

Windows Hub (winhost:7575)
*--> MF3010 (winhost.2) (In-use by you)
--> USB Tablet (winhost.1)

Auto-Find currently on
Auto-Use All currently off
Reverse Lookup currently off
VirtualHere Client not running as a service
xojiod@testhost:~$ sudo ./vhuit64 -t "DEVICE INFO,winhost.2"

xojiod@testhost:~$ sudo ./vhuit64 -t "LIST"
VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)

Windows Hub (winhost:7575)
*--> MF3010 (winhost.2) (In-use by you)
--> USB Tablet (winhost.1)

Auto-Find currently on
Auto-Use All currently off
Reverse Lookup currently off
VirtualHere Client not running as a service
xojiod@testhost:~$

Device (scanner) is working perfectly

#7

I can give you SSH access to that VM, if you wish :)

#8

Ok, ssh would be good, ill install a version with more logging so i can see where the problem is. Email details to mail [at] virtualhere.com (mail[at]virtualhere[dot]com)