How to scan hardware changes in linux

General discussion about Linux, Linux distribution, using Linux etc.
Post Reply
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

How to scan hardware changes in linux

Post by turab »

Salam,
How do i scan the hardware changes in linux in text mode not by using kudzu ?


Regards,
Turab
Good Judgement comes from Experience and Experience comes from bad Judgement!!
The more I know, the more I realize I don't know!?
The easiest way to find out is to try it!!!
assumption is the mother of all f*** ups

Register Lynx user # 425340
s7r1k3r
Battalion Quarter Master Havaldaar
Posts: 221
Joined: Wed Aug 07, 2002 3:02 pm
Location: Rawalpindi

dmesg

Post by s7r1k3r »

Use the dmesg command. It will show you if any hardware is plugged into your computer etc.
a10n3 s7r1k3r
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

Post by turab »

Hello,
Look friend, i am asking about a command like hardware scanner in windows, which can detect the hardware changes in the system. like device manager just right click on it and then click on scan for hardware changes.
Thanks :)
Good Judgement comes from Experience and Experience comes from bad Judgement!!
The more I know, the more I realize I don't know!?
The easiest way to find out is to try it!!!
assumption is the mother of all f*** ups

Register Lynx user # 425340
outhanger
Battalion Quarter Master Havaldaar
Posts: 214
Joined: Sun Apr 18, 2004 5:58 pm
Location: CEME, Pindi

Post by outhanger »

There's no unix utility that'll tell you your hardware has changed, unless you mean hotplugging (for which you need hotplug or udev).
You can use lspci to see some of your hardware info. And cat /proc/cpuinfo for information about your processor.

You should explain what kind of hardware change you mean, so i can answer properly.
"Where blasphemy is a crime, religious freedom does not exist." - Stallman to Musharraf
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear turab,
Salam,

Also take a look into this file which contain all hardware information.

# less /etc/sysconfig/hwconf

Also take a look into this utility.

FYI, http://www.integratewith.net

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear
Salam,

Try Linux Hardware Lister.

FYI, http://dag.wieers.com/packages/lshw/

# lshw > farrukh.txt
# cat farrukh.txt

Code: Select all

mbox
    description: Computer
    product: 864439U
    vendor: IBM
    serial: 23YP990
    capabilities: dmi-2.0
  *-core
       description: Motherboard
       vendor: IBM
       physical id: 0
       slot: Internal L2 Cache
     *-firmware
          description: BIOS
          vendor: IBM
          physical id: 0
          version: NNKT35AUS (04/28/99)
          size: 64KB
          capacity: 192KB
          capabilities: isa pci pnp apm upgrade shadowing cdboot bootselect int13floppynec int13floppytoshiba int13floppy360
int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video
     *-cpu:0
          description: CPU
          product: Pentium II (Deschutes)
          vendor: Intel Corp.
          physical id: 4
          version: 6.5.1
          slot: CPU
          size: 333MHz
          capacity: 333MHz
          clock: 66MHz
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 mmx fxsr
        *-cache:0
             description: L1 cache
             physical id: 0
             size: 32KB
        *-cache:1
             description: L2 cache
             physical id: 1
             size: 512KB
     *-cpu:1
          description: CPU
          product: Pentium II (Deschutes)
          vendor: Intel Corp.
          physical id: 5
          version: 6.5.1
          slot: CPU
          size: 333MHz
          capacity: 333MHz
          clock: 66MHz
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 mmx fxsr
        *-cache:0
             description: L1 cache
             physical id: 0
             size: 32KB
        *-cache:1
             description: L2 cache
             physical id: 1
             size: 512KB
     *-bank:0 UNCLAIMED
          description: EDO ECC DIMM SDRAM
          physical id: 1
          slot: DIMM 0
     *-bank:1 UNCLAIMED
          description: DIMM SDRAM
          physical id: 2
          slot: DIMM 1
          size: 128MB
          capacity: 128MB
          clock: 15MHz (66ns)
     *-bank:2 UNCLAIMED
          description: EDO ECC DIMM SDRAM
          physical id: 3
          slot: DIMM 2
     *-bank:3 UNCLAIMED
          description: EDO ECC DIMM SDRAM
          physical id: 6
          slot: DIMM 3
     *-memory
          description: System memory
          product: EDO ECC DIMM SDRAM Memory Controller
          physical id: a
          size: 128MB
          capacity: 512MB
     *-cache:0 UNCLAIMED
          description: L1 cache
          physical id: b
          slot: Internal L1 Cache
          size: 32KB
          capacity: 32KB
          capabilities: asynchronous internal write-back
     *-cache:1 UNCLAIMED
          description: L2 cache
          physical id: c
          slot: Internal L2 Cache
          size: 512KB
          capacity: 512KB
          capabilities: asynchronous internal write-back
     *-cache:2 UNCLAIMED
          description: L1 cache
          physical id: d
          slot: Internal L1 Cache
          size: 32KB
          capacity: 32KB
          capabilities: asynchronous internal write-back
     *-cache:3 UNCLAIMED
          description: L2 cache
          physical id: e
          slot: Internal L2 Cache
          size: 512KB
          capacity: 512KB
          capabilities: asynchronous internal write-back
     *-pci
          description: Host bridge
          product: 440LX/EX - 82443LX/EX Host bridge
          vendor: Intel Corp.
          physical id: f0000000
          bus info: pci@00:00.0
          version: 03
          clock: 33MHz
          resources: iomemory:f0000000-f3ffffff
        *-pci
             description: PCI bridge (Normal decode)
             product: 440LX/EX - 82443LX/EX AGP bridge
             vendor: Intel Corp.
             physical id: 1
             bus info: pci@00:01.0
             version: 03
             clock: 66MHz
             capabilities: pci normal_decode bus_master
           *-display UNCLAIMED
                description: VGA compatible controller (VGA)
                product: 86C326 5598/6326
                vendor: Silicon Integrated Systems [SiS]
                physical id: 0
                bus info: pci@01:00.0
                version: 92
                size: 8MB
                clock: 66MHz
                capabilities: vga bus_master cap_list
                resources: iomemory:f7000000-f77fffff iomemory:f7ff0000-f7ffffff ioport:7880-78ff
        *-isa UNCLAIMED
             description: ISA bridge
             product: 82371AB/EB/MB PIIX4 ISA
             vendor: Intel Corp.
             physical id: 2
             bus info: pci@00:02.0
             version: 01
             clock: 33MHz
             capabilities: isa bus_master
        *-ide
             description: IDE interface
             product: 82371AB/EB/MB PIIX4 IDE
             vendor: Intel Corp.
             physical id: 2.1
             bus info: pci@00:02.1
             version: 01
             clock: 33MHz
             capabilities: ide
             configuration: driver=PIIX_IDE
             resources: ioport:fff0-ffff
        *-usb UNCLAIMED
             description: USB Controller (UHCI)
             product: 82371AB/EB/MB PIIX4 USB
             vendor: Intel Corp.
             physical id: 2.2
             bus info: pci@00:02.2
             version: 01
             clock: 33MHz
             capabilities: uhci
             resources: irq:161
        *-bridge UNCLAIMED
             description: Bridge
             product: 82371AB/EB/MB PIIX4 ACPI
             vendor: Intel Corp.
             physical id: 2.3
             bus info: pci@00:02.3
             version: 01
             clock: 33MHz
             capabilities: bridge
             resources: irq:9
        *-network
             description: Ethernet controller
             product: 82557/8/9 [Ethernet Pro 100]
             vendor: Intel Corp.
             physical id: 3
             bus info: pci@00:03.0
             logical name: eth0
             version: 02
             serial: 00:04:ac:16:27:9b
             clock: 33MHz
             capabilities: bus_master mii autonegotiation 100bt-fd 100bt 10bt-fd 10bt ethernet physical
             configuration: autonegociated=100bt broadcast=yes driver=e100 driverversion=3.0.27-k2-NAPI duplex=full firmware=
N/A ip=202.5.145.56 link=yes multicast=yes
             resources: iomemory:f6fff000-f6ffffff ioport:64e0-64ff iomemory:f7e00000-f7efffff irq:161
        *-scsi:0
             description: SCSI storage controller
             product: AHA-2940U/UW / AHA-39xx / AIC-7895
             vendor: Adaptec
             physical id: 9
             bus info: pci@00:09.0
             version: 03
             clock: 33MHz
             capabilities: scsi bus_master
             configuration: driver=aic7xxx
             resources: iomemory:f7dfe000-f7dfefff irq:153
        *-scsi:1
             description: SCSI storage controller
             product: AHA-2940U/UW / AHA-39xx / AIC-7895
             vendor: Adaptec
             physical id: 9.1
             bus info: pci@00:09.1
             version: 03
             clock: 33MHz
             capabilities: scsi bus_master
             configuration: driver=aic7xxx
             resources: iomemory:f7dff000-f7dfffff irq:153
     *-scsi
          physical id: 7
          bus info: scsi@1
          logical name: scsi1
          configuration: driver=aic7xxx
        *-channel
             description: Channel 0
             physical id: 0
             bus info: scsi@0.0
           *-disk UNCLAIMED
                description: SCSI Disk
                product: DNES-309170W
                vendor: IBM
                physical id: 0
                bus info: scsi@0.0:0.0
                version: SA30
                capacity: 8964MB
                capabilities: 7200rpm
                configuration: ansiversion=3
  *-scsi
       physical id: 1
       bus info: scsi@0
       logical name: scsi0
       configuration: driver=aic7xxx
  *-network DISABLED
       description: IP6inIP4 interface
       physical id: 2
       logical name: sit0
       capabilities: ip6inip4 logical
Best Regards.
Farrukh Ahmed
eshban
Cadet
Posts: 6
Joined: Wed Jul 19, 2006 12:10 pm

use this command

Post by eshban »

use the command

kudzu

to detect new hardware
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: use this command

Post by lambda »

poster's question:
turab wrote:How do i scan the hardware changes in linux in text mode not by using kudzu ?
your reply:
eshban wrote:use the command

kudzu

to detect new hardware
perhaps you'd like to change your answer?
newbie
Company Havaldaar Major
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
Location: lahore

Post by newbie »

u dont have kudzu in every distro.

i think "dmesg" can work because kernel is the first one to know :P
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

use any linux based inventory system which can alert you when any hardware installed or removed in system
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
Post Reply