Quote:
Originally Posted by Derage
I have been searching around the internet for a while on how to do this, but can only seem to get a generic product name. I have a couple servers running centos 6.2. In one server I have Emulex VFA card installed. In another server I have an Emulex VFA 2 installed. I want the ability to tell which card is which from the command line. There have been a couple of diffrent methods I have found online but none seem to work. I have tried:
lspci: The problem with this command is it shows both VFA and VFA 2 as an emulex oneconnect. This is correct in a sense both those cards are under the same brand.
|
I'd start with this command, to get the general manufacturer/info you've got now...
Quote:
Beginning Mac Addresses: Unfourtunatly I have only found one website that holds a database of mac addresses for companies. With this information I can only determine if its emulex or not.
|
...and not depend on this, since MAC addresses can be spoofed easily. Plus, since the lspci command returns the manufacturer, you're going around a good way to get information.
Quote:
lshw: This command has the same issue as lspci
|
You may get more information from it...you don't say what version/distro of Linux you're using, but have you checked the man page on that command, vs lspci?
Quote:
udevinfo: This commmanad is great in finding some detail information about the NIC's but has no mention on the vendor or card.
/sys and /proc: I have tried turning my eye to these directories but do not have enough experiance with linux to understand the file structures in them. I have found the NIC and bus folders but trying to read from these files only shows either hex numbers or junk I dont understand.
|
They do kind of stack up, and unless you sort-of have an idea of what you're looking at/for, it can be tough to sort things out.
Have you considered using SNMP? The snmpwalk command may return you some information too, but it sounds like you may have to use a combination of the commands above to get exactly what you're after.