I am trying to make a script that will fetch the IP address associated with a pptp client interface named “VPNpptp”.
I have tried the below but it just returns “no such item”. Any ideas?
:global vpnaddress ([/ip address get “VPNpptp” address])
I am trying to make a script that will fetch the IP address associated with a pptp client interface named “VPNpptp”.
I have tried the below but it just returns “no such item”. Any ideas?
:global vpnaddress ([/ip address get “VPNpptp” address])
:global vpnaddress [/ip address get [find interface=“VPNpptp”] address]
works great, thanks