updating dynamic l2tp client "connect-to" IP address

Hi all.



Does anyone have a ROS 4.5 script that can resolve a DNS name, and then check if the l2tp-client’s connect-to address is still upto date?
If it doesnt match, the script must change the connect-to address to the new DNS name.

i am having trouble getting the connect-to address

[admin@gw] /interface l2tp-client> get jsvpn value-name=connect-to 
[admin@gw] /interface l2tp-client> get jsvpn connect-to            
[admin@gw] /interface l2tp-client>

It does not want to return anything, does anyone have the correct way to read that paramater?

Regards,

to display what you get with “get” you have to “:put” that.

Have a look on the wiki for the NTP address management script I wrote. Should do exactly what you need with only a little tweaking.

Thank you very much guys! :smiley:

Managed to get it working

Regards