RouterOS Scripting Problem
Posted: Sat Jan 12, 2013 1:15 pm
Hello,
I have a trouble in simple script:
It should get ip address of remote peer and make a log, when i run it from the winbox or schedule, it makes a blank log, but when i run the same script from the CLI it logs well.
I noticed thet when i reload router and run script from winbox it works well, but when i flush ipsec peers and reconnect, the script does the same.
I have a trouble in simple script:
Code: Select all
local peer [ip ipsec remote-peers get value-name=remote-address number=0]
:log info $peer
I noticed thet when i reload router and run script from winbox it works well, but when i flush ipsec peers and reconnect, the script does the same.