what is the hotspot host Variables

what is the hotspot user variable


tx :smiley:

tx-packets=
rx-packets=
tx-rate=
rx-rate=


/ip hotspot host {:foreach i in=[find] do={:put ("tx-packets=".[get $i tx-packets]." rx-packets=".[get $i rx-packets]." tx-rate=".[get $i tx-rate]);}}

try and lost
hotspotuser.jpg

the bug??

Look in
/ip hotspot user profile
rate-limit is rx/tx from the APs point-of-view. So rate-limit=256K/512K is 256K upload from the client, and 512K download to the client.

/ip hotspot host

the tx packets variable

not rate limit

How to use these variables to obtain the script

My bad. Is this it?

:global users [/ip hotspot host find]
:foreach i in=$users do={
:put [/ip hotspot host get $i name]
:put [/ip hotspot host get $i bytes-in]
:put [/ip hotspot host get $i bytes-out]
}

I used the put command because I don’t know exactly what you want to do with them.

thanks all
but i need
"
rx rate
tx rate
rx packets
tx packets
"
.JPG

The variables you seek are in
/ip hotspot user print detail
and
/ip hotspot profile print

Same code, different variables.

ADD: You might need to combine data from both locations to get the info you need.

thanks ,

HOST’s variables can not access to
“/ IP HOTSPOT HOST”