LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 08-19-2013, 04:03 PM   #1
Derage
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
Find out what kind of Network card you have installed from command line


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.

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.

lshw: This command has the same issue as lspci

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.

Anyone have a good idea on how to determine the information I seek or a good start on how to figure it out?
 
Old 08-19-2013, 04:12 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,772

Rep: Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346
Quote:
Originally Posted by Derage View Post
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.
 
Old 08-19-2013, 04:36 PM   #3
Derage
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I will look into this command. I dont think I have heard of it before so I will need to look into it before playing around with the information it gives. I was also thinking I might be able to tell the difference from firmware versions. I am not sure on this but if VFA and VFA 2 are in different streams that may help me out. Ideally I am trying to find a sure fire way to determine which card you have on a universal scale and not just from 2 separate type of cards.

BTW I am running Centos 6.2 x86_64.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with find command and rar/unrar command line krakatoa1 *BSD 6 09-11-2012 03:21 PM
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
How do I find out what kind of sound card I have (lspci didn't work) yimboli General 3 01-03-2006 10:32 PM
Command line network card setup shishimo Linux - Networking 9 06-20-2004 11:35 AM
help installing network card in command line Avatar Linux - Hardware 6 11-07-2003 08:57 AM


All times are GMT -5. The time now is 07:59 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