Hi, great script i use or globally on my chr.
Someone know a way to send a variable trough command $tgSendMessage text="test $variable"
It give me a syntax error if I try to insert.
Did you try to search the forum first? There are many examples. If it's not what you are looking for, explain in more detail what you need. Hi maybe I can't explain well. In the forum (and Google) I find only info for sending text from mikrotik to telegram bot, one way communication. I need to comm...
Hi guys i find info only about send message from Mikrotik to Telegram, you know a working method for start routeros script by a telegram bot? My desire is create a button for telegram bot like "Query devices status" Mikrotik receive the command and run a script that do some thing. For now ...
Hi, can be precious a system for triggering scripts on server for user map events. An option in map settings with a multiple choises for example action: (you select voices "Adding device" -> on-event-script: (and a box for script) in this way you open a world, i can add a device manually i...
Hi guys. I need a way to have a remote value on a local variable, i have ssh configured with public keys, no password required from machine1 to machine2 :global Status ([/system ssh-exec address=10.50.0.243 user=admin-ssh command=":put [/system identity get \"name\"]" as-value]->...
Hi guys, i am trying to learn funcion for simplify some of my autoprovisioning script, having some trouble for remote ssh output interpretation. This is an example: /foreach aDev in=[/ppp secret find comment="Autoprovisioning"] do={ #Funcion :global aIP [/ppp secret get $aDev "remote-...
Hi thanks for your answer, i tried the script on page but it seems can't process output of /ppp secret get last-logged-out very well, so i modified this with my needs: https://wiki.mikrotik.com/wiki/Expire_u ... er_of_days.
Hi guys, need a help. I need a script for deleting older profile in /ppp secret for clients that haven't connected for one month. I dont understand how to processing "latest logged out" value, it is not simple: put [ppp secret get [find name=mgmt] last-logged-out] aug/16/2019 12:10:58 <-Ho...
Hi please improve dude settings from cli, i love routeros scripting language. I need some instrument for auto adding devices to graphical map, in routeros style like: /dude network-maps rescan "home" that can be triggered by scripts; /dude device add name=" " ip-address =" &...
Thanks for your answer after many attempt i have found a solution. If you do an addiction to variable +0 is ok, then you can subtract without problems.
Here an example
:set $IP ($IP+0); :set $IP ($IP-1)
Hi guys, i have a client that have an hotspot radius system, radius is used only for ok or ko no queue limitations. I know the speed incoming from wan (30-DWN / 3-UP) want to equalize entire subnet (10.5.50.0/24) like a normal lan with pcq. I done this: /queue simple add max-limit=3M/30M name=EQ que...
Hi, i have this problem:
/global IP [/ip neighbor get number=0 address]; :set "$IP" ($IP-1);
Script Error: cannot substract string from time interval
But it work if i set IP variable manually, there is a way to subtract an ip address given by print or get command?