Digi TransPort WR31 User Manual page 836

Hide thumbs Also See for TransPort WR31:
Table of Contents

Advertisement

Device administration
Disable/enable the USB ports
If required, you can disable the external USB ports. Disabling the USB ports prevents any
unauthorized copying of files to or from the router, or unauthorized use of flash drives or serial
devices connected to the USB ports. To disable the USB ports, use the usbcon command. The
parameters to use on the usbcon command are:
dislist
Disables the USB port.
enalist
Explicitly enables a list of USB drivers. The driver list can be comma-separated to specify more
than one driver if required.
The format of the usbcon command to disable the USB port is:
usbcon 0 usb-x-p<.p>.<DRIVER>
Where:
x=1 for the bottom USB port and 2 for the top port.
p=<port #> (if connected to a USB hub the port numbers can increase).
DRIVER=MSD for Mass Storage Device, SERIAL for serial devices, or HUB for hub devices.
For example:
To disable a Flash Stick on the top port only:
usbcon 0 dislist usb-2-2.MSD
To use wildcards to disable flash devices entirely:
usbcon 0 dislist usb-*.MSD
This will match on ALL MSD devices even if in another HUB.
To disable both external USB ports on a DR64x0, enter the following commands:
usbcon 0 dislist "usb-1-2*,usb-2-2*"
or
usbcon 0 dislist "usb-?-2*"
The final -2 is important in both cases. Otherwise, the command disables the internal USB
devices, which could include connections to the wireless module or other components.
To disable serial devices from using either external USB port on a DR64x0, or on a port
connected to a hub on either these ports:
usbcon 0 dislist "usb-1-2*.SERIAL,usb-2-2*.SERIAL"
or
usbcon 0 dislist usb-?-2*.SERIAL
The enalist takes the same format, but when matches occur, it enables the device. If a device
matches the enable list as well as the disable list, the enable list takes preference. When a device
matches a list an event is written to the event log of the form:
"USB device usb-1-2.4.MSD disabled"
or, if the device matches the enalist:
"USB device usb-1-2.4.MSD enabled"
Digi TransPort WR Routers User Guide
Manage files
825

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents