I want to keep an active ssh connection between Mikrotik and my Linux server from within a script. I am able to establish a stable connection to my server from the Mikrotik terminal, but I want to do this with a script as well, so that my ssh tunnel is connected when the time is up. What should I do?
Thank you for the nice video ! One question: Can I use the public key for multiple routers ? Say, I want to access Router B and Router C from Router A, after generate a pair of key, can the same public key used by Router B and Router C ?
one thing we do on every new install is setting the l2mtu to the max-l2mtu of each interface. not really sure why it doesn't already come this way from the factory or why there even are separate l2mtu and max-l2mtu values. :foreach i in=[/interface/ethernet/find] do={ \ :local iName [/interface/ethernet/get $i name]; \ :local iMtu [/interface/get $iName max-l2mtu]; \ /interface/set $iName l2mtu=$iMtu}
@@Andrew_Thrift can you provide where you got this information from? after scraping google you are the sole informant of this. not even mikrotik's wiki has any mention of that.
You should say about script.auto.rsc !!! This way i run scripts who detect internal stuff e.g interfaces/addresses and modify them in dedication way to only this branch. On end of script is self-remove .auto.rsc. Linux script do massive FTP sendding and reconnect to check if file is removed, if not then list all not done and report as mail to check them.
I'm really warming to Druvis, he would make a good teacher.
Of course we want something with Python! :-) Even if it is just a "Hello, world!", something to start with, it would be really helpful
i am using python to grab wireguard interface bandwidth every 5min and save it into a influxdb and Grafana to show data.
Python + MikroTik examples, please!
Ansible with mikrotik would be really useful
Yes, I want to see Python examples or any other, how to automate changes etc. on routers with using some "maths" and "dynamic parameters"...
Such a good thumbnail - kudos!
also by using ssh u can push the config, so useful!
Amazing video!!! Mikrotik + Python videos is a great idea!!!
I believe python use example will be more than welcome.
I am also doing that and managing it by my own custom software.
I want to keep an active ssh connection between Mikrotik and my Linux server from within a script. I am able to establish a stable connection to my server from the Mikrotik terminal, but I want to do this with a script as well, so that my ssh tunnel is connected when the time is up. What should I do?
V good series ...nice work! I 'd like to see python in action with routerboard
Have you considered providing alternative machine friendly output to your commands (simar to gpg option --with-colons)?
Been using SSH for healthchecks for over a decade.
cool, wasn't aware of the OR
Is it possible to backup/restore entire config with scp (to copy files) and ssh (to execute config import/export). Is scp supported?
Ok, the scp is supported. Thanks
Thank you for the nice video ! One question: Can I use the public key for multiple routers ? Say, I want to access Router B and Router C from Router A, after generate a pair of key, can the same public key used by Router B and Router C ?
Absolutely, that's how PKI is supposed to work - one holder of a private key and multiple holders of the public key.
@@RB01-lite Thanks for the quick reply ! Also, I successfully installed the RouteOS on NVme SSD, so thanks again ! :-)
do some python mikrotik
At work we use ssh exclusively to setup hundreds of mikrotik with vpn, ssh keys, vlan, etc...
To bad there is no way to auto setup switchos devices.
Please scale up text in next videos, font in console is too small 😑
RUclips has upgraded so you can zoom in on the video on your smartphone or tablet.
@@gabrielporto.mikrotik what about Android TV with 4K display?
one thing we do on every new install is setting the l2mtu to the max-l2mtu of each interface. not really sure why it doesn't already come this way from the factory or why there even are separate l2mtu and max-l2mtu values.
:foreach i in=[/interface/ethernet/find] do={ \
:local iName [/interface/ethernet/get $i name]; \
:local iMtu [/interface/get $iName max-l2mtu]; \
/interface/set $iName l2mtu=$iMtu}
Some platforms have shared buffers, maxxing the l2mtu on these will use buffer space. The Tilera based CCR1xxx are like this.
@@Andrew_Thrift where can i check up on the limit for these before hitting buffer space?
@@Andrew_Thrift can you provide where you got this information from? after scraping google you are the sole informant of this. not even mikrotik's wiki has any mention of that.
What about some automation examples with Ansible...
You should say about script.auto.rsc !!! This way i run scripts who detect internal stuff e.g interfaces/addresses and modify them in dedication way to only this branch. On end of script is self-remove .auto.rsc. Linux script do massive FTP sendding and reconnect to check if file is removed, if not then list all not done and report as mail to check them.
We have a video about that. ruclips.net/video/jBC7mScNUjw/видео.html