9.2.82 Script Error
HSNM Hardware and VM configurations. Sms, Email, Backup, Database

Rate this topic
   Post Reply
3 posts   •   Page 1 of 1
spike
Posts: 46
Joined: 09 Sep 2016, 01:43

9.2.82 Script Error

by spike » 21 Apr 2022, 00:33

Hi Team,

Gateway config script error since update.

This series of scripts error due to formatting

:if ([/system script find name=ipResolve] != "") do={/system script remove ipResolve}
add name=ipResolve policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source="\
#:local SERVERPPTP [resolve ]\r\n
\r\n
#:if ([/interface pptp-client get 0 connect-to] != \$SERVERPPTP) do={\r\n
# /interface pptp-client set 0 connect-to=\$SERVERPPTP\r\n
# :log info \"Updated ip server pptp: \$SERVERPPTP\"\r\n
#}"

Vs one that worked

:if ([/system script find name=ipResolve] != "") do={/system script remove ipResolve}
add name=ipResolve policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive \
source=":local SERVERPPTP [resolve vpn.hq.net.nz]\r\
\n\r\
\n:if ([/interface pptp-client get 0 connect-to] != \$SERVERPPTP) do={\r\
\n /interface pptp-client set 0 connect-to=\$SERVERPPTP \r\
\n :log info \"Updated ip server pptp: \$SERVERPPTP\"\r\
\n}"

Note the breaking space \r\n on the new script vs the breaking on the old script \n\r\

I note this is not resolved on latest, are you aware?

HSNMSupport
Posts: 1529
Joined: 26 Jul 2016, 09:16

Re: 9.2.82 Script Error

by HSNMSupport » 21 Apr 2022, 09:31

Thanks for the advice.
We will push this to our developers to let them check.
Have a nice day.

HSNMSupport
Posts: 1529
Joined: 26 Jul 2016, 09:16

Re: 9.2.82 Script Error

by HSNMSupport » 22 Apr 2022, 14:59

This will be fixed in the upcoming 9.3 version.
Have a great day.

Rate this topic

Who is online

Users browsing this forum: No registered users and 9 guests

It is currently 28 Mar 2024, 22:17