Sorry, typed it wrong

I meant:

[jluth...@minstercpe] /interface wireless registration-table> :put [get 0 
last-ip;]

but you could also use:

:put [/interface wireless registration-table get 0 last-ip;]

I'm trying to figure out how you could loop through each client with foreach, but I'm out of play time.



Josh Luthman wrote:
[jluth...@minstercpe] /interface wireless registration-table> /interface
wireless registration-table :put [get 0 last-ip ;]
expected command name (line 1 column 40)

Doesn't like :put there

Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Wed, Jun 17, 2009 at 4:30 PM, Randy Cosby <dco...@infowest.com> wrote:

/interface wireless registration-table :put [get 0 last-ip ;]

If you type "get 0 [TAB-KEY]" you will see the list of other variables you
can look at.

Chris Gotstein wrote:

After i wrote that, i figured you already knew it!

Chris Gotstein
Sr Network Engineer
UP Logon/Computer Connection UP
500 N Stephenson Ave
Iron Mountain, MI 49801
Phone: 906-774-4847
Fax: 906-774-0335
ch...@uplogon.com

D. Ryan Spott wrote:

Yeah. I need to do this in an automated fashion and get text output.

ryan

Chris Gotstein wrote:

it's easy to do in winbox.  Just add the last ip column.

Chris Gotstein
Sr Network Engineer
UP Logon/Computer Connection UP
500 N Stephenson Ave
Iron Mountain, MI 49801
Phone: 906-774-4847
Fax: 906-774-0335
ch...@uplogon.com

D. Ryan Spott wrote:

How do I get the "Last IP" for a registered client from the CLI?

"interface wireless registration-table print" gives me no joy.

suggestions?

ryan
_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
RouterOS

_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
RouterOS

_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
RouterOS

_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
RouterOS

--
Randy Cosby
Vice President
InfoWest, Inc

work: 435-773-6071
email: rco...@infowest.com

http://www.linkedin.com/in/randycosby


_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
RouterOS

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.butchevans.com/pipermail/mikrotik/attachments/20090617/312a1125/attachment.html>
_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

--
Randy Cosby
Vice President
InfoWest, Inc

work: 435-773-6071
email: rco...@infowest.com

http://www.linkedin.com/in/randycosby

_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

Reply via email to