Blog

Chapter 9 Advanced Linux commands!

Tags: commandshardware detailshardware infolist usb devices

Published on: May 16, 2009 by Faheem P.

Chapter 9 Advanced Linux commands!

Scenario:

As a Linux server administration company we need some advanced linux commands for troubleshooting issues on Linux servers, Here are some advanced Linux commands to list the hardware details.

Device Identification commands:

/usr/src/linux/Documentation/devices.txt

hardinfo

hwinfo – Shows detailed information about any hardware.

Usage –> hwinfo –help

=================================
O/p of hwinfo –mouse command ran on a laptop with touchpad and a ps/2 optical mouse connected to a USB port using a PS/2-USB converter

hwinfo –mouse
38: USB 00.1: 10503 USB Mouse
[Created at usb.122]
UDI: /org/freedesktop/Hal/devices/usb_device_a81_205_noserial_if1
Unique ID: iVWJ.8QOQCbci8S5
Parent ID: pBe4.vfMN5defVA1
SysFS ID: /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.1
SysFS BusID: 2-1:1.1
Hardware Class: mouse
Model: “CHESEN PS2 to USB Converter”
Hotplug: USB
Vendor: usb 0x0a81 “CHESEN”
Device: usb 0x0205 “PS2 to USB Converter”
Revision: “0.10”
Compatible to: int 0x0210 0x0015
Driver: “usbhid”
Driver Modules: “usbhid”
Device File: /dev/input/mice (/dev/input/mouse1)
Device Files: /dev/input/mice, /dev/input/mouse1, /dev/input/event3, /dev/input/by-id/usb-CHESEN_PS2_to_USB_Converter-event-mouse, /dev/input/by-path/pci-0000:00:1d.1-usb-0:1:1.1-event-mouse, /dev/input/by-id/usb-CHESEN_PS2_to_USB_Converter-mouse, /dev/input/by-path/pci-0000:00:1d.1-usb-0:1:1.1-mouse
Device Number: char 13:63 (char 13:33)
Speed: 1.5 Mbps
Module Alias: “usb:v0A81p0205d0010dc00dsc00dp00ic03isc01ip02”
Driver Info #0:
Buttons: 5
Wheels: 1
XFree86 Protocol: explorerps/2
GPM Protocol: exps2
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #33 (Hub)

42: ADB 00.0: 10502 Bus Mouse
[Created at input.159]
UDI: /org/freedesktop/Hal/devices/computer_logicaldev_input
Unique ID: kZYT.9XB1QYZ8Aa7
Hardware Class: mouse
Model: “Apple Macintosh mouse button emulation”
Vendor: int 0x0100 “Apple”
Device: int 0x0300 “Macintosh mouse button emulation”
Compatible to: int 0x0210 0x0003
Device File: /dev/input/mice (/dev/input/mouse0)
Device Files: /dev/input/mice, /dev/input/mouse0, /dev/input/event0
Device Number: char 13:63 (char 13:32)
Driver Info #0:
Buttons: 3
Wheels: 0
XFree86 Protocol: explorerps/2
GPM Protocol: exps2
Config Status: cfg=new, avail=yes, need=no, active=unknown

44: PS/2 00.0: 10500 PS/2 Mouse
[Created at input.159]
UDI: /org/freedesktop/Hal/devices/platform_i8042_i8042_AUX3_port_logicaldev_input
Unique ID: AH6Q.845qvaQafo3
Hardware Class: mouse
Model: “SynPS/2 Synaptics TouchPad”
Vendor: int 0x0212
Device: int 0x0001 “SynPS/2 Synaptics TouchPad”
Compatible to: int 0x0210 0x0003
Device File: /dev/input/mice (/dev/input/mouse2)
Device Files: /dev/input/mice, /dev/input/mouse2, /dev/input/event4, /dev/input/by-path/platform-i8042-serio-4-event-mouse, /dev/input/by-path/platform-i8042-serio-4-mouse
Device Number: char 13:63 (char 13:34)
Driver Info #0:
Buttons: 3
Wheels: 0
XFree86 Protocol: explorerps/2
GPM Protocol: exps2
Config Status: cfg=new, avail=yes, need=no, active=unknown

=================================

MAKEDEV and mknod – mentioned earlier

lspci – list devices using Peripheral Component Interconnect bus. Options to check out is lspci -t and -v
lsdev  – options to check are -P, -H, -C
lsusb – lsusb is a utility for displaying information about USB buses in the system and the devices connected to them.
lssci – lists your scsi devices
hdparm – display drive geometry
dmidecode – Reports information about your system’s hardware as described in your system BIOS, overriding the information kernel gives you inside /proc

Category : Linux, Training

Faheem P.

Faheem P.

Faheem enjoys learning new technologies and loves to implement cutting edge solutions. He is one of the most active member in various technical forums and is a familiar face in various brain storming sessions. He takes great pride in being an explorer and the best thing you can be sure about in his room is the backpack!!

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Categories

Your Cart

Cart is empty.

Subtotal
₹0.00
APPLY
0
Send this to a friend