Page 1 of 1

Export Last-IP

Posted: Wed Aug 03, 2016 1:53 pm
by tecnoarte
Hello,

How to export the LastIP from Registration Wireless-Table ?

Alexandre

Re: Export Last-IP

Posted: Wed Aug 03, 2016 4:29 pm
by PaulsMT
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");
    }

Re: Export Last-IP

Posted: Wed Aug 03, 2016 5:08 pm
by tecnoarte
Thank you !

Re: Export Last-IP

Posted: Wed Aug 03, 2016 6:42 pm
by boen_robot
[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.