i'm using 6.1 and issue solved:)
thank

Tayeb Meftah
Voice of the blind T Broadcast Freedom
http://www.vobradio.org
Phone:447559762242
----- Original Message ----- From: "Martin Ruiz Ibersystems" <[email protected]>
To: "Mikrotik discussions" <[email protected]>
Sent: Tuesday, August 20, 2013 12:16 PM
Subject: Re: [Mikrotik] ROS-V6 Scrypting issue: Variables declaration fail


6.2 has problems... try to downgrade to 6.1

* Martín Ruiz*
* *
*Ibersystems Solutions, SL*
* *
Dpto. Redes Inalámbricas

Tel.  902 909 858 / 93 184 52 13 / 669 37 95 21
Web: http://www.ibersystems.es
Facebook: http://www.facebook.com/Ibersystems
Twitter: http://www.twitter.com/Ibersystems
[email protected]

La información incluida en este email es *CONFIDENCIAL*, siendo para uso
exclusivo del destinatario arriba mencionado. Si Ud lee este mensaje y no
es el destinatario indicado, le informamos que está totalmente prohibida
cualquier utilización, divulgación, distribución y/o reproducción de esta
comunicación, total o parcial, sin autorización expresa en virtud de la
legislación vigente. Si ha recibido este mensaje por error, le rogamos nos
lo notifique inmediatamente por esta vía y proceda a su eliminación junto
con sus ficheros anexos sin leerlo ni grabarlo.

En virtud de lo establecido en la Ley 15/1999, y la LSSICE 34/2002, le
informamos que sus datos forman parte de un fichero automatizado
titularidad de *IBERSYSTEMS SOLUTIONS, S.L.* La información registrada se
utilizará para informarle por cualquier medio electrónico de nuestras
novedades comerciales. Puede ejercer los derechos de acceso, rectificación,
cancelación y oposición en: *C/ CAMÍ RAL DE LA MERCÈ, 501 - 08302 MATARÓ
(BARCELONA).*

En cumplimiento de la Ley 34/2002 del 11 de julio, de Servicios de la
Sociedad de la Información y de Comercio Electrónico, le informamos que
puede revocar en cualquier momento, de forma sencilla y gratuita, el
consentimiento para la recepción de correo electrónico enviando un e-mail
con su solicitud a:*[email protected]*





2013/8/20 Tayeb Meftah <[email protected]>

Hi Guys,
i'm runing ROS V6 in all my RB's,
and i'm trying to scrypt one of my RB (RB951-2N) for IPV6 Dynamic link
updater using (HE.NET)
here's the scrypt, but when i import it all the variables lines have error:
:local HEtunnelinterface "sit1"
:local HEtunnelid "blabla"
:local HEuserid "blabla"
:local WANinterface "ADSL"
#Don't Use MD5! Paste your Password Plain Text
:local HEpass "blablabla"
:local HEupdatehost "ipv4.tunnelbroker.net"
:local HEupdatepath "/nic/update"
:local outputfile ("HE-" . $HEtunnelid . ".txt")
:local HEipv4addr
:set HEipv4addr [/ip address get [/ip address find
interface=$WANinterface] address]
:set HEipv4addr [:pick [:tostr $HEipv4addr] 0 [:find [:tostr $HEipv4addr]
"/"]]
:if ([:len $HEipv4addr] = 0) do={
:log error ("Could not get IP for interface " . $WANinterface)
:error ("Could not get IP for interface " . $WANinterface)
}
/interface 6to4 {
:if ([get ($HEtunnelinterface) local-address] != $HEipv4addr) do={
:log info ("Updating " . $HEtunnelinterface . " local-address with new IP
" . $HEipv4addr . "...")
set ($HEtunnelinterface) local-address=$HEipv4addr
}
}
:log info ("Updating IPv6 Tunnel " . $HEtunnelid . " Client IPv4 address
to new IP " . $HEipv4addr . "...")
/tool fetch mode=http \
host=($HEupdatehost) \
url=("http://"; . $HEupdatehost . $HEupdatepath . \
"?username=" . $HEuserid . \
"&password=" . $HEpass . \
"&hostname=" . $HEtunnelid . \
"&myip=" . $HEipv4addr) \
dst-path=($outputfile)
:log info ([/file get ($outputfile) contents])
/file remove ($outputfile)

any clue Guys?

Tayeb Meftah
Voice of the blind T Broadcast Freedom
http://www.vobradio.org
Phone:447559762242
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://mail.butchevans.com/pipermail/mikrotik/attachments/20130820/580bfc05/attachment.html
>
_______________________________________________
Mikrotik mailing list
[email protected]
http://mail.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
RouterOS

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.butchevans.com/pipermail/mikrotik/attachments/20130820/b26a0091/attachment.html>
_______________________________________________
Mikrotik mailing list
[email protected]
http://mail.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

_______________________________________________
Mikrotik mailing list
[email protected]
http://mail.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

Reply via email to