Operating System - HP-UX
1825616 Members
3219 Online
109683 Solutions
New Discussion

Obtaining Lan Duplex and AutoNeg info

 
SOLVED
Go to solution
Kevin Lamb
Frequent Advisor

Obtaining Lan Duplex and AutoNeg info

Hi,

At one point you used to be able to run landiag with the -x option which would give you the lan speed, Duplex mode and AutoNeg output.

I am trying this on our 10.20 box but this fails, I have tried to use SAM to get the Duplex mode and AutoNeg mode but this just flashed quickly before I can read it.

Does anyone know a way I can get the above info for the Lan (I only require the Duplex & Negotiation info)

Cheers

Kev
11 REPLIES 11
melvyn burnard
Honored Contributor

Re: Obtaining Lan Duplex and AutoNeg info

Have you tried landiag -?to show you available options?
on mine it gives s/S show/set speed
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
linuxfan
Honored Contributor

Re: Obtaining Lan Duplex and AutoNeg info

Hi Keven,

lanadmin -x NMID
should give you what you are looking for.

-Ramesh
They think they know but don't. At least I know I don't know - Socrates
Kevin Lamb
Frequent Advisor

Re: Obtaining Lan Duplex and AutoNeg info

Melvin
I have already got the info for the actual speed of the card from landiag what I am after is the Duplex info and AutoNegotiation info.

Ramesh,

I have tried this command on several of our 10.20 boxes and get an error:
Unrecognized option: -x

I know this used to work on other machines I have looked after in the past but can't understand why it is not recognised where I work now.

Is there a config file that holds this info, I have checked the hpethers file in /etc/rc.config.d but all this gives me is the station address.

Cheers,

Kev
DIPAK KUMAR ROY
Frequent Advisor

Re: Obtaining Lan Duplex and AutoNeg info

Run "lanscan" and it will give you the NMID for the lan card and Card IN #.

For HP-UX 10.20

Run "lanadmin -x " ...it will give you the speed and duplex for the lan card.

For HP-UX 11.00

Run "lanadmin -x ... it will give you speed and duplex for for lan card.

Hope this helps.

Dipak
linuxfan
Honored Contributor

Re: Obtaining Lan Duplex and AutoNeg info

Hi Kevin,

I will look into why -x isn't working.
But meanwhile you can try something like

/Begin/
landiag << EOF
lan
nmid
display

quit
EOF
/End/


-HTH
Ramesh

They think they know but don't. At least I know I don't know - Socrates
melvyn burnard
Honored Contributor

Re: Obtaining Lan Duplex and AutoNeg info

Hmm, from somewhere at the back of my brain I recall the -x/X option came from a new patch some time ago, and the card drivers also needed patching.
SO my recommendation would be to check that this system has the latest LAN CUmulative (PHNE_23862) patch, along with any dependencies, anbd also the latest driver patch for whatever cards you are using.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Alan Riggs
Honored Contributor

Re: Obtaining Lan Duplex and AutoNeg info

It sounds like your 10.20 boxes are not patched to the latest version of lanadmin. See if you have an up-to-date (or even recent_ version of the LaAN cummulative products patch. I would also check that your arpa transport, 100BT, etc. patches are updated. THe patest LAN cumulative is PHNE_22352
linuxfan
Honored Contributor
Solution

Re: Obtaining Lan Duplex and AutoNeg info

Hi Kevin,

I believe this was introduced in the lan cumulative patch PHNE_14634.

Also what do you see when you do a "what /usr/lbin/lanadmin"

I have an old HP box running 10.20. It has the lan cumulative patch PHNE_1700 and ARPA patch PHNE_17730.
what /usr/lbin/lanadmin shows revision 1.3.116.10 $ B.10.20 PHNE_14633(700)/PHNE_14634(800).
And lanadmin -x works on this machine.

If you want the -x option to work, you might have to install the latest lan patch(along with dependencies ofcourse)

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Kevin Lamb
Frequent Advisor

Re: Obtaining Lan Duplex and AutoNeg info

Thanx to all who replied,

I have found a 10.20 machine which the lanadmin -x works,what I have done is to copy this executable over to the machines that I was having problems with and this now works.

I have ran the "what" against the original and the new file and they are both the same (see below)
[/usr/sbin]# what lanadmin
lanadmin:
lanadmin.c: $Revision: 1.3.116.10 $ B.10.20 PHNE_14633(700)/PHNE_14634
(800)
LAN: Version: B.10.10 $Date: 96/05/09 11:26:21 $

what lanadmin.orig
lanadmin.orig:
lanadmin.c: $Revision: 1.3.116.10 $ B.10.20 PHNE_14633(700)/PHNE_14634
(800)
LAN: Version: B.10.10 $Date: 96/05/09 11:26:21 $

Still confused as to why it would not work in the first place; however at least I can now get the info I need.

Thanks guys,

Kev

rick jones
Honored Contributor

Re: Obtaining Lan Duplex and AutoNeg info

kevin, i would strongly suggest that you get the right lanadmin on the box(es) via the correct patches rather than copying files around. it is entirely possible that there were also library changes in the patch(es) involved and knuth only knows what might happen without those libraries in place.

i'm reasonably confident that lanadmin patches do not require reboots.
there is no rest for the wicked yet the virtuous have no pillows
Bill Hassell
Honored Contributor

Re: Obtaining Lan Duplex and AutoNeg info

I would second the recopmmendation NOT to copy single files between different revs and patch levels. The days of simple executables is long gone and while this version of lanadmin may give the -x option, it may crash with other commands because there is a serious mismatch between the components.

I would bring all your systems to a current patch level (March or June 2001) from your SuppPlus CDROM as soon as possible.


Bill Hassell, sysadmin