Community discussions

MikroTik App
 
tecnoarte
newbie
Topic Author
Posts: 29
Joined: Mon Apr 21, 2008 3:48 pm

Export Last-IP

Wed Aug 03, 2016 1:53 pm

Hello,

How to export the LastIP from Registration Wireless-Table ?

Alexandre
 
User avatar
PaulsMT
MikroTik Support
MikroTik Support
Posts: 282
Joined: Tue Feb 10, 2015 3:21 pm

Re: Export Last-IP

Wed Aug 03, 2016 4:29 pm

To get "last-ip" from every connected device us foreach loop:
:foreach w in=[/interface wireless registration-table find] do={
        :put ([/interface wireless registration-table get $w]->"last-ip");
    }
 
tecnoarte
newbie
Topic Author
Posts: 29
Joined: Mon Apr 21, 2008 3:48 pm

Re: Export Last-IP

Wed Aug 03, 2016 5:08 pm

Thank you !
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Export Last-IP

Wed Aug 03, 2016 6:42 pm

[interface wireless registration-table get $w]->"last-ip"
Oh, so this is a thing now?

Since which version exactly? 6.36? I remember until not very long ago, that would've prompted the user to enter value for the "value-name" argument. But then again, I haven't tried doing this since... 6.34 I think.