System Administration > Configuration > System Properties > Dataplane

Get the physical port statistics

Returns the statistics for the specified physical port. Statistics information
includes Tx and Rx packets, bytes, drops and errors.

Request:

Method:
GET
URI Path(s):
/api/v1/transport-nodes/{transport-node-id}/node/services/dataplane/physical-ports/{physical-port}/stats
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/node/services/dataplane/physical-ports/fp-eth0/stats

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PhysicalPortStats+

Example Response:

{ "name": "fp-eth0", "rx_bytes": 8166764, "rx_errors": 0, "rx_misses": 0, "rx_nombufs": 0, "rx_packets": 72096, "tx_bytes": 0, "tx_drops": 0, "tx_errors": 0, "tx_packets": 0, "queues": [ { "id": 0, "rx_bytes": 8245288, "rx_errors": 0, "rx_packets": 72784, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 1, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 2, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 3, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 4, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 5, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 6, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 7, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 8, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 9, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 10, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 11, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 12, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 13, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 14, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 }, { "id": 15, "rx_bytes": 0, "rx_errors": 0, "rx_packets": 0, "tx_bytes": 0, "tx_drops": 0, "tx_packets": 0 } ], }

Required Permissions:

read

Feature:

system_administration

Additional Errors: