Operating System - HP-UX
1821056 Members
2436 Online
109631 Solutions
New Discussion юеВ

hp 9000 ethernet speed & duplex hp-ux 10.2

 
Kevin R. Pacek_1
New Member

hp 9000 ethernet speed & duplex hp-ux 10.2

How can I...

1. Tell the speed/duplex of lan0
2. Tell if auto-negotiate is enabled
3. Force to a specific speed/duplex

Specifically for a c100 and 735. Under Solaris, I can do all this with ndd. Is there a similar command in hp-ux? landiag gives only speed, not duplex.

Thx
-krp
8 REPLIES 8
Rick Garland
Honored Contributor

Re: hp 9000 ethernet speed & duplex hp-ux 10.2

The lanadmin command is what you are looking for. Not all cards report the info right away because they would need patches installed.

Example, find the NMID of the card through the 'lanscan' command. Once determined, do the 'lanadmin -x $NMID' for the card. You may get the return - 'This option is not supported for this hardware'. If so, see if any patchesa exist for the HW. It may be that none exist.

You could also enter the 'lanadmin' command and go through the application.
James R. Ferguson
Acclaimed Contributor

Re: hp 9000 ethernet speed & duplex hp-ux 10.2

Kevin:

See 'lanadmin':

# lanadmin -x # to display driver specific options.

# lanadmin -X # to set driver specific options.

...JRF...

Cheryl Griffin
Honored Contributor

Re: hp 9000 ethernet speed & duplex hp-ux 10.2

Use lanadmin to display lan card properties.
Check out the lan config file to hard set properties.

# cd /etc/rc/config.d
For example hpbasetconf, hpgsc100conf, hpeisaconf. One of these corresponds to the card you have installed. Use ioscan -fnC lan to check the the bus/driver info.

Then look for the entry for speed. Values used would be 10HD, 10FD, 100HD, 100FD. Where HD is half duplex, and FD is full duplex.
"Downtime is a Crime."
Kevin R. Pacek_1
New Member

Re: hp 9000 ethernet speed & duplex hp-ux 10.2

Thanks for the responses.

1. "/usr/sbin/lanadmin" and "/usr/sbin/landiag" appear to be the exact same command (same date and filesize) and do not give duplex setting of the card.

I'm trying to diagnose a communication problem with the switch (lots of Ierrs and Oerrs from netstat -i). Switch is not under my control, but I'm told it's set to auto-negotiate. But why all the errors?

The same problem was solved on a Sun by forcing the card to 100/full; when in auto-negotiate mode, card went to 100/half with LOTS of Ierrs&Oers.

2. Assuming you meant /etc/rc.config.d, I have only hpetherconf file which does not contain any of the mentioned settings. Only HP_ETHER_INTERFACE_NAME[0], .._STATION_ADDRESS[0] and .._INIT_ARGS="HP_EHTER_STATION_ADDRESS".

More help please!
Cheryl Griffin
Honored Contributor

Re: hp 9000 ethernet speed & duplex hp-ux 10.2

lanadmin -S for speed

-s 0 = half duplex
-s 1 = full duplex

Maybe you need to check your lanadmin command, also. If it is an old version, check the patch database for the updated version. (If you supply your model and os, I can post the patch names here.)
"Downtime is a Crime."
Jerry Lindsey
Occasional Advisor

Re: hp 9000 ethernet speed & duplex hp-ux 10.2

I'd opt for the solution you used on your Sun systems - we have a number of systems and network switches here and have found auto-negotiation, in general, to be problematic. Set your interface to 100/FD and have the network guys do the same on their side.
James R. Ferguson
Acclaimed Contributor

Re: hp 9000 ethernet speed & duplex hp-ux 10.2

Kevin:

We've found the same thing as Jerry -- I'd nail the speed and be done with it.

...JRF...
Cheryl Griffin
Honored Contributor

Re: hp 9000 ethernet speed & duplex hp-ux 10.2

Kevin,
If you can tell me what kind of lan card and the driver you're using, I can tell you which config file.
"Downtime is a Crime."