Hardware info from the command line

Discussion in 'Windows & Other OS Discussion & Support' started by merry, Nov 2, 2006.

  1. merry

    merry gargouille

    Joined:
    Jun 21, 2002
    Messages:
    962
    Likes Received:
    1
    Trophy Points:
    28
    My g/f needs some help with a linux task, and it's beyond my capability...

    She is looking for a way to determine h/w info using command line utilities - number/type/frequency of processors, amount of RAM, motherboard, number/manufacturer of harddisks, type of VGA etc. This is for easy cataloguing the hardware on a number of servers in an institution, the person doing this should be able to gather as much info as possible in a short amount of time, also with "regular" commands (available on various distributions).


    If you can help... please do :)

    Thanks in advance
     
  2. Erroneus

    Erroneus Get off my lawn!

    Joined:
    Aug 25, 2002
    Messages:
    13,727
    Likes Received:
    101
    Trophy Points:
    103
    cat /proc/cpuinfo
    cat /proc/meminfo

    It doesn't show all, but it's a start :)

    And there is proberly more options in the cat /proc/ , like devices, but not sure.
     
  3. merry

    merry gargouille

    Joined:
    Jun 21, 2002
    Messages:
    962
    Likes Received:
    1
    Trophy Points:
    28
    Wow, that was quick, thanks :)

    Looking forward for more input :) Remeber folks, it's not for ugly me, but for my lovely g/f :)
     
  4. UberLord

    UberLord A Legend in Underwear

    Joined:
    May 8, 2002
    Messages:
    5,255
    Likes Received:
    4
    Trophy Points:
    0
    lspci is a good one, showing all pci connected devices and information. Look into the -l and -v options too.

    As to type of harddisks and stuff, you can grep/sed dmesg (use /var/log/dmesg, not dmesg itself)
    For example to list all ata connected disks
    grep -E "^ata[0-9]+:" /var/log/dmesg
    Or use hdparm :)
     
  5. merry

    merry gargouille

    Joined:
    Jun 21, 2002
    Messages:
    962
    Likes Received:
    1
    Trophy Points:
    28
    Thanks, Uber, I've also found something called hwinfo. Alas, the system turned out to be OpenBSD...

    I guess your suggestions will work, especially the grep/dmesg one should be global unix.
     

Share This Page

visited