The Ethernet Media Independent Interface (MII) Kernel Statistics help keep the state of the link. They are very useful statistics for Ethernet interfaces, as they can be used for troubleshooting physical layer problems with a network connection. These statistics cover MII and GMII. Note that in some cases with the Fast Ethernet or Fiber-only devices some of the statistics might not apply.
kstat name | Type | Description |
---|---|---|
xcvr_addr | state | Provides the MII address of the transceiver currently in use. |
xcvr_id | state | Provides the specific Vendor/Device ID of the transceiver currently in use. |
xcvr_inuse | state | Indicates the type of transceiver currently in use. |
cap_1000fdx | state | Indicates the device is 1 Gbit/sec full-duplex capable. |
cap_1000hdx | state | Indicates the device is 1 Gbit/sec half-duplex capable. |
cap_100fdx | state | Indicates the device is 100 Mbit/sec full-duplex capable. |
cap_100hdx | state | Indicates the device is 100 Mbit/sec half-duplex capable. |
cap_10fdx | state | Indicates the device is 10 Mbit/sec full-duplex capable. |
cap_10hdx | state | Indicates the device is 10 Mbit/sec full-duplex capable. |
cap_asmpause | state | Indicates the device is capable of asymmetric pause Ethernet flow control. |
cap_pause | state | Indicates the device is capable of symmetric pause Ethernet flow control when set to 1 and cap_asmpause is 0.
If cap_asmpause = 1 while cap_pause = 0, transmit pauses based on receive congestion. cap_pause = 1, receive pauses and slows down transmit to avoid congestion. |
cap_rem_fault | state | Indicates the device is capable of remote fault indication. |
cap_autoneg | state | Indicates the device is capable of auto-negotiation. |
adv_cap_1000fdx | state | Indicates the device is advertising 1 Gbit/sec Full duplex capability. |
adv_cap_1000hdx | state | Indicates the device is advertising 1 Gbit/sec Half duplex capability. |
adv_cap_100fdx | state | Indicates the device is advertising 100M bits/s Full duplex capability. |
adv_cap_100hdx | state | Indicates the device is advertising 100 Mbit/sec half-duplex capability. |
adv_cap_10fdx | state | Indicates the device is advertising 10 Mbit/sec full-duplex capability. |
adv_cap_10hdx | state | Indicates the device is advertising 10 Mbit/sec full-duplex capability. |
adv_cap_asmpause | state | Indicates the device is advertising the capability of asymmetric pause Ethernet flow control. |
adv_cap_pause | state | Indicates the device is advertising the capability of symmetric pause Ethernet flow control when adv_cap_pause = 1 and adv_cap_asmpause = 0.
If adv_cap_asmpause = 1 while adv_cap_pause = 0, transmit pauses based on receive congestion. If adv_cap_pause = 1, receive pauses and slows down transmit to avoid congestion. |
adv_cap_rem_fault | state | Indicates the device is experiencing a fault that it is going to forward to the link partner. |
adv_cap_autoneg | state | Indicates the device is advertising the capability of auto-negotiation. |
lp_cap_1000fdx | state | Indicates the link partner device is 1 Gbit/sec full-duplex capable. |
lp_cap_1000hdx | state | Indicates the link partner device is 1 Gbit/sec half-duplex capable. |
lp_cap_100fdx | state | Indicates the link partner device is 100 Mbit/sec full-duplex capable. |
lp_cap_100hdx | state | Indicates the link partner device is 100 Mbit/sec half-duplex capable. |
lp_cap_10fdx | state | Indicates the link partner device is 10 Mbit/sec full-duplex capable. |
lp_cap_10hdx | state | Indicates the link partner device is 10 Mbit/sec half-duplex capable. |
lp_cap_asmpause | state | Indicates the device is advertising the capability of asymmetric pause Ethernet flow control. |
lp_cap_pause | state | Indicates the link partner device is capable of symmetric pause Ethernet flow control when set to 1 and lp_cap_asmpause is 0. If lp_cap_asmpause = 1 while lp_cap_pause = 0, transmit pauses based on receive congestion. If lp_cap_pause = 1, receive pauses and slows down transmit to avoid congestion. |
lp_cap_rem_fault | state | Indicates the link partner is experiencing a fault with the link. |
lp_cap_autoneg | state | Indicates the link partner device is capable of auto-negotiation. |
link_asmpause | state | Indicates the shared link asymmetric pause setting the value is based on local resolution column of Table 37-4 IEEE 802.3 spec.
link_asmpause = 0 Link is symmetric Pause link_asmpause = 1 Link is asymmetric Pause |
link_pause | state | Indicates the shared link pause setting. The value is based on local resolution shown above.
If link_asmpause = 0 while link_pause = 0, the link has no flow control. If link_pause = 1, link can flow control in both directions. If link_asmpause = 1 while link_pause = 0, local flow control setting can limit link partner. If link_pause = 1, link will flow control local Tx. |
link_speed | state | The current speed of the network connection in megabits per second. |
link_duplex | state | Indicates the link duplex.
link_duplex = 0, indicates link is down and duplex will be unknown. link_duplex = 1, indicates link is up and in half duplex mode. link_duplex = 2, indicates link is up and in full duplex mode. |
link_up | state | Indicates whether the link is up or down.
link_up = 1, indicates link is up. link_up = 0, indicates link is down. |