Operating System - HP-UX
1752715 Members
5905 Online
108789 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
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