I've been playing with scripting. I need to be able to capture the new PPPOE address assigned, so I can email myself the new IP as well as update the NAT Firewall settings, so I can RDP to the system.
The following command works fine from a terminal window, but fails when putting it in a script.
:local nat-ip [ /ip firewall nat get 3 dst-address]
Based on what I've read, if you can do it from a terminal, it will work in a script.
Can anyone tell me what I'm doing wrong.
Thanks