- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to get network card's CardName,CardVendorI...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 06:33 PM
тАО03-07-2011 06:33 PM
Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2011 01:07 AM
тАО03-08-2011 01:07 AM
Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?
try menu based command mstm as i writed abowe.
and please don't forget assigning points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 12:37 AM
тАО03-15-2011 12:37 AM
Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 06:47 AM
тАО03-15-2011 06:47 AM
SolutionEverything 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 12:15 PM
тАО03-15-2011 12:15 PM
Re: 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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 07:40 PM
тАО03-15-2011 07:40 PM
Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2011 09:19 AM
тАО03-16-2011 09:19 AM
Re: How to get network card's CardName,CardVendorID,VenderID on HP-UX?
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.
- Tags:
- lspci
- « Previous
-
- 1
- 2
- Next »