switch_get_port_stats
Read TP-Link switch port TX/RX good and bad packet counters for one port, a PORT_MAP name, or all ports with error_ports flagged. Non-mutating, for monitoring link health and errors.
Instructions
Read-only: tx/rx good/bad packet counters. Pass a port number or a PORT_MAP name for one port, or omit it for all ports plus error_ports (any port with rx_bad+tx_bad > 0). Does not mutate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No |