script

is this possable


2 mikrotik routers a and b

with routerboard a script to read from a read data on b

example a logs into be and reads ip firewall mangle ($a) get remote address where comment=xxxxxxx
:put info in routerboard a in ip firewall mangle where comment=xxxxxxx address=($a)


something like that

There are probably a few ways to do this. I’ve done something similar using SSH and fetch: (http://forum.mikrotik.com/t/basic-scripting-retrieving-variables-from-remote-rb/55125/1). This would require DSA keys if you want it automated.

It could also be automated using fetch and auto.rsc files with a example similar to above…

i cant seem to find the remote ip i want to use the remote ip in a firewall rule how can i get this ip via script
absascripts.jpg

:local remoteIP;
/interface pptp-server monitor pptp-ZW0079 once do={
:set remoteIP $“remote-address”;
}
/ip firewall filter add src-address=$remoteIP …