sum total-bytes

hello all

can you please help me with this ? i am trying to sum the total bytes of all queues in one number
and if possible send this number in massage to email

/queue simple 
:foreach i in=[ find ] do={
 :local max [ get value-name=total-bytes $i]
:put $max
}

thanks

anyone ?

try to find out the total bytes from your interface !