LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lsdev for linux (https://www.linuxquestions.org/questions/linux-software-2/lsdev-for-linux-556341/)

redhawk1973 05-24-2007 07:48 AM

lsdev for linux
 
Ok I know there is lsdev for aix. I was wondering if there was lsdev for linux and where can I download the program.

MensaWater 05-24-2007 07:54 AM

Probably not exactly - it would depend on what "lsdev" on AIX does.

In Linux there are tools to see devices:
lspci = shows you what's in your PCI slots
cat /proc/cpuinfo = gives you details on your CPUs

In fact /proc has tons of information. Type "man proc" to see what you can get under /proc.

If you have Fedora Core (FC) or RedHat you can run "kudzu -p" to see a lot of detail about your hardware.

kummiliim 05-24-2007 10:14 AM

It worked for me so there probably is : D
Code:

root@SERVER:/etc/rc.d# lsdev
Device            DMA  IRQ  I/O Ports
------------------------------------------------
0000:00:1f.0                f800-f87f fc00-fc3f
0000:00:1f.1                0170-0177 01f0-01f7 0376-0376 03f6-03f6 fff0-ffff
0000:00:1f.2                ff00-ff1f
0000:00:1f.3                fe00-fe0f
0000:00:1f.5                f000-f0ff f400-f43f
0000:01:02.0                  78c0-78ff
cascade            4    2
dma                          0080-008f
dma1                        0000-001f
dma2                        00c0-00df
eepro100                        78c0-78ff
eth0                      5
floppy              2    6  03f2-03f5 03f7-03f7
fpu                          00f0-00ff
i8042                  1 12
ide0                    14    01f0-01f7  03f6-03f6
ide1                    15    0170-0177  0376-0376
keyboard                    0060-006f
parport0                    0378-037a 037b-037f
PCI                          0cf8-0cff 7000-7fff
pic1                        0020-0021
pic2                        00a0-00a1
rtc                      8  0070-0077
serial                      03f8-03ff
timer                    0
timer0                      0040-0043
timer1                      0050-0053
uhci_hcd                      ff00-ff1f
uhci_hcd:usb1            10
vga+                        03c0-03df


MensaWater 05-24-2007 10:47 AM

Well it appears by default lsdev isn't installed on Fedora Core or RedHat but it can be obtained by installing the procinfo package.

yum install procinfo
Will install it on Fedora Core (and probably RHEL5 - for earlier RHEL versions you'd have to use up2date rather than yum).

Of course this still doesn't mean this lsdev is the same as the one you see on AIX. It installs a man page (which is also available on line). Many UNIX OSes have proprietary commands for seeing devices. For example on HP-UX I'd run ioscan.

So again the question is what information you're trying to get.

redhawk1973 05-24-2007 11:44 AM

Thanks you


All times are GMT -5. The time now is 12:26 PM.