12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

154CHAPTER 6Analyzing HardwareLISTING 6.3ContinuedRegion 2: I/O ports at 1010 [size=8]Region 3: I/O ports at 1020 [size=4]Region 4: I/O ports at 1000 [size=16]Region 5: Memory at 92004800 (32-bit, non-prefetchable) [size=1K]Expansion ROM at fff80000 [disabled] [size=512K]Capabilities: [60] Power Management version 2Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)Status: D0 PME-Enable- DSel=0 DScale=2 PME-The lspci utility works by probing the device for its PCI ID. Then, this ID number iscross-referenced with the /usr/share/hwdata/pci.ids file from the hwdata package. Thisfile contains the vendor, device, subvendor, subdevice, and class identifiers for all knownPCI IDs.TIPTo change the output of lspci to a format easier to parse using a script, use the -mswitch. This argument will place quotation marks around each device property.Listing USB DevicesBecause USB devices are connected to a separate controller, a different command, lsusb,must be used to list them. The lsusb utility is provided by the usbutils package. Installthis package via <strong>Red</strong> <strong>Hat</strong> Network if necessary as described in Chapter 3.If executed without arguments, the lsusb command displays each USB bus and anydevices attached to them on a separate line as shown in Listing 6.4.LISTING 6.4USB Device ListBus 002 Device 001: ID 0000:0000Bus 003 Device 001: ID 0000:0000Bus 004 Device 001: ID 0000:0000Bus 005 Device 001: ID 0000:0000Bus 001 Device 001: ID 0000:0000Bus 001 Device 004: ID 046d:c501 Logitech, Inc. Cordless Mouse ReceiverSimilar to PCI devices, each USB device has a unique ID. lsusb probes for this ID and referencesthe /usr/share/hwdata/usb.ids file for the vendor, product name, and modelnumber. If this information is found for the ID, this more user-friendly information isdisplayed in the lsusb output as shown in the last line of Listing 6.4 for the cordless mouse.To view more information about each bus, use the command lsusb -v. For example,Listing 6.5 shows the verbose output for the cordless mouse from Listing 6.4.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!