Community discussions

MikroTik App
ekkas
Long time Member
Long time Member
Topic Author
Posts: 567
加入: Mon Sep 26, 2005 1:01 pm
Location:South Africa

API and date filter

Thu Mar 03, 2011 12:37 am

I'm trying to get a list of results via API based on date and have tried:


/tool/user-manager/session/print
?>from-time=jan/01/2011 (the format it replies)

/tool/user-manager/session/print
?>from-time=2011/01/01

But each time I get all sessions in the list.

What to do here?
If I could also get eg. the first 100, then issue another command to get next 100, etc. as there are to many to load with one command.
Top
用户头像
Chupaka
Forum Guru
Forum Guru
Posts: 8688
加入: Mon Jun 19, 2006 11:15 pm
Location:Minsk, Belarus
Contact:

Re: API and date filter

Thu Mar 03, 2011 1:07 am

I don't know about usermanager, but this works fine for me (rc10):
Code:Select all
/user/active/print ?>when=mar/03/2011 01:00:00
and
Code:Select all
/user/active/print ?>when=mar/03/2011
(similar to "?>when=mar/03/2011 00:00:00")
Top
ekkas
Long time Member
Long time Member
Topic Author
Posts: 567
加入: Mon Sep 26, 2005 1:01 pm
Location:South Africa

Re: API and date filter

Thu Mar 03, 2011 10:54 am

Only works in ROS 5, in 4.16 it shows all items.
Top

Who is online

Users browsing this forum:Olliverand 18 guests