SUMMARY: How to find switch port speed with hwmgr

From: jreed@athena.appliedtheory.com
Date: Tue Apr 23 2002 - 08:44:47 EDT


I asked how to find the speed/duplex setting of a switch or router port
from Tru64 v5.1a using hwmgr. I got a lot of answers on how to get the
NIC settings, and some good clues on how to use hwmgr, but never quite
got the answer I was looking for. On Solaris, you can use a permutation
of the "ndd" command with lp_*_cap options to get the peer settings of
the switch or router port your NIC is talking to. I thought I'd seen
a use of hwmgr that would also give that info, but no one came up with
it, so perhaps I was just hallucinating again!

In any event, thanks to all who replied, here are some of the more
interesting responses. All show how to get current settings on the
alpha NIC.

Michel Berger:
At the boot prompt (>>>):
sho ew* # to see interfaces
set ewa0_mode xyz # to see options
set ewa0_mode FastFD # hard set the interface

Zoong Pham:
# hwmgr -show comp | grep tu
32: alphadev r---- none tu0
33: alphadev r---- none tu1
# hwmgr -get attribute current -id 32

Raul Sossa:
(in a Fibre Channel environment)
You should use the IntraSwitch CLI or Web Management Applications to
get this info (not from hwmgr).
Refer to the Fiber Channel Switch Management Guide for more info:
http://www.compaq.com/products/storageworks/fcsanswitch16el/documentation.html

Kenway Lee:
(to set the interfaces)
# lan_config -i ee0 -m utp -s 100 -x 0
The "-x 0" says half duplex, "-s 100" says 100 Mb/s, "-i ee0" says to use
the first ethernet adapter and "-m utp" is the cable type

Ric Moore:
(to see most everything hwmgr knows about the NICs)
/sbin/hwmgr -get attr -cat network

I am still hoping for an "ndd" work-alike, if anyone knows of one pass
it along and I'll amend the summary. The reason I'm looking for this is
we've found a lot of problems with autonegotiation between the alphas and
3-com switches, and so we hard set our interfaces at boot time with commands
of the form "set ewa0_mode fastfd". However, if the switch ports are still
trying to autonegotiate (rather than being hard set to noautonegotiate) they
get the speed and/or duplex wrong and cause problems, so I need a way to see
what the switch ports are doing when a network engineer is not available.

Regards,
Judith Reed



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:39 EDT