Community discussions

MikroTik App
 
1001001
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Mon Sep 24, 2012 12:46 pm

Append a string to a command in ppp variable

Mon Jun 20, 2016 12:02 pm

Hello,

I'm currently trying the following:

Set the user of a ppp device to serialnumber + string. I've tried a few things but it won't work. It allways stops at the dash saying 'expected and of command'.

It should look like this

user=[/system routerboard get serial-number]-guest-network

Is this possible?

Best regards
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2865
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Append a string to a command in ppp variable

Mon Jun 20, 2016 2:27 pm

See examples ... use doublequotes around all message
:log info  "$[/system identity get name]: Host table nor initialized."
or
:local srchost "192.168.1.1"
:local komunikat ("VPN_TUNNEL: $[/system clock get time], $[/system clock get date], $srchost DOWN");

Who is online

Users browsing this forum: No registered users and 31 guests