How to print tx/rx Bytes using CLI and API?

how can I print this information from the command line
tx/rx Bytes
and is it possible to get to this information using API?
I would like to check and store the values ​​in the database.
txrxbytes.png

Of course, if for this you can use the command-traffic monitor your EoIP or any interface.

interface monitor-traffic eoip-tunnel_1_5 interval=2s (1s, 3s etc)


As for the API Similarly, all depends what values ​​you want to store and every time, you could retrieve all values ​​and before storing your DB values ​​need to cut and store, with a statement of its programming language, or directly in the database with some stored procedure.

Apologies for my writing I am using a translator. :frowning:

Regards.

interface monitor-traffic eoip-tunnel_1_5 interval=2s

I have the very same question as mysz0n.

Unfortunately, the command

/interface monitor-traffic <interface>

just shows realtime data, whereas Winbox is able to show the total rx/tx bytes (since last reboot, or so).

How to get this info on CLI?

EDIT:

I found the command:

/interface print stats