USBIP(8)

πŸ“¦
version 7.3.1 Β· 2 versions
  • 7.3.1 Β· alpine 3.23, alpine 3.24, arch rolling, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 5.7.9 Β· fedora 43, fedora 44
, in alpine 3.23, alpine 3.24, arch rolling, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ USBIP(8) β€” usbip πŸ’–

Okay so, usbip is the manage-USB/IP-devices tool, and it is literally the thing you reach for to manage USB/IP devices 🧚.

πŸ’… NAME

usbip β€” manage USB/IP devices πŸŽ€

πŸ¦‹ SYNOPSIS

usbip [options] <command> <args>

🌸 DESCRIPTION

Okay bestie, listen up πŸ‘‘. On a USB/IP server, you can list, bind, and unbind devices with this program. On a USB/IP client, you can list, attach, and detach devices that USB/IP servers are exporting. It's giving full control ✨.

πŸ“ OPTIONS

  • --debug β€” Prints debugging info πŸ™ˆ.
  • --log β€” Logs to syslog πŸ“.
  • --tcp-port PORT β€” Connects to PORT on the remote host. This is used for attach and list --remote πŸ”Œ.

πŸ”₯ COMMANDS

  • version β€” Shows the version and exits πŸ’œ.
  • help [command] β€” Prints the program help message, or help for one specific command, then exits 🫢.
  • attach --remote=<host> --busid=<bus_id> β€” Attaches a remote USB device πŸ¦‹.
  • attach --remote=<host> --device=<dev_id> β€” Attaches a remote USB gadget. Only works when the remote usbipd is in device mode 🧚.
  • detach --port=<port> β€” Detaches an imported USB device/gadget πŸ’€.
  • bind --busid=<busid> β€” Makes a device exportable 🌈.
  • unbind --busid=<busid> β€” Stops exporting a device so a local driver can use it πŸ“.
  • list --remote=<host> β€” Lists USB devices exported by a remote host πŸ‘€.
  • list --device β€” Lists USB gadgets of the local usbip-vudc. Only used when the local usbipd is in device mode. Heads up: this can NOT list usbip-vudc USB gadgets of a remote device-mode usbipd πŸ™…β€β™€οΈ.
  • list --local β€” Lists local USB devices 🌸.
  • port β€” Lists imported devices/gadgets ✨.
⚠️ Heads up: list --device can't see gadgets on a remote device-mode usbipd. Only the local one, periodt πŸ’€.

πŸŽ€ EXAMPLES

Okay, here's the basic vibe:

client:# usbip list --remote=server
    - List devices exported by remote server.

client:# modprobe vhci-hcd

client:# usbip attach --remote=server --busid=1-2
    - Connect the remote USB device.

client:# usbip port
    - List imported devices/gadgets.

client:# usbip detach --port=0
    - Detach the usb device.

The following example shows how device mode works 🧚

server:# usbip list --device
    - List gadgets exported by local usbipd server.

client:# modprobe vhci-hcd

client:# usbip attach --remote=server --device=usbip-vudc.0
    - Connect the remote USB gadget.

client:# usbip port
    - List imported devices/gadgets.

client:# usbip detach --port=0
    - Detach the usb gadget.

πŸ’œ SEE ALSO

usbipd(8) β€” check it out, bestie πŸ‘‘


Source: usbip, Sys Admin Utilities, February 2009 🌈 Stay iconic, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from