[brussels-dev] update: 'dladm show-ether' output

sowmini.varadhan at sun.com sowmini.varadhan at sun.com
Tue Aug 14 13:27:33 PDT 2007


I've been trying to prototype our discussion of "dladm show-ether", and
here's what the output from my prototype looks like:

# ./dladm show-ether    
link            param     state autoneg  speed(Mb/s)          duplex pause 
bge0            current      up       1         1000            full     1 
bge1            current      up       1         1000            full     1 

# ./dladm show-ether -p
LINK="bge0" PARAM="current" STATE="up" AUTONEG="1" SPEED="1000" DUPLEX="full" PAUSE="1" 
LINK="bge1" PARAM="current" STATE="up" AUTONEG="1" SPEED="1000" DUPLEX="full" PAUSE="1" 

# ./dladm show-ether -x
link            param     state autoneg  speed(Mb/s)          duplex pause rem_fault
bge0            current      up       1         1000            full     1     0
                capable      --       1  1000,100,10       full,half     1     1
                adv          --       1  1000,100,10       full,half     1     0
                peeradv      --       1  1000,100,10       full,half     1     0
bge1            current      up       1         1000            full     1     0
                capable      --       1  1000,100,10       full,half     1     1
                adv          --       1  1000,100,10       full,half     1     0
                peeradv      --       1  1000,100,10       full,half     1     0

# ./dladm show-ether -xp bge0
LINK="bge0" PARAM="current" STATE="up" AUTONEG="1" SPEED="1000" DUPLEX="full" PAUSE="1" REM_FAULT="0"
LINK="" PARAM="capable" STATE="--" AUTONEG="1" SPEED="1000,100,10" DUPLEX="full,half" PAUSE="1" REM_FAULT="1"
LINK="" PARAM="adv" STATE="--" AUTONEG="1" SPEED="1000,100,10" DUPLEX="full,half" PAUSE="1" REM_FAULT="0"
LINK="" PARAM="peeradv" STATE="--" AUTONEG="1" SPEED="1000,100,10" DUPLEX="full,half" PAUSE="1" REM_FAULT="0"

Comments? 
 
Ran into some interesting bugs (CR 6592772 and CR 6572429) 
along the way, but I think the above output is much easier
to parse than the ndd output.. and the improved pause/asmpause
definitions should make it even more user-friendly..

--Sowmini


More information about the brussels-dev mailing list