Automatically Use a Device?

Good morning all from a very sunny Wales :)

I have one Raspberry Pi VH Server located in our shop with about 6 devices attached including printers, cutters and USB security dongles. I quite often leave my computer VH client in the shop using a printer.

My question is, if I then change to another computer VH client and try to use the same printer left 'in use' on my other computer, how can I stop using this printer on the 1st computer so I can use it on the 2nd without having to go to the 1st computer to 'stop using the printer'?

I hope I've explained correctly :)

Cheers

John

#2

Hi John, sure just start the client in administrator mode (-a argument, eg vhui64.exe -a) then right click on an in-use device and select "Disconnect from User"

#3

Thanks Michael, I knew there'd be a simple solution!

I used to remote control (Teamviewer) onto my computer using the device and release it that way :) Unfortunately, I can no longer use Teamviewer hence the question :) Your answer provides a better solution anyway :)

John

#4

Hi Michael,
How to do the same steps: " just start the client in administrator mode (-a argument, eg vhui64.exe -a) then right click on an in-use device and select "Disconnect from User"" using Linux CLI client?
vhclientx86_64 -at "Disconnect from User" shows next erorr: ERROR: Unknown IPC request "Disconnect from User"
Thnks

#5

./vhclientx86_64 -t "STOP USING,address"

replace address with (for example) raspberrypi.113

#6

Hi Michael,
Maybe I am doing something wrong, but I am unable to disconnect USB client 1 using USB client 2.

Example setup:
PC1(10.200.0.107) used some USB device(currently do not required it), but device still attached to PC2
PC2(10.200.0.108) required to use the same USB device which currently attached to PC1.
But for use it - we need to detach device on PC1 before use on PC2. For detach it on PC1 - I need to go to PC 1 and do command: vhclientx86_64 -t "STOP USING,SOMESERVER.114"
I can do command on PC2: vhclientx86_64 -t "STOP USING ALL" - but it will disconnect all devices on all clients(for example when will be used 2+ devices - all will be disconnected).

Command which you wrote above does not work on PC2:
vhclientx86_64 -at "STOP USING,maint-HP-Z200-Workstation-GW.214"
FAILED
or
vhclientx86_64 -t "STOP USING,maint-HP-Z200-Workstation-GW.214"
FAILED
When do the same command on PC1(all works):
vhclientx86_64 -t "STOP USING,maint-HP-Z200-Workstation-GW.214"
OK

Is it possible to disconnect only 1 specified USB device attached to client 1 from client 2?
Thanks

#7

It definitely works (just tested again from my ubuntu client) You might not be specifying the correct address

michael@ubuntu:~$ ./vhclientx86_64 -t list
VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)

CloudHub_MR3020 (CloudHub_233d26:7575) 
   --> STORE N GO (CloudHub_233d26.11) (In-use by:Michael Broadfoot (michael) at 192.168.0.11)

Auto-Find currently on
Auto-Use All currently off
Reverse Lookup currently off
Reverse SSL Lookup currently on
VirtualHere Client is running as a service

michael@ubuntu:~$ ./vhclientx86_64 -t "STOP USING,CloudHub_233d26.11"
OK