Syntax
Global Options
| Option | Description |
|---|---|
--box TEXT | Lagerbox name or IP address |
--help | Show help message and exit |
Arguments
| Argument | Description |
|---|---|
NET_NAME | USB net name (optional - lists nets if omitted) |
COMMAND | Power command: enable, disable, or toggle |
Commands
| Command | Description |
|---|---|
enable | Enable (power on) the USB port |
disable | Disable (power off) the USB port |
toggle | Toggle the current power state |
Usage
List USB Nets
When invoked without a net name, lists all USB nets on the gateway:Control USB Port Power
Examples
Supported Hardware
| Manufacturer | Model | Description |
|---|---|---|
| Acroname | USBHub3+ | Programmable USB 3.0 hub |
| Acroname | USBHub2x4 | 4-port programmable hub |
| YKUSH | YKUSH3 | USB switchable hub |
Notes
- Net names (e.g.,
USB1,CAM_USB) refer to USB ports configured on your testbed - Commands are case-insensitive (
enable,ENABLE, andEnableall work) - Useful for power cycling USB devices during testing
- USB hubs must be connected to the gateway and configured as instruments
- Default net can be set with
lager defaults add --usb-net - Create USB nets with
lager nets create <name> usb <channel> <address>

