Operating System - HP-UX
1819952 Members
3238 Online
109607 Solutions
New Discussion юеВ

How to get network card's CardName,CardVendorID,VenderID on HP-UX?

 
SOLVED
Go to solution
yang shaohua
Frequent Advisor

How to get network card's CardName,CardVendorID,VenderID on HP-UX?

for example,I have a network card on device,I tried to use command "ioscan",but the output hasn't my requested information.
# ioscan -u |grep lan
0/1/2/0 lan HP PCI-X 1000Base-T Dual-port Built-in
I used "lanscan" and "lanadmin", still can get my needed information.
So, How to get network card's CardName,CardVendorID,VenderID on HP-UX?
16 REPLIES 16
Kenan Erdey
Honored Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

Hi,

this is your built-in(on board) network card. try this

lanadmin -x vpd 0
Computers have lots of memory but no imagination
yang shaohua
Frequent Advisor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

hi,thank you for response.
here is the result on my side:
# lanadmin -x vpd 0
The option "vpd" is not valid
speed Display the speed and duplexity of the link
fctrl Display whether Receive Flow Control is enabled or not
cko Determine if hardware TCP/UDP (IPv4) checksum offload is enabled
type Display medium type of the interface
send_max_bufs Display the value of send buffer coalescing threshold
recv_max_bufs Display the value of recv buffer coalescing threshold
send_coal_ticks Display the value of send interrupt coalescing ticks
recv_coal_ticks Display the value of recv interrupt coalescing ticks
itrmode Display the value of interrupt throttling mode
card_info Display the adapter and driver revision and settings
stats drv Display driver and adapter statistics
vmtu Display the value of Virtual MTU for TCP Segmentation Offload

diag_thresh Display the value of packet rate threshold for diagnostics
#

I used "card_info",the result is:
# lanadmin -x card_info 0
*********** Version Information **********
Driver version: B.11.23.0609
Firmware version: N/A
Chip version: 0x3
PCI Sub-System ID: 0x12cd
PCI Sub-Vendor ID: 0x103c
Board Revision: FFFFFFFF
Software Key: 0
Engineering Date Code:

********** Card Setting ***********
Driver State: IETHER_ONLINE
Auto Negotiation: On
Flow Control: On
Send Max Buf Descriptors: 1
Recv Max Buf Descriptors: 1
Send Coalesced Ticks: 150
Recv Coalesced Ticks: 0
#

still have not my needed info.

Kenan Erdey
Honored Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

run mstm, select your device, than select tools(with tab)-> information -> run

Computers have lots of memory but no imagination
Matti_Kurkela
Honored Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

Welcome to ITRC Forums!

In your ioscan output, "Built-in" means this NIC is integrated into the system board, so it's part of the base system and cannot be removed. It is not actually a separate "card" at all.

Since the entire system board is made by HP, the CardVendorID and "VenderID" both must be HP.

You could use "HP PCI-X 1000Base-T Dual-port Built-in" as the CardName.

MK
MK
yang shaohua
Frequent Advisor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

hi,MK,thank you so much for your explain.
and thank Kenan Erdey as well.

Kenan Erdey
Honored Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

hi,

also welcome here and please read this and don't forget assigning points :)

http://h30499.www3.hp.com/t5/help/faqpage/faq-category-id/kudos#kudos

Computers have lots of memory but no imagination
yang shaohua
Frequent Advisor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

hi,MK
there is another question need you kindly help me out.
if the NIC card is seperated card,what is the ioscan output looks like? Can I get the CardName,CardVendorID,VendorID from it ?

Thanks again!
Hakki Aydin Ucar
Honored Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

Welcome to ITRC forum;

in addition to others they gave adequate information, you can try to pick up more info:

# echo "selclass qualifier lan;info;wait;infolog"|cstm
rick jones
Honored Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

Matti - 99 times out of 10 the *sub* vendor ID will be HP and the *sub* product ID will be the HP assigned one. The Product and Vendor IDs will be those of the OEM.

That said, I never did need to retrieve those under HP-UX - since the only "supported" (and generally "working" NICs are those for which ioscan -fk would give the full "HP" name that was enough.
there is no rest for the wicked yet the virtuous have no pillows
yang shaohua
Frequent Advisor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

thank you all!!

again, Is it possible for me to get the specified NIC info via #echo "selclass qualifier lan;info;wait;infolog"|cstm

for example, I have 2 NICs, but I want to just get one card's info according to hardware path.

moreover, can cstm command get other PCI card's information beside NIC?

thanks the above gurus again!
Kenan Erdey
Honored Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

Hi,

try menu based command mstm as i writed abowe.

and please don't forget assigning points.
Computers have lots of memory but no imagination
yang shaohua
Frequent Advisor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

thank Kenan Erdey's info
but what I want is use command line to get the information rather than from UI.
So, your solution is not very suitful for my problem.
I want to find a command line which can't show detail information by PCI card, take lan card as example, I want the command can check the specified network card's info.

regarding to the points, I am newbie here, just get understand the meaning of assignning points, I will study how to use it.
Matti_Kurkela
Honored Contributor
Solution

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

STM is designed to be able to diagnose *all* HP-UX hardware, and cstm is the command-line user interface for it.

Everything you can do with mstm, you can do with cstm too.

The documentation for cstm commands is available here:
http://docs.hp.com/en/diag/stm/sth_cstm.htm

You can start cstm in interactive mode and test the commands you wish to use. For example, I know the hardware path for my NIC is 0/0/4/1/0/6/0.

# cstm
cstm> selclass hwpath 0/0/4/1/0/6/0
cstm> info
-- Updating Map --
Updating Map...
cstm> wait
cstm> infolog
[correct information is displayed]
[note all the lines you want include the string "ID:"]

So I would build this into a one-line script:

echo "selclass hwpath 0/0/4/1/0/6/0;info;wait;infolog" | cstm | grep ID:

In this way, you can write scripts to query any device if you know the hardware path for the device.

To know the hardware path, use the "ioscan" command. For network cards specifically, "lanscan" command is also available, and may be easier to parse for further processing.

To get a full listing for all hardware items quickly, use "ioscan -fnk". To get e.g. network cards only, use "ioscan -fnkClan".

MK
MK
Torsten.
Acclaimed Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

>> So, How to get network card's CardName,CardVendorID,VenderID on HP-UX?



I still wonder why you want to know this?
What should be the use of this information?

(Regardless if all this will result in something like "HP" or "broadcom OEM for HP ..."...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
yang shaohua
Frequent Advisor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

Matti Kurkela,thank you so much for your very helpful information!
rick jones
Honored Contributor

Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?

*stm may or may not be present/functioning on the Itanium 9300 series based systems (aka Tukwila based such as the i2 blades, the rx2800 and the Superdome2) having been replaced with things like the system management homepage and whatnot.

If the goal is to find from whom HP OEMs NICs for HP-UX systems, that is fine, while HP does not trumpet it, it try especially hard to hide it - heck, running Linux (supported or not) and an lspci command will show it no matter what. But you should know that the HP-UX drivers will only drive those cards with the HP subvendor and subproduct IDs.
there is no rest for the wicked yet the virtuous have no pillows