debug np port diags <port #>
Here is an example of the typical output:
Port: 2-2A (uport 16; port 16)
MDIO bus: 1
PHY address: 0x89
Enable state: Enabled
Link status: DOWN
Laser status: on
Linkscan mode: SW
Auto-negotiated: (no link)
Port ability: fd = 100MB,1000MB,2500MB,10GB
hd = 100MB
intf = gmii,sgmii,xgmii
medium = fiber
pause = pause_tx,pause_rx,pause_asymm
lb = none,MAC,PHY
flags = autoneg
Advertised ability: fd = 1000MB,2500MB,10GB
hd = <none>
intf = <none>
medium = <none>
pause = <none>
lb = <none>
flags = <none>
STP mode: Forward
Learn mode: FWD
Untag priority mask: 0
Multicast flood (pfm): FloodNone
Interface: GMII
Max_frame size: 9234
MDIX mode: ForcedNormal, Normal
Medium: Fiber
SFP Status: Absent
Note: If the device port is advertising auto negotiation, the link partner should also be advertising auto negotiation.
TippingPoint devices will advertise themselves as a DCE (switch) type device by default, as shown in the output. With the device set to auto-negotiate, the device will negotiate MDI-type by cycling from a DCE to a DTE until it is able to match. If auto-negotiation is turned off, auto-MDI is disabled at the hardware level. However, the device software will still try to negotiate MDI by default. If the software auto-MDI functionality is disabled then the following combinations of MDI types will require the stated cables:
DTE-DCE ( straight through cable)
DTE-DTE ( cross over cable)
DCE-DCE ( cross over cable)