on CentOS you can use lshal to return which driver is in use...<br><br>e.g.<br><br>lshal -s |grep pci_ |xargs -n1 lshal -l -u |grep -E "udi|info.product|info.linux.driver"<br><br>get's a list of items, filters on pci, gets the long output for those pci devices and outputs lines containing udi, info.product and info.linux.driver...<br>
<br>results returned like the following (but with more devices obviously)00000...<br><br>udi = '/org/freedesktop/Hal/devices/pci_10b7_9200'<br> info.udi = '/org/freedesktop/Hal/devices/pci_10b7_9200' (string)<br>
info.product = '3c905C-TX/TX-M [Tornado]' (string)<br> info.linux.driver = '3c59x' (string)<br>udi = '/org/freedesktop/Hal/devices/pci_10ec_8139'<br> info.udi = '/org/freedesktop/Hal/devices/pci_10ec_8139' (string)<br>
info.product = 'RTL-8139/8139C/8139C+' (string)<br> info.linux.driver = '8139too' (string)<br><br>d<br><br><div class="gmail_quote">2009/1/26 bails <span dir="ltr"><<a href="mailto:bails@westcomuk.com">bails@westcomuk.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Just to reply to myself and top post in the process.<br>
<br>
Its seems this is not the case on CentOS systems my earlier post was the<br>
part of the output from a box running Debian Lenny.<br>
<br>
lspci -v on a CentOS-5.1 box shows neither Kernel driver in use or<br>
Kernel modules.<br>
<font color="#888888"><br>
Bails<br>
</font><div><div></div><div class="Wj3C7c"><br>
bails wrote:<br>
> Probably not much use to you in this instance, but its always nice to<br>
> know that lspci -v prints the kernel driver in use and kernel modules.<br>
><br>
> e.g.<br>
><br>
> 10:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M<br>
> Gigabit Ethernet PCI Express (rev 02)<br>
> Subsystem: Hewlett-Packard Company Device 30c2<br>
> Flags: bus master, fast devsel, latency 0, IRQ 220<br>
> Memory at d0000000 (64-bit, non-prefetchable) [size=64K]<br>
> Expansion ROM at <ignored> [disabled]<br>
> Capabilities: <access denied><br>
> Kernel driver in use: tg3<br>
> Kernel modules: tg3<br>
><br>
> Bails<br>
><br>
> David @ULC wrote:<br>
>> lspci<br>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
>> 00:00.0 Host bridge: Intel Corporation 82G35 Express DRAM Controller (rev<br>
>> 03)<br>
>> 00:02.0 VGA compatible controller: Intel Corporation 82G35 Express<br>
>> Integrated Graphics Controller (rev 03)<br>
>> 00:02.1 Display controller: Intel Corporation 82G35 Express Integrated<br>
>> Graphics Controller (rev 03)<br>
>> 00:19.0 Ethernet controller: Intel Corporation 82566DC Gigabit Network<br>
>> Connection (rev 02)<br>
>> 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI<br>
>> Contoller #4 (rev 02)<br>
>> 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI<br>
>> Controller #5 (rev 02)<br>
>> 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI<br>
>> Controller #2 (rev 02)<br>
>> 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio<br>
>> Controller (rev 02)<br>
>> 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port<br>
>> 1 (rev 02)<br>
>> 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port<br>
>> 2 (rev 02)<br>
>> 00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port<br>
>> 3 (rev 02)<br>
>> 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI<br>
>> Controller #1 (rev 02)<br>
>> 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI<br>
>> Controller #2 (rev 02)<br>
>> 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI<br>
>> Controller #3 (rev 02)<br>
>> 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI<br>
>> Controller #1 (rev 02)<br>
>> 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)<br>
>> 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface<br>
>> Controller (rev 02)<br>
>> 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA<br>
>> IDE Controller (rev 02)<br>
>> 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev<br>
>> 02)<br>
>> 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA<br>
>> IDE Controller (rev 02)<br>
>> 03:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller<br>
>> 04:03.0 Ethernet controller: D-Link System Inc DGE-530T Gigabit Ethernet<br>
>> Adapter (rev 11) (rev 11)<br>
>> 04:05.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 70)<br>
>><br>
>><br>
>> but<br>
>><br>
>> *service network restart RETURNS me*<br>
>><br>
>> **>>* Shutting down interface eth0: [ OK ]*>>* Shutting down loopback<br>
>> interface: [ OK ]*>>* Bringing up loopback interface: [ OK ]*>>*<br>
>> Bringing up interface eth0: [ OK ]*>>* Bringing up interface eth1:<br>
>> skge device eth1 does not seem to be present,*>>* delaying<br>
>> initialization.*>>* [FAILED]*<br>
>><br>
>><br>
>><br>
>><br>
>> On Mon, Jan 26, 2009 at 5:24 PM, David @ULC <<a href="mailto:ucoms2001@gmail.com">ucoms2001@gmail.com</a>> wrote:<br>
>><br>
>>> Which command to run which will auto detect all hardwares present in the<br>
>>> system ?<br>
>>> OS : CentOS<br>
>>> Running Asterisk<br>
>>><br>
>>><br>
>><br>
>> ------------------------------------------------------------------------<br>
>><br>
>> _______________________________________________<br>
>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>><br>
>> asterisk-users mailing list<br>
>> To UNSUBSCRIBE or update options visit:<br>
>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
><br>
<br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>