Operating System - HP-UX
1833770 Members
2071 Online
110063 Solutions
New Discussion

How come I don't have "lanadmin -x " option ?

 
SOLVED
Go to solution
Sharon Bi
Frequent Advisor

How come I don't have "lanadmin -x " option ?

Dear all,

I was trying to change lan0 from 100 half duplex to 100 full duplex. I know that I can issue the command "lanadmin -x nmid". But unfortunately, I don't have this option on my machine. ( if I do a: man lanadmin, there's no such option) I am running 10.20 on my machine.

Is there any thing I can do to fix it?

Thanks!
8 REPLIES 8
Stefan Farrelly
Honored Contributor
Solution

Re: How come I don't have "lanadmin -x " option ?


Your patches are out of date. If youve been updating your patches regularly with the quarterly GR bundles you would have the -x and -X options for lanadmin. You need to download the latest LAN products cumulative patch to fix this (or install a recent GR bundle).
Im from Palmerston North, New Zealand, but somehow ended up in London...
David Whitehead
Advisor

Re: How come I don't have "lanadmin -x " option ?

I beleive -x option is not implemented in 10.20. At least not on any of the 10.20 boxes I have here.

There may be a patch to update it but I do not know for certain.

David
Sharon Bi
Frequent Advisor

Re: How come I don't have "lanadmin -x " option ?

Ok... but any patch apply to the production boxes need to be tested for 3 MONTHS. Is there a way to manually configure it?

my lan card is: lan0, NMID 4
There is a file: /etc/rc.config.d/hpbase100conf
Now it is configured as:

HP_BASE100_INTERFACE_NAME[0]=
HP_BASE100_STATION_ADDRESS[0]=
HP_BASE100_DUPLEX[0]=
HP_BASE100_INIT_ARGS="HP_BASE100_STATION_ADDRESS HP_BASE100_DUPLEX"

What does the last line mean? how do I configure this file? How come I can't even change half/full duplex option through SAM? is that also because of patch?

Thanks a lot!

Ian_4
Honored Contributor

Re: How come I don't have "lanadmin -x " option ?

Just load PHNE_20970 (assuming it's a s800 box) Ian.
James R. Ferguson
Acclaimed Contributor

Re: How come I don't have "lanadmin -x " option ?

Sharon:

lanadmin -x is a query.

lanadmin -X is a set operation.

Hope this helps you!

...JRF...
Stefan Farrelly
Honored Contributor

Re: How come I don't have "lanadmin -x " option ?


Your file /etc/rc.config.d/hpbase100conf dosnt apply to lan0. If it did it then its options would be set, not left blank or as "".

If this file was set you would change the HP_BASE100_DUPLEX[0]=
to FULL or HALF. The value you need/default is described at the top of the hpbase100conf file.

First we need to determine what lan cards you have and what speeds they are. This requires ioscan -fknClan and lanscan output
Im from Palmerston North, New Zealand, but somehow ended up in London...
David Whitehead
Advisor

Re: How come I don't have "lanadmin -x " option ?

That's the one.

Thought there was one but couldn't remember the name of it.

Also got this from our /etc/rc.config.d/hpbasetconf file:

# HP_BASET_DUPLEX Half or full duplex mode (half is default)

You might wanna try resetting it to =1 (thought you'll have to restart networking for it to take effect).

HTH

David
Sharon Bi
Frequent Advisor

Re: How come I don't have "lanadmin -x " option ?

Thank you all !! I have got the answer.

I did a lanscan and ioscan -fnC lan to find out the right interface I am looking for. And modified the corresponding file: /etc/rc.config.d/hp*conf. And then reboot.

And, there is patches for "lanadmin -X" option and patches for SAM to be able to configure half/full duplex. But I can't install them for the time being ( because they are production boxes!)

Thanks a lot and have a nice weekend!