Community discussions

MikroTik App

Search found 49 matches

by upnort
Wed Sep 02, 2020 5:13 pm
Forum: General
Topic: Winbox Updates
Replies: 0
Views: 136

Winbox Updates

Mikrotik staff, I am asking for an RSS feed to know when there are new Winbox releases. Users seldom manually check for updates from within Winbox. I am aware of the following RSS feeds, none of which contain Winbox release news: mikrotik.com/bugfix.rss mikrotik.com/current.rss mikrotik.com/download...
by upnort
Sun Aug 30, 2020 1:12 am
Forum: Announcements
Topic: WinBox v3.25 released!
Replies: 68
Views: 5744

Re: WinBox v3.25 released!

* What is the related RSS feed to be notified when Winbox is updated? * Is there a way to copy the change log from within Winbox? (Irrelevant if there is an RSS feed that includes the change log.) I am aware of the following RSS feeds, none of which seem to contain Winbox release news: mikrotik.com/...
by upnort
Thu Sep 26, 2019 6:44 pm
Forum: Scripting
Topic: Sending output of multiple commands to a file
Replies: 3
Views: 2139

Re: Sending output of multiple commands to a file

In my project Mikrotik for Splunk, I do get this information using syslog to send it out of all routers.
Not what I was looking for, but I see what you did. Thanks. I'm looking to store the information directly into a file rather than a remote log server.
by upnort
Mon Sep 23, 2019 6:33 pm
Forum: Scripting
Topic: Sending output of multiple commands to a file
Replies: 3
Views: 2139

Re: Sending output of multiple commands to a file

I'm still looking for some coaching. :)
by upnort
Tue Sep 17, 2019 12:15 am
Forum: Scripting
Topic: Sending output of multiple commands to a file
Replies: 3
Views: 2139

Sending output of multiple commands to a file

I want to collect some basic device data and save the information to a file that can be used off device. The information I want to store is something like this: :local Resource [/system resource print] :local Routerboard [/system routerboard print] :local Identity [system identity print] :local Serv...
by upnort
Thu Sep 05, 2019 8:34 pm
Forum: Scripting
Topic: Test for existing disk logging before enabling disk logging
Replies: 3
Views: 2048

Re: Test for existing disk logging before enabling disk logging

Thank you for the reply. While I could get the action=disk command to succeed, I was unable to get topics= to work. I found a somewhat sledge hammer solution. Just delete any existing disk log actions. For now that works although I could foresee that not being an ideal solution if custom disk action...
by upnort
Thu Sep 05, 2019 7:01 pm
Forum: Scripting
Topic: Test for existing disk logging before enabling disk logging
Replies: 3
Views: 2048

Test for existing disk logging before enabling disk logging

Looking for help or existing examples. I want to test whether disk logging is already enabled before configuring a device to use disk logging. I wrote the following script that works as expected: # A script to enable persistent disk logs and set the number of log # lines based on installed total mem...
by upnort
Tue Aug 27, 2019 3:51 am
Forum: Scripting
Topic: Actual file names stored in /file [SOLVED]
Replies: 2
Views: 3159

Re: Actual file names stored in /file [SOLVED]

Thank you! :)
by upnort
Tue Aug 27, 2019 2:05 am
Forum: Scripting
Topic: Passing variables to functions [SOLVED]
Replies: 6
Views: 4241

Re: Passing variables to functions [SOLVED]

local DisplayMessages do={ :put "$msg"; :log info "$msg" } :local TestVariable "passing a variable to a function." $DisplayMessages msg=("This is a test of ".$TestVariable); Thank you! :D I did not know functions could be local. The above referenced thread did not mention that or I just failed to u...
by upnort
Tue Aug 27, 2019 12:07 am
Forum: Scripting
Topic: Passing variables to functions [SOLVED]
Replies: 6
Views: 4241

Re: Passing variables to functions [SOLVED]

Did you have a look at this post?
Yes, that is the script I linked to in my original post.

Everything is clear as mud to me. :)
by upnort
Mon Aug 26, 2019 10:34 pm
Forum: Scripting
Topic: Passing variables to functions [SOLVED]
Replies: 6
Views: 4241

Passing variables to functions [SOLVED]

Functions provide a great way to repeat commands and eliminate duplicate code. I found a forum thread about the topic, yet I am unable to figure out how to pass variables to a function. A simple test script: :global DisplayMessages do={ :put "$Msg"; :log info "$Msg" } :local TestVariable "passing a ...
by upnort
Fri Aug 23, 2019 5:18 am
Forum: General
Topic: Winbox 64bit Version
Replies: 80
Views: 25385

Re: Winbox 64bit Version

There are several cross-platform software toolkits. Using such a toolkit would allow for single sourcing the code but compiling on multiple platforms.

A lot of software these days don't support custom tools -- just create a robust and secure web browser interface. True cross-platform.
by upnort
Thu Aug 22, 2019 12:52 am
Forum: Scripting
Topic: SFTP Upload
Replies: 14
Views: 5467

Re: SFTP Upload

That's the wrong way. He want to upload from RouterOS, not to.
Oops. Didn't read -- too much frustration with my own fledgling efforts at scripting. :)
by upnort
Thu Aug 22, 2019 12:49 am
Forum: Scripting
Topic: Actual file names stored in /file [SOLVED]
Replies: 2
Views: 3159

Actual file names stored in /file [SOLVED]

How are file names handled in scripting? When I run the following snippet, the messages returned are not the human readable file names but some kind of tokenized file name. # Filename for wildcard filename search. :local wildcardFilename ($systemIdentity."-".$systemModel."-".$routerOSVersion."-.*bac...
by upnort
Thu Aug 22, 2019 12:45 am
Forum: Scripting
Topic: Scripting confusion
Replies: 2
Views: 1781

Re: Scripting confusion

After much experimenting, looks like any *.rsc file uploaded to a device gets copied/duplicated as a script to /system script and is always empty. I tried various ways to upload a script, including various ways of emulating the carriage returns and newlines, but the file always ends up empty. Is the...
by upnort
Wed Aug 21, 2019 10:00 pm
Forum: Beginner Basics
Topic: scp and wildcards
Replies: 0
Views: 620

scp and wildcards

Does RouterOS support wildcards with scp? I searched the forum but found nothing obvious. Using scp I want to pull backups from a Mikrotik device to an off-device storage location. The scp command on my system supports wildcards and works fine but fails with Mikrotik devices. The result is always "n...
by upnort
Wed Aug 21, 2019 6:43 am
Forum: Scripting
Topic: SFTP Upload
Replies: 14
Views: 5467

Re: SFTP Upload

I use the following in Linux systems:

scp "$NAME_OF_FILE" $SSH_OPTIONS username@router_ip_address:"$NAME_OF_FILE"

After uploading, when using winbox look in Files or in a terminal, /file print.

I don't use Windows, but PuTTY or WinSCP likely support something similar.
by upnort
Wed Aug 21, 2019 2:57 am
Forum: Scripting
Topic: Scripting confusion
Replies: 2
Views: 1781

Scripting confusion

If the following questions are answered in the wiki please show me where. 1. When I upload a script using scp or winbox, the script is always tagged as invalid. The file is tagged invalid because the contents are empty, as seen by the /system script print command. The file's source parameter is empt...
by upnort
Wed Aug 21, 2019 12:27 am
Forum: Scripting
Topic: Scripting output
Replies: 3
Views: 2164

Re: Scripting output

Apparently I misunderstood the /import command. The command has nothing to do with preparing the script. The command is for appending the current configuration.
by upnort
Tue Aug 20, 2019 11:33 pm
Forum: Scripting
Topic: Scripting output
Replies: 3
Views: 2164

Re: Scripting output

Thank you for replying. I'm still not getting any output. :( I think the problem might be the script. When I run /system script print the script is tagged as I - Invalid . I'm looking around the web for how to remedy the problem but am not finding clues. Edit: I found the problem. Puzzled how to fix...
by upnort
Tue Aug 20, 2019 11:24 pm
Forum: Scripting
Topic: Geany syntax highlighting
Replies: 0
Views: 1569

Geany syntax highlighting

I want to create a Mikrotik RouterOS syntax highlighting file for the Geany text editor . I am hoping some of you programming gurus can tell me which programming languages the RouterOS scripting language most resembles so I can use an existing Geany filetype as a starting template. I found a handful...
by upnort
Tue Aug 20, 2019 10:30 pm
Forum: Scripting
Topic: Scripting output
Replies: 3
Views: 2164

Scripting output

My understanding is script output cannot be viewed directly. Instead the output needs to be sent to the log. I created a simple script, test.rsc: :local myVar; :set myVar "test"; :log info "$myVar"; I uploaded the script with scp. I added the script to the script "repository": /system script add nam...
by upnort
Tue Aug 20, 2019 9:07 pm
Forum: Scripting
Topic: Splitting/parsing variable data [SOLVED]
Replies: 3
Views: 3436

Re: Splitting/parsing variable data [SOLVED]

Thank you!
by upnort
Tue Aug 20, 2019 7:43 pm
Forum: Scripting
Topic: Splitting/parsing variable data [SOLVED]
Replies: 3
Views: 3436

Splitting/parsing variable data [SOLVED]

What is the command equivalent of bash awk or cut? I found the ":parse" function but am unable to get that to succeed. When I run the following command: :put [/system resource get version] I see something like: 6.44.5 (long-term) I want to return only the version number. That is, use the space as th...
by upnort
Fri Aug 09, 2019 11:31 pm
Forum: General
Topic: RouterOS compatibility with older routerboards
Replies: 11
Views: 1837

Re: RouterOS compatibility with older routerboards

I don't remember whether this came in 6.40 or 6.41.... The wiki topic states the change occurred in 6.41 and the update includes a script to automatically reconfigure. I suppose then in an incremental update, that 6.41 is one of the key increment points. Another thing is that the IPsec configuratio...
by upnort
Fri Aug 09, 2019 10:52 pm
Forum: General
Topic: RouterOS compatibility with older routerboards
Replies: 11
Views: 1837

Re: RouterOS compatibility with older routerboards

OK, update incrementally. :) I am proposing to the owner we grab a shelf spare of the same model and then test incremental updates on the bench. After being satisfied, swap in the field. If anything burps then just restore the original device and bench test again. How do we do that when shelf spares...
by upnort
Fri Aug 09, 2019 9:36 pm
Forum: General
Topic: RouterOS compatibility with older routerboards
Replies: 11
Views: 1837

Re: RouterOS compatibility with older routerboards

t's good to do netinstall instead of updating from the ROS when going from some old version. Please define some old version . I am in a similar situation although I did not install any of the routers. I discovered two routers at 6.9, one at 6.34.2, and a bunch of others ranging from 6.40 to 6.43.12...
by upnort
Fri Aug 09, 2019 7:32 pm
Forum: General
Topic: SSH Access to old 6.9 routers [SOLVED]
Replies: 2
Views: 848

Re: SSH Access to old 6.9 routers [SOLVED]

Along with your reply and walking away overnight, I finally punched through. I needed both of the following options: -o HostKeyAlgorithms=ssh-dss -o KexAlgorithms=diffie-hellman-group14-sha1 Or in my user .ssh/config: KexAlgorithms=+diffie-hellman-group14-sha1 HostKeyAlgorithms=+ssh-dss Now to see i...
by upnort
Fri Aug 09, 2019 12:55 am
Forum: General
Topic: SSH Access to old 6.9 routers [SOLVED]
Replies: 2
Views: 848

SSH Access to old 6.9 routers [SOLVED]

Thread request: Yes, I know, upgrade the devices. Please avoid related commentary. :) Is SSH access possible with 6.9? I am unsuccessful using SSH to access an RB951-2n and RB750 running 6.9.The connection attempt hangs. Using verbose mode does not help identify the hang. There is no password prompt...
by upnort
Sun Mar 03, 2019 8:35 pm
Forum: Announcements
Topic: Winbox vulnerability: please upgrade
Replies: 329
Views: 115991

Re: Winbox vulnerability: please upgrade

I was lucky that my predecessor had a system in place to easily roll out changes to all customer routers at once. So upgrading all customer routers was done within 24 hours of me learning about this vulnerability. We now have an IP whitelist on the winbox service to prevent anything bad in the furt...
by upnort
Thu Sep 13, 2018 7:24 am
Forum: Scripting
Topic: need a script for backup and email with details
Replies: 7
Views: 3284

Re: need a script for backup and email with details

Does this help?

I'm trying to learn this too.
by upnort
Fri Sep 07, 2018 8:57 pm
Forum: Scripting
Topic: Backup scripts
Replies: 3
Views: 1144

Re: Backup scripts

@ADahi
Thank you much for sharing! :-D I will try to remember to report my results when I test further.
by upnort
Thu Sep 06, 2018 9:57 pm
Forum: Beginner Basics
Topic: Updating firmware
Replies: 4
Views: 890

Re: Updating firmware

Do I understand correctly there are TWO updates to perform -- the 1) RouterOS and 2) firmware -- and this requires TWO reboots?
by upnort
Thu Sep 06, 2018 9:54 pm
Forum: Scripting
Topic: Backup scripts
Replies: 3
Views: 1144

Backup scripts

I am new to RouterOS scripting. I want to automate backups. I am looking for information to format the backup file names with the following information: $IDENTITY-$ROUTER_MODEL-$ROUTEROS_VERSION-$DATE-$TIME.backup-type Where $DATE uses the format YYMMDD and $TIME uses the format HHMM. For example: M...
by upnort
Tue Sep 04, 2018 10:54 pm
Forum: General
Topic: linux expect script with SSH not working [SOLVED]
Replies: 4
Views: 1337

Re: linux expect script with SSH not working [SOLVED]

Using expect is clunky at best. :) Been there done that. Using sshpass is an appropriate way to use expect with SSH. Again clunky, because the process is interactive and requires a human user to provide the password. Embedding passwords directly in scripts tends to cause sysadmins to suck through th...
by upnort
Tue Aug 28, 2018 7:05 pm
Forum: General
Topic: Finding ARIN IP range assignment expiration
Replies: 0
Views: 426

Finding ARIN IP range assignment expiration

This topic is NOT related to Mikrotik but I am hoping I might get lucky because so many of you are network gurus. Mods: If this topic is unacceptable to the forum then I understand deleting. I'm looking for a scriptable way to find the ARIN IP range assignment expiration. The only way I have found i...
by upnort
Sun Aug 26, 2018 8:54 pm
Forum: Beginner Basics
Topic: Configuration management and version control
Replies: 2
Views: 889

Re: Configuration management and version control

My search-fu was way off I guess. Looks like the following are popular here: Oxidized, RANCID, rConfig, Unimus.
by upnort
Sat Aug 25, 2018 11:51 pm
Forum: Beginner Basics
Topic: Configuration management and version control
Replies: 2
Views: 889

Configuration management and version control

Hi All, We have several dozen Mikrotik devices. I am looking for related tutorials for configuration management. Specifically, I want to grab /export backups and compare to previous backups. Using git seems popular these days but I am not averse to other version control systems if that proves to be ...
by upnort
Wed Aug 22, 2018 7:27 pm
Forum: Announcements
Topic: v6.42.7 [current] is released!
Replies: 159
Views: 39533

Re: v6.42.7 [current] is released!

@rushlife: Thank you for the scripts!
by upnort
Wed Aug 22, 2018 6:36 am
Forum: Announcements
Topic: v6.42.7 [current] is released!
Replies: 159
Views: 39533

Re: v6.42.7 [current] is released!

Hi, I have linux (ubuntu server) with bash script ( which I made myself ) to upgrade all of it.
Linux user here. Please, please share the script! :D
by upnort
Mon Aug 20, 2018 10:24 pm
Forum: General
Topic: Log all console commands [SOLVED]
Replies: 30
Views: 10474

Re: Log all console commands [SOLVED]

I am planning a remote logging server that will include our Mikrotik devices. I too am interested in more verbosity and granularity with logs. :)
by upnort
Sun Aug 19, 2018 11:51 pm
Forum: Beginner Basics
Topic: Updating firmware
Replies: 4
Views: 890

Updating firmware

I am looking for best practices with updating firmware. Browsing through the forum indicates that overwhelmingly most people have no issues updating firmware. But there are notable corner cases where people post that something breaks after an update. After reading around the web and wiki, seems the ...
by upnort
Sun Aug 19, 2018 11:37 pm
Forum: General
Topic: Passwords for hundreds/thousdands of devices
Replies: 10
Views: 1889

Re: Passwords for hundreds/thousdands of devices

I am researching security issues and best practices for a new WISP owner. All of the WISP backend is Linux based. No Windows except for the office. There is a FreeRADIUS server used for authenticating CPEs and APs but not being used to authenticate Mikrotik routers. I am not yet familiar with how Fr...
by upnort
Sun Aug 19, 2018 7:42 pm
Forum: General
Topic: Passwords for hundreds/thousdands of devices
Replies: 10
Views: 1889

Re: Passwords for hundreds/thousdands of devices

I am new to the whole WISP thing. Hence my asking. I probably should have posted this question in Beginner Basics. With respect to Mikrotik devices I am still at the ELI5 (explain like I'm five) stage. :) What do you mean by "manage"? I am not referring to customers but company personnel. Routine ma...
by upnort
Sun Aug 19, 2018 5:34 am
Forum: General
Topic: Passwords for hundreds/thousdands of devices
Replies: 10
Views: 1889

Re: Passwords for hundreds/thousdands of devices

SSH keys .
How do manage passwords for hundreds or thousands of Winbox logins?
by upnort
Sun Aug 19, 2018 3:43 am
Forum: General
Topic: Passwords for hundreds/thousdands of devices
Replies: 10
Views: 1889

Passwords for hundreds/thousdands of devices

I am looking for real world experiences with managing passwords for hundreds to thousands of devices. Do you use the same password for all? A different password for each device? If the latter then how do you manage the passwords?

Thanks. :)
by upnort
Sat Aug 18, 2018 1:56 am
Forum: Beginner Basics
Topic: Winbox, WINE, and copying backup files
Replies: 3
Views: 1099

Winbox, WINE, and copying backup files

I have been searching the forum to no avail. I am using Winbox 3.17 in WINE 3.0.2 in Ubuntu MATE 16.04. I want to copy backup files from a router to a computer. 1. I am unable to use drag and drop. Does this work under WINE? I found older threads discussing the problem but the threads indicate the p...
by upnort
Wed Aug 15, 2018 7:29 pm
Forum: Beginner Basics
Topic: Updating old versions of RouterOS [SOLVED]
Replies: 3
Views: 1168

Re: Updating old versions of RouterOS [SOLVED]

Okeydokey. Thanks! :)
by upnort
Wed Aug 15, 2018 2:10 am
Forum: Beginner Basics
Topic: Updating old versions of RouterOS [SOLVED]
Replies: 3
Views: 1168

Updating old versions of RouterOS [SOLVED]

Hi All, I am relatively new to RouterOS. I am looking for links/information for a stepped/incremental update strategy so as to break as little as possible. I found some routers with old RouterOS versions. Ouch. OK, let's get them updated to 6.40.8. :) I searched the forum and wiki. Being relatively ...