Code: Select all
:local counter [/interface ethernet get ether1 rx-byte]
:local traffic ($counter + [/interface ethernet get ether1 tx-byte])
/tool e-mail send to=chris@example.com from=chris@example.com subject="bytes" body="$traffic" tls=yes
the $traffic variable is empty. when I " put [/interface ethernet get ether1 rx-byte]" into a terminal the value is blank.
I've tried many variations with no luck :-/
sometimes I see "driver-rx-byte" used in various examples, sometimes I find "rx-bytes" used.
If anyone could help clarify the proper way to do this, I would be greatly appreciative.
this is for routeros V-4.17