On 01/18/2014 05:13 PM, Grand Avenue Broadband wrote:
:local MGMTIP [/ip address get value-name=address number=[:pick [find 
interface=LOOPBACK ] 0]]

Curiously, if you use 1 instead of 0, and DON'T have more than one address on 
the interface, it will grab an address from another interface.  :-(

Thanks! I knew there was a way to do it, but for some reason I kept going past "pick". I should quit working so tired. Funny thing is that this is a problem I've solved before. I have another script running on a different router with that exact (or very close) code. Thanks again!

--
Butch Evans
702-537-0979
Network Support and Engineering
http://store.wispgear.net/
http://www.butchevans.com/
_______________________________________________
Mikrotik mailing list
[email protected]
http://mail.butchevans.com/mailman/listinfo/mikrotik

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

Reply via email to