Garrett and I were having a discussion about CR 6505550
(http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6505550)
and possible ways of implementing the solution. As Garrett
(and Jim Carlson) pointed out, the mac address can easily be
displayed by issuing a DL_PHYS_ADDR_REQ with dl_addr_type set
to DL_FACT_PHYS_ADDR.

The question that then came up is what sub-command to
use for displaying this information.

One candidatate is the show-ether (also show-wifi, since, as Garrett
pointed out, the mac address applies to all 802 networks).

so we could have:

# dladm show-ether    
LINK            PTYPE    STATE    AUTO  SPEED-DUPLEX  PAUSE  ADDRESS
bge0            current  up       yes   1G-f          bi     X:X:X:X:X:X
bge1            current  up       yes   1G-f          bi     Y:Y:Y:Y:Y:Y

# dladm show-wif
LINK       STATUS            ESSID               SEC    STRENGTH   MODE   SPEED 
 ADDRESS
wpi0       connected         Radio Kebe          wep    very good  g      54Mb  
 X:X:X:X:X:X

(both of which are likely to spill beyond 80 columns), or, we could
add this to the show-phys command

# dladm show-phys      
LINK         MEDIA                STATE      SPEED DUPLEX   DEVICE ADDRESS
bge0         Ethernet             up         1000  full      bge0  X:X:X:X:X:X

Any preferences?

--Sowmini





Reply via email to