Guest API clarification (network-get-interfaces)

Mecanik

Well-Known Member
Mar 2, 2017
173
4
58
32
Hi,

This question is about https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces.

Can someone explain to me what these represent?

JSON:
"statistics": {
"rx-packets": 501361,
"tx-bytes": 15465504,
"tx-dropped": 0,
 "tx-errs": 0,
"rx-errs": 0,
"tx-packets": 142125,
"rx-dropped": 0,
"rx-bytes": 404271589
}

I would like to know over what period this is pulled as well.

Many thanks
 
Hi,

Can someone explain to me what these represent?
rx-packetsThe number of packets received by the network interface.
tx-bytesThe number of bytes transmitted by the network interface.
tx-droppedThe number of transmitted packets that were dropped by the network interface.
tx-errsThe number of transmitted packets that resulted in an error.
tx-packetsThe number of packets transmitted by the network interface.
rx-droppedThe number of received packets that were dropped by the network interface.
rx-bytesThe number of bytes received by the network interface.
rx-errsThe number of received packets that resulted in an error.


I would like to know over what period this is pulled as well.
AFAIK every 10 seconds.
 
Hi,


rx-packetsThe number of packets received by the network interface.
tx-bytesThe number of bytes transmitted by the network interface.
tx-droppedThe number of transmitted packets that were dropped by the network interface.
tx-errsThe number of transmitted packets that resulted in an error.
tx-packetsThe number of packets transmitted by the network interface.
rx-droppedThe number of received packets that were dropped by the network interface.
rx-bytesThe number of bytes received by the network interface.
rx-errsThe number of received packets that resulted in an error.



AFAIK every 10 seconds.

Thanks, very helpful. Would be nice if the API viewer would be more detailed. I noticed quite some inconsistencies between PVEH and the HTTP API.

What's the purpose to show only last 10 seconds of data? Can it be changed or something? If it was last 30 minutes or hour, it would make some sense :confused:
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!