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
+
PhysicalPortStats
(
schema
)
Name
Description
Type
Notes
name
Name
string
Readonly
queues
List of statistics per queue
array of
PhysicalPortQueueStats
rx_bytes
Number of received bytes
integer
Readonly
rx_errors
Number of receive errors
integer
Readonly
rx_misses
Number of receive misses
integer
Readonly
rx_nombufs
Number of received packets dropped due to lack of mbufs
integer
Readonly
rx_packets
Number of received packets
integer
Readonly
tx_bytes
Number of transmitted bytes
integer
Readonly
tx_drops
Number of transmit drops
integer
Readonly
tx_errors
Number of transmit errors
integer
Readonly
tx_packets
Number of transmitted packets
integer
Readonly
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:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable