Maximum amount of winbox -> terminal paste???

v5.15

I was upgrading to a new router. I took the old export file, edited it to remove mac addresses, etc, and copied it to the clipboard… then, I mac-winbox into the new router and open terminal.

When I right click and paste, nothing happens for a few seconds, then the winbox disconnects. I can reproduce this everything.

If I only copy about the first half of the lines, and paste them in, and then copy the remaining lines and paste them in, it works fine.

So, what is the limit… and is there anyway to fix it to be bigger?

I am not sure if there is a limit but another way you can try is to place the export in your files and then import the file. Does this have the same problem?

Put your commands in a .txt file, upload it on the server (using FTP or Winbox → Files), then enter the following terminal command:

import file.txt
** Where file.txt is the name of your text file.

That’s the right way to import some large configuration.

Scripting is another options for executing large command sequences on your MikroTik router.
Variables, conditional statements and loops can be used to obain smaller sources then executing similar commands.

http://wiki.mikrotik.com/wiki/Manual:Scripting
http://wiki.mikrotik.com/wiki/Automated_Usage_Script_without_usermanager

Did you read the original post?

This is no need for a description of “scripting with variables, conditional statements, etc…”. This post is specifically dealing with transferring a configuration from one router to another.

Also… No, you can not import a .txt file. It MUST be a .rsc file. (rename the extension). Otherwise, the CLI throws an error unknown file type.

I am reading the same way as dorikut, and he is on the right way. You can rename the file extension in rsc and then import it.
What is wrong with that?

What’s wrong with what? There’s nothing wrong with importing a file, or renaming a file. Unforntunately, that has nothing to do with the original question of “what is the paste limit”.

Oops, i see it. Thought you wanted to know how to import (paste) the config file.
To your original question I don’t know the answer :slight_smile:
May be it is a limit of CPU/RAM?

I see you said that you connected with MAC to Winbox

If you have larger configuration scripts, you should set an IP-address first and connect to winbox via IP.
MAC connection is not as stable as IP connection, and doesn’t always manage to transfer the data from PC to Winbox fast enough when you copy paste.
Thus then often disconnecting after a while, often leaving you with a partially configured router(as much as the router managed to catch from PC before it got disconnected.).

If you use IP-adress you eliminate this problem.(You can simply make a temporary IP-adress that you can remove again if you don’t need the IP after script is done).

Have an nice day! :slight_smile:

I myself will do so, go into the mac-winbox. I open a terminal window and open the config file to your computer. RSC, I copy and paste the router terminal services

You’re right about file extension, but consider that copy/pasting a a large amount of commands is not the right way for a configuration transfer.