1833757 Members
2252 Online
110063 Solutions
New Discussion

strange anomaly

 
Michal Zochowski_1
Occasional Advisor

strange anomaly

Hi,

Issue regarding output command "lanadmin -x 1"/. When I put this command from my profile system shows me 100 Half-Duplex mode my lancard, but when I put this command from root
I have output: 100 Full-Duplex.
What's going on ????
Does anybody know that problem ?

thanx&regards
Michal
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: strange anomaly

I cant get this to work at all from a non-root account - lanadmin reports ;
ERROR: Could not process request.

If I run it as root it works fine;
Speed = 1000 Full-Duplex.
Autonegotiation = On.

There seems to be something requiring root privelege to get this to work properly.

An alternate is to use the lanadmin command (menu based command), then go to lan, then display, to get the lancard settings, this works properly from a non root account and you can script it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Michal Zochowski_1
Occasional Advisor

Re: strange anomaly

quite well solution.
Menu in lanadmin shows only 10 or 100 mode,
but doesn't show mode of duplex.
This information is important for me.

thanx for quick response.

Michal
Mel Burslan
Honored Contributor

Re: strange anomaly

As far as I know, lanadmin command is a root only acesible command unless the suid bit is set. Running it from a non uid-0 account results in the unpredictable output. If running it is critical to your job function, I would double check with the hp support. Otherwise I would suggest to run it as root.

Last but not the least, if what you are after is to nail down the sucker to 100FDsetting no matter what, I would modify the necessary lan driver config file in /etc/rc.config.d directory to make it permanent.
________________________________
UNIX because I majored in cryptology...
Johan Lorimier
Frequent Advisor

Re: strange anomaly

Hi,

lanadmin must be used by root only.
The lanadmin -x will give you the speed and the duplex of your interface.
In the lanadmin command menu, the duplex is shown in the plain name of the interface.


Johan