Script to count the number of users from Hotspot cookies

Dear all,

We would like to count the number of users from the Hotspot cookies. Does anyone know a script to count the number of users in Hotspot cookies and save to a file for download?

Thank you in advance.

Give this a try:
:local myFile “hotspotCookies.txt”;

:if ([:len [/file find name=$myFile]] = 0) do={
/file print file=$myFile;
:delay 2s;
}

/file set $myFile contents=“$[:len [/ip hotspot cookie find]]”