Operating System - HP-UX
1833850 Members
2109 Online
110063 Solutions
New Discussion

Re: Get NIC linkspeed and setting NOT THROUGH SAM

 
SOLVED
Go to solution
Gene Laoyan
Super Advisor

Get NIC linkspeed and setting NOT THROUGH SAM

How can I get the network cards linkspeed (100Mbit or 1000Mbit) and it's duplexing settings without going into SAM.

Thanks
9 REPLIES 9
Jeff_Traigle
Honored Contributor

Re: Get NIC linkspeed and setting NOT THROUGH SAM

lanadmin -x PPA

You can get the PPA for the NIC from lanscan.
--
Jeff Traigle
Pete Randall
Outstanding Contributor
Solution

Re: Get NIC linkspeed and setting NOT THROUGH SAM

lanadmin -x 0

will do the trick. The 0 corresponds to the PPA or instance number, obtained from lanscan.

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/0/12/0 0x001083CFA5E5 0 UP lan0 snap0 1 ETHER Yes 1

# lanadmin -x 0
Current Config = 100 Full-Duplex MANUAL


Pete

Pete
Patrick Wallek
Honored Contributor

Re: Get NIC linkspeed and setting NOT THROUGH SAM

Use lanscan to determine the 'lan?' number (lan0, lan1, etc.).

The use lanadmin to check the card.

If you want to check lan0, then you use the 0 part of lan0 (just use the digit from lan? if HP-UX 11.0 or higher):

# lanadmin -x 0

This will return the speed or AUTONEG if auto negotiation is on.
Paul Sperry
Honored Contributor

Re: Get NIC linkspeed and setting NOT THROUGH SAM

lanadmin===>l===>d
or
ifconfig lan0
or
lanscan
Patrick Wallek
Honored Contributor

Re: Get NIC linkspeed and setting NOT THROUGH SAM

ifconfig will NOT tell you anything about linkspeed / duplex. Neither will lanscan.
Doug O'Leary
Honored Contributor

Re: Get NIC linkspeed and setting NOT THROUGH SAM

Hey;

The script I use is attached. Output as follows:
# /root/bin/verify_nic
usildb23 lan1* 0 On. 1000 Full-Duplex.
usildb23 lan1* none On. 1000 Full-Duplex.
usildb23 lan2 135.3.52.166 Off. 100 Full-Duplex.
usildb23 lan3 135.3.16.65 On. 1000 Full-Duplex.
usildb23 lan4 135.3.14.129 On. 1000 Full-Duplex.

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Sp4admin
Trusted Contributor

Re: Get NIC linkspeed and setting NOT THROUGH SAM

Hi Gene,

You can use these commands. Yoyr best bet is lanadmin or SAM.

#lanscan
#lanadmin -x 0
sp,
Sp4admin
Trusted Contributor

Re: Get NIC linkspeed and setting NOT THROUGH SAM

Hi Gene,

You can use these commands. Your best bet is lanadmin or SAM.

#lanscan
#lanadmin -x 0
sp,
Gene Laoyan
Super Advisor

Re: Get NIC linkspeed and setting NOT THROUGH SAM

Thanks everyone!