- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NIC speed and mode
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
тАО04-04-2006 07:28 AM
тАО04-04-2006 07:28 AM
What are all the ways that i can check the NIC speed and mode (using ndd, etc) on hp box.Can some one please help with appropriate syntax for this,
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2006 07:30 AM
тАО04-04-2006 07:30 AM
Solution# 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
тАО04-04-2006 07:36 AM
тАО04-04-2006 07:36 AM
Re: NIC speed and mode
for CardInstance in `lanscan | awk {'print $3'}`
do
/usr/sbin/lanadmin -x ${CardInstance}
done
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2006 08:06 AM
тАО04-04-2006 08:06 AM
Re: NIC speed and mode
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2006 08:12 AM
тАО04-04-2006 08:12 AM
Re: NIC speed and mode
lanadmin -X 0 100FD
Sam can't do that.
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
тАО04-04-2006 08:37 AM
тАО04-04-2006 08:37 AM
Re: NIC speed and mode
ioscan -fknC lan
you will see an output like this :
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 0/1/2/0 igelan CLAIMED INTERFACE HP A6825-60101 PCI 1000Base-T Adapter
lan 1 0/2/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60001 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
lan 2 0/6/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60001 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
note the name of the driver for the interfaces, igelan in the case above.
Then go and edit :
/etc/rc.config.d/hpigelanconf
file
replicate the block of parameters as many times as necessary, i.e., number of times you have network interfaces. Sequence the index numbers in square brackets for each block, first set will be [0] second set will be [1] and so on.
update the line with INTERFACE_NAME and SPEED with the proper values (never try to set to 1000HD or 1000FD as it is not supported) and save the file and exit.
To make all the values to take effect, run
/sbin/init.d/hpigelan stop
/sbin/init.d/hpigelan start
this will make all of the interfaces you just updated to take the new speed setting to take effect.
Hope it helps.
PS. if your driver is different than igelan, locate the file names with the driver names in them similar to yours.
Also keep in mind that not all LAN cards are capable of fixing their speed to 100FD by this method. Ask HP if in doubt.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2006 12:45 PM
тАО04-04-2006 12:45 PM
Re: NIC speed and mode
" i need to set up a NIC as 100 full duplex and Auto neg on"
because hardcoding to 100FD and having AutoNeg on are mutually exclusive.
Unless you _know_ that autoneg does not work with your NIC/switch combination, and you cannot get the switch/NIC fixed/replaced I would suggest leaving everything autoneg. If for no other reason than when you migrate to Gigabit, autoneg needs to be on anyway - the GbE spec requires it.
See the attached boilerplate on duplex and 100BT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2006 02:16 PM
тАО04-04-2006 02:16 PM
Re: NIC speed and mode
#lanadmin -X 0 100FD
is the easy way to do and understand.
If you need more option, just type
#lanadmin
then menu will driven you to your desire
tienna