LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-21-2005, 02:00 PM   #1
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Question How can I check PCI slots remotely?


How can I check how many PCI slots are used/free on a remote server to which I have no physical access?
 
Old 02-21-2005, 02:02 PM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
Maby you mean
Code:
lspci
 
Old 02-21-2005, 02:11 PM   #3
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally posted by MezzyMeat
Maby you mean
Code:
lspci

But how do I interpret the Total/Free/Used PCI slots from lspci's output?

Code:
root@shakira:/home/win32sux# lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 620 Host (rev 02)
00:00.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
00:01.0 ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513 (rev b1)
00:01.1 Class ff00: Silicon Integrated Systems [SiS] ACPI
00:01.2 USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB Controller (rev 11)
00:02.0 PCI bridge: Silicon Integrated Systems [SiS] SiS 530 Virtual PCI-to-PCI bridge (AGP)
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] SiS530 3D PCI/AGP (rev 2a)

Last edited by win32sux; 02-21-2005 at 03:13 PM.
 
Old 02-22-2005, 05:36 AM   #4
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
I don't know that one but maby the man for lspci would give you a hint? If not, try to google for it or something. google.com/linux is great if you google for Linux-related stuff.
 
Old 02-22-2005, 10:19 AM   #5
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
okay... i'll read the manual for lspci to see what i find...

as for googling, i always make sure i google (and search LQ) before opening a new thread...
 
Old 02-23-2005, 03:39 PM   #6
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
well, i went through the lspci manual and didn't have any luck (maybe i'm just retarded)...

i still haven't figured-out how to see the Total/Free/Used PCI slots remotely...

here's the verbose output on the machine which's PCI slots i'm trying to analyze:

Code:
root@shakira:/home/win32sux# lspci -v
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 620 Host (rev 02)
        Flags: bus master, medium devsel, latency 32
        Memory at e0000000 (32-bit, non-prefetchable) [size=64M]
        Capabilities: [c0] AGP version 2.0

00:00.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0) (prog-if 80 [Master])
        Flags: bus master, fast devsel, latency 16, IRQ 14
        I/O ports at <ignored>
        I/O ports at <ignored>
        I/O ports at <ignored>
        I/O ports at <ignored>
        I/O ports at 4000 [size=16]

00:01.0 ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513 (rev b1)
        Flags: bus master, medium devsel, latency 0

00:01.1 Class ff00: Silicon Integrated Systems [SiS] ACPI
        Flags: medium devsel

00:01.2 USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB Controller (rev 11) (prog-if 10 [OHCI])
Flags: bus master, medium devsel, latency 64, IRQ 12
        Memory at e4900000 (32-bit, non-prefetchable) [size=4K]

00:02.0 PCI bridge: Silicon Integrated Systems [SiS] SiS 530 Virtual PCI-to-PCI bridge (AGP) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000d000-0000dfff
        Memory behind bridge: e4800000-e48fffff
        Prefetchable memory behind bridge: e4000000-e47fffff

00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RT8139
        Flags: bus master, medium devsel, latency 64, IRQ 11
        I/O ports at e000 [size=256]
        Memory at e4901000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RT8139
        Flags: bus master, medium devsel, latency 64, IRQ 10
        I/O ports at e400 [size=256]
        Memory at e4902000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] SiS530 3D PCI/AGP (rev 2a) (prog-if 00 [VGA])
        Subsystem: Silicon Integrated Systems [SiS]: Unknown device 0001
        Flags: bus master, 66Mhz, medium devsel, latency 64
        Memory at e4000000 (32-bit, prefetchable) [size=8M]
        Memory at e4800000 (32-bit, non-prefetchable) [size=64K]
        I/O ports at d000 [size=128]
        Capabilities: [40] Power Management version 1
        Capabilities: [50] AGP version 1.0
does anyone know how to determine the Total/Free/Used PCI slots from this output??

or perhaps i can determine this info with some other command(s)??


Last edited by win32sux; 02-26-2005 at 07:16 PM.
 
Old 02-26-2005, 07:17 PM   #7
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
BUMP
 
Old 03-04-2005, 03:07 PM   #8
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
BUMP
 
Old 03-04-2005, 03:26 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
you know... there are *subtle* ways to bump a thread.. detailing what you've foind since your last post etc...

there's never goign to be a direct reliable way to relate the internal layout of pci busses compared to the physical layout, and per system it will change again in different ways.
Code:
root@shakira:/home/win32sux# lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 620 Host (rev 02)
00:00.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
00:01.0 ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513 (rev b1)
00:01.1 Class ff00: Silicon Integrated Systems [SiS] ACPI
00:01.2 USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB Controller (rev 11)
00:02.0 PCI bridge: Silicon Integrated Systems [SiS] SiS 530 Virtual PCI-to-PCI bridge (AGP)
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] SiS530 3D PCI/AGP (rev 2a)
ok, so.... 01:00 is the agp slot, as it's on it's own bus (and contains a video card... always a giveaway!)
i would then assume that your pci slots are 00:09 and 00:0b, so at least all values inclusive will also be slots. and the rest is onboard stuff, with the integrated peripherals on bus 00, slot 01.
 
Old 03-04-2005, 06:19 PM   #10
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally posted by acid_kewpie
you know... there are *subtle* ways to bump a thread.. detailing what you've foind since your last post etc...
you're right... i should really know better by now... sorry about that, acid_kewpie... =(

Quote:
there's never goign to be a direct reliable way to relate the internal layout of pci busses compared to the physical layout, and per system it will change again in different ways.

ok, so.... 01:00 is the agp slot, as it's on it's own bus (and contains a video card... always a giveaway!)
i would then assume that your pci slots are 00:09 and 00:0b, so at least all values inclusive will also be slots. and the rest is onboard stuff, with the integrated peripherals on bus 00, slot 01.
thanks for the info... i really appreciate it... =)
 
Old 03-05-2005, 07:24 AM   #11
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
okay, so i now know that there are exactly TWO pci slots being used (each one with a realtek network card)...

given this, i could determine the amount of free pci slots by subtracting two from the total amount of slots...

i can determine the total amount of slots by looking at the board's specs on a website...

so i can solve my problem if i can find a way to (remotely) determine the motherboard brand and/or model number...

does anyone know how to (remotely) determine a motherboard's brand and/or model number??

i'm gonna google about this, but any input you could share with me would be greatly appreciated...

Last edited by win32sux; 03-05-2005 at 07:28 AM.
 
Old 03-05-2005, 07:53 AM   #12
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
okay, i've found this:

http://ezix.sourceforge.net/software/lshw.html

looks like it might be what i need... i'm gonna try it tonight... i haven't read the documentation yet, but the output examples look really cool...

=)
 
Old 02-19-2011, 12:27 PM   #13
fermulator
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Cool

lshw doesn't tell us free/open expansion slots unfortunately. I've got an Intel DG43NB board in my server. It has 3xPCI, 2xPCI-e 1x, 1xPCI-e 16x, 1xPCI-e 1x. The 3xPCI are currently occupied, but none of the PCI-e expansion slots are occupied.

Code:
fermulator@fermmy-server:~$ sudo lshw | grep -B2 -A10 Express
        *-pci:0           
             description: PCI bridge
             product: 82801JI (ICH10 Family) PCI Express Port 1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport-driver
        *-pci:1
             description: PCI bridge
             product: 82801JI (ICH10 Family) PCI Express Port 4
             vendor: Intel Corporation
             physical id: 1c.3
             bus info: pci@0000:00:1c.3
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport-driver
Code:
fermulator@fermmy-server:~$ sudo lspci -v | grep -i -A10 pci
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 1 (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	Capabilities: [40] Express Root Port (Slot+) IRQ 0
	Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
	Capabilities: [90] Subsystem: Intel Corporation Unknown device 0023
	Capabilities: [a0] Power Management version 2
	Capabilities: [100] Virtual Channel
	Capabilities: [180] Unknown (5)

00:1c.3 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 4 (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 0000e000-0000efff
	Memory behind bridge: d0600000-d06fffff
	Capabilities: [40] Express Root Port (Slot+) IRQ 0
	Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
	Capabilities: [90] Subsystem: Intel Corporation Unknown device 0023
	Capabilities: [a0] Power Management version 2
	Capabilities: [100] Virtual Channel
	Capabilities: [180] Unknown (5)
--
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90) (prog-if 01 [Subtractive decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=32
	I/O behind bridge: 0000d000-0000dfff
	Memory behind bridge: d0500000-d05fffff
	Prefetchable memory behind bridge: 0000000080000000-00000000800fffff
	Capabilities: [50] Subsystem: Intel Corporation Unknown device 0023
In answer to your question of how to acquire the Motherboard version model number, check this:
Code:
fermulator@fermmy-server:~$ sudo dmidecode -t baseboard
# dmidecode 2.9
SMBIOS 2.4 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: Intel Corporation
	Product Name: DG43NB
	Version: AAE34877-402
	Serial Number: U********** (starred out)
	Asset Tag: To be filled by O.E.M.
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: To be filled by O.E.M.
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0
I am also interested to know how one can determine if there are open expansion slots remotely.
 
Old 02-19-2011, 12:32 PM   #14
fermulator
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Talking

Oh Wow: dmidecode for the win!

Quote:
fermulator@fermmy-server:~$ sudo dmidecode -t 9 | grep -E "DMI type"\|Usage\|Type
Handle 0x0020, DMI type 9, 13 bytes
Type: x16 PCI Express
Current Usage: Available
Handle 0x0021, DMI type 9, 13 bytes
Type: x1 PCI Express
Current Usage: Available
Handle 0x0022, DMI type 9, 13 bytes
Type: x1 PCI Express
Current Usage: Available
Handle 0x0023, DMI type 9, 13 bytes
Type: x1 PCI Express
Current Usage: Available
Handle 0x0024, DMI type 9, 13 bytes
Type: 32-bit PCI
Current Usage: In Use
Handle 0x0025, DMI type 9, 13 bytes
Type: 32-bit PCI
Current Usage: In Use
Handle 0x0026, DMI type 9, 13 bytes
Type: 32-bit PCI
Current Usage: In Use
If you're happy with this answer, please mark this thread as SOLVED.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slots, it isnt PCI, AGP, PCI-E or ISA... what is it ? qwijibow Linux - Hardware 5 01-18-2005 07:00 AM
Motherboard with PCI-E slots satimis Linux - Hardware 0 07-30-2004 03:41 AM
probing pci slots during OpenFirmware based boot operation drsparikh Linux - Hardware 0 03-22-2004 10:39 PM
Software to check emails remotely conymn Linux - Software 1 09-18-2003 05:59 AM
PCI slots dunkyb Linux - Hardware 5 07-20-2003 08:20 PM


All times are GMT -5. The time now is 10:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration