Results 1 to 8 of 8

Thread: hardware scan on suse linux - command

  1. #1
    nhmaniar NNTP User

    Default hardware scan on suse linux - command

    I want to scan hardware devices on suselinux.
    What all command we need to run on suselinux to scan devices? to add newly added devices?

    uname-a#
    host1 2.6.5-7.267-3Gbigsmp #1 SMP Thu Sep 28 18:51:52 EDT 2006 i686 i686 i386 GNU/Linux

  2. #2
    Join Date
    Jun 2008
    Location
    Atlanta, Georgia, USA
    Posts
    2,429

    Default Re: hardware scan on suse linux - command

    Your question is not very clear. Can you elaborate on what you are trying to do?

    There are quite a few tools that provide hardware information. The kernel itself stores hw data under /proc. There are small utilities built into the linux base, like lspci. There are additional utilities like hwinfo that directly read device firmware. openSUSE's YaST (system administration tool) has a module similar to Microsoft's msinfo (but more extensive). YaST also has specialized tools for reading/configuring specific pieces of hardware, i.e., sound device, graphics device, network device, etc. This is just a sampling.

  3. #3
    Join Date
    Jun 2008
    Location
    Frisco, TX
    Posts
    1,233

    Default Re: hardware scan on suse linux - command

    nhmaniar wrote:
    > I want to scan hardware devices on suselinux.
    > What all command we need to run on suselinux to scan devices? to add
    > newly added devices?


    Ordinarily, hotplugging takes care of "new" devices pretty
    adequately.

    >
    > uname-a#
    > host1 2.6.5-7.267-3Gbigsmp #1 SMP Thu Sep 28 18:51:52 EDT 2006 i686
    > i686 i386 GNU/Linux


    That's an older SUSE... SLES 9 perhaps? Or one of the 9.x's.

    Hotplugging is a bit different back then. Not as robust
    as the 10.x+ series kernels.

    You can play with hwinfo to examine hardware.

    With regards to rescans because of a dynamic LUN added
    (for example) via fibre channel, you can run rescan-scsi-bus.sh
    with appropriate parameters (e.g. -w -l).

    The hotplugging architecture is still in flux, but
    has stabilized somewhat with the newer kernels. Personally,
    I would recommend that you upgrade. There are lots of
    device drivers differences as well (that is to say, that
    older kernel may not have the device drivers for some
    newer pieces of hardware that are out there).

  4. #4
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,439

    Default Re: hardware scan on suse linux - command

    Open a console and enter

    hwinfo

    Is that what you want?

  5. #5
    Join Date
    Dec 2009
    Location
    Los Angeles, California USA
    Posts
    21

    Default Re: hardware scan on suse linux - command

    Quote Originally Posted by john_hudson View Post
    Open a console and enter

    hwinfo

    Is that what you want?
    I think it is worth noting that this command has to either be ran as root or the full path must be specified. I figure this is important to note as some new users may not understand that the normal user accounts and the root user's $PATH are different.

    I use:

    sudo su -c "hwinfo"

    I know this seems redundant but on my system the normal user account and the root account have different passwords. By using "sudo" to invoke "su" it askes for my user account password and logs that I used sudo... just my preference.
    Drew Adams - openSUSE Ambassador | openSUSE 11.3 & KDE 4.7.1 | Connect Profile: https://connect.opensuse.org/pg/profile/Druonysus

  6. #6
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: hardware scan on suse linux - command

    On 09/30/2011 10:46 AM, Druonysus wrote:
    >
    >> hwinfo

    >
    > I think it is worth noting that this command has to either be ran as
    > root or the full path must be specified.


    well, i hope someone will tell me i have somehow messed up my system,
    because hwinfo runs from a user console here...have i munged my user
    path and not realized it?

    --
    DD
    Caveat-Hardware-Software-
    openSUSE®, the "German Automobiles" of operating systems

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: hardware scan on suse linux - command

    On 2011-10-02 16:37, DenverD wrote:

    > well, i hope someone will tell me i have somehow messed up my system,
    > because hwinfo runs from a user console here...have i munged my user path
    > and not realized it?


    You must have done something, because that program is in /usr/sbin/.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  8. #8
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: hardware scan on suse linux - command

    On 10/02/2011 04:48 PM, Carlos E. R. wrote:
    > You must have done something, because that program is in /usr/sbin/.


    well! i had forgotten about it!

    in my /etc/bash/bashrc.local i find:
    PATH=$PATH:/usr/sbin

    --
    DD
    openSUSE®, the "German Automobiles" of operating systems

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •