my script:
ros code
:local ipa; :local ip; :foreach ip in=[/ip firewall address-list find] do={ :put [/ppp active find address=[get $ip address]]; }
ros code
[admin@gw-13-02] /ip firewall> address-list print Flags: X - disabled, D - dynamic # LIST ADDRESS 0 D nat-188.116.15.57 192.168.100.254
ros code
[admin@gw-13-02] /ppp active> print Flags: R - radius # NAME SERVICE CALLER-ID ADDRESS UPTIME ENCODING 0 5555 sstp xxxxxxxxxxxx 192.168.100.254 49m44sThe result of this script is:
ros code
/system script> run test01 [admin@Why doesn't this script return IP, only blank line?