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
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
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.
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).
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.
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
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)
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