Community discussions

 
jrs
just joined
Topic Author
Posts: 4
Joined: Thu Sep 16, 2010 6:55 pm

updating dynamic l2tp client "connect-to" IP address

Thu Sep 16, 2010 7:05 pm

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,
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: updating dynamic l2tp client "connect-to" IP address

Fri Sep 17, 2010 9:47 am

to display what you get with "get" you have to ":put" that.
 
User avatar
NAB
Trainer
Trainer
Posts: 503
Joined: Tue Feb 10, 2009 4:08 pm
Location: UK
Contact:

Re: updating dynamic l2tp client "connect-to" IP address

Sat Sep 18, 2010 1:42 am

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.
Nicholas Barnes BSc(hons)
Certified Mikrotik Consultant
Certified Mikrotik Trainer

Vitell - Asterisk, Linux and network consultants
Unofficial IRC channel: #routerboard on irc.z.je
 
jrs
just joined
Topic Author
Posts: 4
Joined: Thu Sep 16, 2010 6:55 pm

Re: updating dynamic l2tp client "connect-to" IP address

Mon Sep 20, 2010 1:22 pm

Thank you very much guys! :D

Managed to get it working

Regards

Who is online

Users browsing this forum: No registered users and 11 guests