- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: number of physical network cards on the hpux s...
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
Discussions
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
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
12-02-2005 11:32 AM
12-02-2005 11:32 AM
can anyone suggest me command for the same ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 11:43 AM
- Tags:
- ioscan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 11:51 AM
12-02-2005 11:51 AM
Re: number of physical network cards on the hpux server
this gives you the number of network interfaces on your system. usually, lan0 is located on the system mainboard (there are exceptions to this rule rp4440 being one of them) so, if you subtract one from the obtained value, you can see your addtional network interfaces.
Also another caveat to the calculation above, the are dual or quad network cards, which means two or four network ports come on a single PCI card. In which case the number of cards and number of ports may not be one-to-one.
There is no straight correlation between the card count and the port count to make this calculation simple. Also, server type as in the case of rp4440/rx4440 goes, makes a difference on the card count.
Best bet is to know the server type and running a
ioscan -fnC lan
command and manually analyzing the output.
Hardware paths, if you look at their numerical representation, will tell you if you have a dual or quad network adapter cards.
For instance, on this system
# ioscan -fknC lan
Class I H/W Path Driver S/W State H/W Type Description
=========================================================================
lan 0 0/0/0/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
/dev/diag/lan0 /dev/ether0 /dev/lan0
lan 2 0/5/0/0/4/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
/dev/diag/lan2 /dev/ether2 /dev/lan2
lan 3 0/5/0/0/5/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
/dev/diag/lan3 /dev/ether3 /dev/lan3
lan 4 0/5/0/0/6/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
/dev/diag/lan4 /dev/ether4 /dev/lan4
lan 5 0/5/0/0/7/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
/dev/diag/lan5 /dev/ether5 /dev/lan5
lan 9 1/12/0/0/4/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
/dev/diag/lan9 /dev/ether9 /dev/lan9
lan 10 1/12/0/0/5/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
/dev/diag/lan10 /dev/ether10 /dev/lan10
lan 11 1/12/0/0/6/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
/dev/diag/lan11 /dev/ether11 /dev/lan11
lan 12 1/12/0/0/7/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
/dev/diag/lan12 /dev/ether12 /dev/lan12
lan0 is built in lan and has a different path than the others.
lan2 thru lan5 as you can see is placed on the same h/w path, which tells you this is a quad card. And same can be said for the lan9 thru lan12.
This is how you get to calculate them.
Hope it helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 12:07 PM
12-02-2005 12:07 PM
Re: number of physical network cards on the hpux server
# cat /usr/local/bin/lancards
#!/usr/bin/sh
# script to check speed and settings of lan cards
PATH=/usr/sbin:/usr/bin
ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`
for i in $ppas
do
printf "Card at PPA %s - " $i
ipa=`ifconfig lan${i} 2>/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assigned")}else{printf("%s ",ip)}}'`
printf "IP Address: %15s- " "$ipa"
lanadmin -x $i 2>/dev/null | awk '{$1="";printf("%s",$0)}'
echo ""
done
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2005 05:07 PM
12-02-2005 05:07 PM
Re: number of physical network cards on the hpux server
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2005 05:37 AM
12-03-2005 05:37 AM
Re: number of physical network cards on the hpux server
Regards,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2005 08:56 AM
12-03-2005 08:56 AM
Re: number of physical network cards on the hpux server
The primary network card is part of network configuration. You should be able to id it in /etc/rc.config.d/netconf
That's where I'd look.
I remember seeing the ability to designate a primary NIC in the Ignire install interface, perhaps that is what you refer to?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2005 05:13 PM
12-03-2005 05:13 PM
Re: number of physical network cards on the hpux server
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2005 01:46 PM
12-04-2005 01:46 PM
Re: number of physical network cards on the hpux server
"lanscan" command will also tell u the number of network cards.
"netstat -in" will tell u the state of the cards.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 04:45 AM
12-05-2005 04:45 AM
Re: number of physical network cards on the hpux server
*) lanscan will show APA aggregates
*) ioscan will show cards not claimed by a driver
FWIW, the being able to grep for "lan" may not be a 100% thing - third party devices _may_ not appear as "lan" devices in ioscan output. However, 99 times out of 10 grepping for lan is sufficient.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:40 PM
12-06-2005 05:40 PM
Re: number of physical network cards on the hpux server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:43 PM
12-06-2005 05:43 PM
Re: number of physical network cards on the hpux server
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:46 PM
12-06-2005 05:46 PM
Re: number of physical network cards on the hpux server
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:50 PM
12-06-2005 05:50 PM
Re: number of physical network cards on the hpux server
lan2, lan3 and lan4 are on the same hardware path.
could you please explain the same ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 06:37 PM
12-06-2005 06:37 PM
Re: number of physical network cards on the hpux server
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 08:16 PM
12-06-2005 08:16 PM
Re: number of physical network cards on the hpux server
i normally use attached script which also gives me information on the speed.
e.g.
# ./lan-speed.sh
Card at PPA 0 - IP Address: 172.0.28.1 - Config = 100 Full-Duplex AUTONEG
Card at PPA 1 - IP Address: 192.168.14.1 - Config = 100 Full-Duplex AUTONEG
Card at PPA 2 - IP Address: 10.10.1.11 - = 1000 Full-Duplex. = On.
#
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 08:18 PM
12-06-2005 08:18 PM
Re: number of physical network cards on the hpux server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2005 05:22 AM
12-08-2005 05:22 AM
Re: number of physical network cards on the hpux server
The HW path will include "path" information about internal stuff leading ot the PCI(X) slot, then PCI addressing information - PCI address and functional address.