Re: Network Interface Card

Helmut Wirth <[email protected]> Thu, 10 May 2007 18:45:24 +0200
Newsgroups gmane.linux.redhat.release.taroon.general
Organization bison GmbH
Message-ID <[email protected]>
d.qureshi-7yFXA2EciJlaa/[email protected] schrieb:
> 
> I have a HP Proliant DL740 G1 server running RHEL AS 3 update 4.
> 
> Is there a command to display how many Network Interface Cards there inside the server without
> physically looking at the server?
> 
> --
> Taroon-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/taroon-list

If you mean configured interfaces, a simple "ifconfig" shows you all, even together with virtual
interfaces, or alternatively you can see the configured physical NICs with "cat /proc/net/dev".

If you mean "total of physically installed interfaces, which may not be configured",
the answer is more complicated: the initialization of autodetected NICs will show up in the kernel
bootstrap output (you could get it with "dmesg"). On most bus systems you can even get NICs which
are not autoconfigured through an attached hardware scan (e.g. "lspci" shows you all attached hard-
ware on a pci bus). On older bus systems (notably ISA with old non-pnp NICs) there is often no way 
to detect them when they are not configured.

Hope that helps,
-- 
Helmut Wirth

--
Taroon-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/taroon-list