Visit The New, Modern Unix Linux Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #405
Difficulty: Medium
Cygwin consists of three parts: a dynamic-link library (DLL) as an API compatibility layer in the form of a C standard library providing a substantial part of the POSIX API functionality, an extensive collection of software tools and applications that provide a Unix-like look and feel, and an MOTIF-based window manager.
True or False?
Linux & Unix Commands - Search Man Pages

usbdump(8) [freebsd man page]

USBDUMP(8)						    BSD System Manager's Manual 						USBDUMP(8)

NAME
usbdump -- dump traffic on USB host controller SYNOPSIS
usbdump [-i ifname] [-r file] [-s snaplen] [-v] [-w file] [-f filter] [-b file] [-h] DESCRIPTION
The usbdump utility provides a way to dump USB packets on host controllers. The following options are accepted: -b file Store data part of the USB trace in binary format to the given file. This option also works with the -r and -f options. -i ifname Listen on USB bus interface ifname. -r file Read the raw packets from file. This option also works with the -f option. -s snaplen Snapshot snaplen bytes from each packet. -v Enable debugging messages. When defined multiple times the verbosity level increases. -w file Write the raw packets to file. This option also works with the -s and -v options. -f filter The filter argument consists of either one or two numbers separated by a dot. The first indicates the device unit number which should be traced. The second number which is optional indicates the endpoint which should be traced. To get all traffic for the control endpoint, two filters should be created, one for endpoint 0 and one for endpoint 128. If 128 is added to the endpoint num- ber that means IN direction, else OUT direction is implied. A device unit or endpoint value of -1 means ignore this field. If no filters are specified, all packets are passed through using the default -1,-1 filter. This option can be specified multiple times. -h This option displays a summary of the command line options. EXAMPLES
Capture the USB raw packets on usbus2: usbdump -i usbus2 -s 256 -v Dump the USB raw packets of usbus2 into the file without packet size limit: usbdump -i usbus2 -s 0 -w /tmp/dump_pkts Dump the USB raw packets of usbus2, but only the control endpoint traffic of device unit number 3: usbdump -i usbus2 -s 0 -f 3.0 -f 3.128 -w /tmp/dump_pkts Read and display the USB raw packets from previous file: usbdump -r /tmp/dump_pkts -v OUTPUT FORMAT
The output format of usbdump is as follows: <time> <bus>.<addr> <ep> <xfertype> <S/D> (<frames>/<length>) <...> The meaning of the output format elements is as follows: <time> A timestamp preceding all output lines. The timestamp has the format "hh:mm:ss.frac" and is as accurate as the kernel's clock. <bus> The USB host controller's bus unit number. <addr> The unique number of the USB device as allocated by the host controller driver. <ep> The USB endpoint address that indicates whether the address is OUT or IN. <xfertype> The USB transfer type. Can be CTRL, ISOC, BULK or INTR. <S/D> `S' indicates a USB submit. `D' indicates a USB transfer done. <frames> Numbers of frames in this packets. If this is a USB submit, its value is xfer->nframes which means how many frames are accept- able or registered to transfer. If this is a USB done, xfer->aframes is the actual number of frames. <length> Total packet size. If this is a USB submit, its value is xfer->sumlen. If this is a USB done, its value is xfer->actlen. <...> Optional field used for printing an error string if the packet is from USB done. SEE ALSO
usbconfig(8) AUTHORS
Weongyo Jeong <weongyo@FreeBSD.org> BSD
April 24, 2012 BSD

Check Out this Related Man Page

USBCONFIG(8)						    BSD System Manager's Manual 					      USBCONFIG(8)

NAME
usbconfig -- configure the USB subsystem SYNOPSIS
usbconfig [-u unit] [-a addr] [cmds...] usbconfig [-d [ugen]<unit>.<addr>] [cmds...] DESCRIPTION
The usbconfig utility is used to configure and dump information about the USB subsystem. The options are as follows: -u unit Limit device range to USB devices connected to the given USBUS unit. -a addr Limit device range to the given USB device index. Should only be used in conjunction with the unit argument. -d [ugen]<unit>.<addr> Limit device range to USB devices connected to the given unit and address. The unit and address coordinates may be prefixed by the lowercased word "ugen". -h Show help and available commands. When called without options, usbconfig prints a list of all available USB devices. EXAMPLES
Show information about the device on USB bus 1 at address 2: usbconfig -u 1 -a 2 dump_info Dump HID descriptor for device on USB bus 1 at address 2: usbconfig -u 1 -a 2 do_request 0x81 0x06 0x2200 0 0x100 Dump string descriptor at index Z for device on USB bus 1 at address 2: usbconfig -u 1 -a 2 dump_string Z Dump current configuration descriptor for device on USB bus 1 at address 2: usbconfig -u 1 -a 2 dump_curr_config_desc Dump device descriptor for device on USB bus 1 at address 2: usbconfig -u 1 -a 2 dump_device_desc Program the device on USB bus 1 at address 2 to suspend, resume, power off, go into power save, or power on: usbconfig -u 1 -a 2 suspend usbconfig -u 1 -a 2 resume usbconfig -u 1 -a 2 power_off usbconfig -u 1 -a 2 power_save usbconfig -u 1 -a 2 power_on Display a list of available quirk names: usbconfig dump_quirk_names See usb_quirk(4) for more information on quirks. SEE ALSO
usb(4), usb_quirk(4) BSD
January 6, 2010 BSD

Featured Tech Videos