ssh to mikrotik & Print Active User in File not working

I am trying this

/ppp active print count-only file=activeuser.txt

but it’s not creating file. I have tried it in 5.x and 6.x versions.

Thanks for reporting! I will check if we can do something here.

You can also use simple script for that

{
/file print file=ppp
:delay 1
:local active [/ppp active print count-only];
/file set ppp.txt contents=“$active”
}

Thank You