- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Built-in LAN
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
Forums
Discussions
Discussions
Forums
Discussions
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
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
08-11-2000 12:53 AM
08-11-2000 12:53 AM
Built-in LAN
instance ID of the built-in lan card to 0 if not so.
But how to get the right hardware path ?
With ioscan, I can search for the string 'Buit-in' in the description field, but I'm not sure this string always exist.
Or i can search for drivers lan2 or btlan3.
But is the list exhaustive ?
thanks for help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 12:59 AM
08-11-2000 12:59 AM
Re: Built-in LAN
use the command:
lanscan
This lists also the Station addresses to which you can refer in your script to find the right interface.
Regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 01:07 AM
08-11-2000 01:07 AM
Re: Built-in LAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 01:27 AM
08-11-2000 01:27 AM
Re: Built-in LAN
So, the question is :
I want get the hardware path of the built-in lan card, if any. How to select the right lan card from the result of the command 'ioscan -FClan' ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 05:10 AM
08-11-2000 05:10 AM
Re: Built-in LAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 05:33 AM
08-11-2000 05:33 AM
Re: Built-in LAN
ifconfig lan0
If the return is valid data for the interface, go.
Otherwise, mine is coming back and telling me "no such interface".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 06:07 AM
08-11-2000 06:07 AM
Re: Built-in LAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 06:10 AM
08-11-2000 06:10 AM
Re: Built-in LAN
Do you know a way to identify it more precisely ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 06:11 AM
08-11-2000 06:11 AM
Re: Built-in LAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 06:18 AM
08-11-2000 06:18 AM
Re: Built-in LAN
Ditto for 10.20 K & D boxes at my site -- "Built-in LAN" seems safe.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 06:18 AM
08-11-2000 06:18 AM
Re: Built-in LAN
I can not remember ever seeing an HP9000 without a lan card listed as "Built-in LAN".
I think you will be safe just looking for "Built-in LAN" in the ioscan output (ioscan -fnC lan)
The built in lan card will always be at the same hardware address for a given model of HP9000. If you know what model of HP9000 you are running the script on then you could find the hardware address of the built in lan card from the hardware documentation at http://www.docs.hp.com/hpux/systems/. I think this is probably unnescessary as I think you can rely on there always being a "Built-in lan card" listed in the ioscan output.
I hope this helps - Trevor Dyson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 06:19 AM
08-11-2000 06:19 AM
Re: Built-in LAN
(i.e. the string 'Built-in' appears)
But I've been told it's not always true, and another way is to check the driver, which is always 'btlan3' or 'lan2' for the built-in.
It's still an empirical way, unless somebody can confirm it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 07:21 AM
08-11-2000 07:21 AM
Re: Built-in LAN
1. All built-in lan cards are tied to the HW path corresponding to "Core I/O Adapter"
so:
coreio=`ioscan | grep "Core I/O Adapter" | awk '{ print $1 }'`
2. Now get 'em with:
builtin=`for i in $coreio
do
lanscan | grep $i
done`
3. Now your $builtin will contain the line with the builtin card.
This will work all the time (except when there are two built-in LAN interfaces, in which case it would return two values) but you get the drift right?
Good luck
do
lanscan | grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 07:54 AM
08-11-2000 07:54 AM
Re: Built-in LAN
I'm sorry but your solution doesn't work.
On one machine I have :
> ioscan | grep "Core I/O Adapter"
8/16 ba Core I/O Adapter
8/20 ba Core I/O Adapter
>lanscan
8/16/6 0x0060B007912B 0 UP lan0 ...
8/20/5/2 0x0060B02B0107 1 UP lan1 ...
> ioscan | grep "lan"
8/16/6 lan Built-in LAN
8/20/5/2 lan EISA card HWP1990
So I get the two LAN hardware path, though I have only one built-in'd.
On another machine :
> ioscan |grep "Core I/O Adapter"
8/16 ba Core I/O Adapter
>lanscan
8/0/1/0 0x0060B07ACAD0 1 UP lan1 ...
8/0/20/0 0x0060B0B2E94C 0 UP lan0 ...
>ioscan | grep "lan"
8/0/1/0 lan PCI Ethernet (10110019)
8/0/20/0 lan PCI(10110019) -- Built-in #3
so none of the LAN cards are on the 8/16 bus adapter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 08:07 AM
08-11-2000 08:07 AM
Re: Built-in LAN
for i in `ioscan | grep "Core I/O Adapter" | awk '{ print $1 }'`
do
lanscan | grep $i
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2000 08:41 AM
08-11-2000 08:41 AM
Re: Built-in LAN
I checked my systems and the same applies. You can use Kofi's good suggestion about the for loop to and make some string comparisions using the output of lanscan. Just replace "Core I/O Adapter" with "Built-in".
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2000 01:04 AM
11-10-2000 01:04 AM
Re: Built-in LAN
Especially if you have an N or L class server, or a B2000 or B1000. Especially if you are running HP-UX 11.00.
example (on a B2000)
# ioscan -Clan -fk
Class I H/W Path Driver S/W State H/W Type Description
====================================================================
lan 0 10/0/12/0 btlan3 CLAIMED INTERFACE PCI Ethernet (10110019)
lan 1 10/1/1/0 btlan5 CLAIMED INTERFACE PCI Ethernet (10110019)
The built-in LAN is lan0.
What I have found by trial an error is that the built-in LAN either has 'Built-In LAN'*
or uses the btlan3 or lan2 driver.
* Beware !! this is one example I found ...
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 10/8/1/0 btlan4 CLAIMED INTERFACE PCI(10110009) -- Built-in #1
lan 1 10/8/2/0 btlan4 CLAIMED INTERFACE PCI(10110009) -- Built-in #2
lan 2 10/12/6 lan2 CLAIMED INTERFACE Built-in LAN
The 'real' built in LAN is lan2, which uses the lan2 driver.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2000 01:54 AM
11-10-2000 01:54 AM
Re: Built-in LAN
1. Create an 'infile' file.
Note: The next command is all one long line, the '' is an
escape for the new line character.
ioscan -kf | grep -e INTERFACE -e DEVICE |
grep -v target |
awk '{printf "%s %s %sn",$3,$1,$2}' > infile
2. Change the instance numbers in the infile.
3. Move infile to /stand:
mv infile /stand/infile
4. Move the ioconfig files:
mv /stand/ioconfig /stand/ioconfig.sav
mv /etc/ioconfig /etc/ioconfig.sav
5. Shutdown the system:
shutdown -ry 0
Good luck