vipe
January 22, 2009, 4:42pm
1
what is the hotspot user variable
tx
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
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.
vipe
January 22, 2009, 6:13pm
5
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.
vipe
January 23, 2009, 6:50pm
7
thanks all
but i need
"
rx rate
tx rate
rx packets
tx packets
"
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.
vipe
January 27, 2009, 4:08pm
9
SurferTim:
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”