Community discussions

MikroTik App
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

ssh to mikrotik & Print Active User in File not working

Fri May 22, 2015 7:14 am

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.
 
User avatar
PaulsMT
MikroTik Support
MikroTik Support
Posts: 282
Joined: Tue Feb 10, 2015 3:21 pm

Re: ssh to mikrotik & Print Active User in File not working

Fri May 22, 2015 8:35 am

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"
}
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Re: ssh to mikrotik & Print Active User in File not working

Fri May 22, 2015 10:10 am

Thank You

Who is online

Users browsing this forum: No registered users and 9 guests