Community discussions

MikroTik App

Search found 7 matches

by Artnet44
Tue Oct 18, 2022 2:35 pm
Forum: Useful user articles
Topic: Automation tool for quick tasks
Replies: 4
Views: 6980

Re: Automation tool for quick tasks

I see what you mean with the mac regex, tested it on a unit. Thanks a mil! I've updated the regex & changed code slightly for ease of reference. :) The SSL problem has been resolved, will tackle radio-name with spaces issue next. Here is the revised code: import argparse import paramiko import r...
by Artnet44
Tue Oct 18, 2022 2:08 pm
Forum: Useful user articles
Topic: Automation tool for quick tasks
Replies: 4
Views: 6980

Re: Automation tool for quick tasks

client.exec_command('/interface wireless set wlan1 radio-name='+str(args.radioname)) If radio name contain space do not work, must be radio-name="<NAME>" SONAR? "/certificate sign sonar name=" and everywere are missing the " on winbox commands (when involved text). Hi Rexte...
by Artnet44
Tue Oct 18, 2022 1:22 pm
Forum: Useful user articles
Topic: Automation tool for quick tasks
Replies: 4
Views: 6980

Automation tool for quick tasks

Hello everyone, Was wondering if anyone might be looking for a little tool to perform some actions on mikrotik units. The tool is extremely rudimentary at the current point in time, but I am open to suggestions from any of the devs/programmers within the community. Apologies if this is in the wrong ...
by Artnet44
Thu Sep 29, 2022 12:20 pm
Forum: Scripting
Topic: Paramiko: Interacting with "source:" within scripts [SOLVED]
Replies: 1
Views: 1402

Re: Paramiko: Interacting with "source:" within scripts [SOLVED]

For those having a similar issue, finally resolved it with this: /system script add dont-require-permissions=yes name=ppp-dropper owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source=":log info message=running script /ppp active :foreach i in=[/ppp active find] d...
by Artnet44
Thu Sep 29, 2022 11:03 am
Forum: Scripting
Topic: Paramiko: Interacting with "source:" within scripts [SOLVED]
Replies: 1
Views: 1402

Paramiko: Interacting with "source:" within scripts [SOLVED]

hello everyone, I have hit a dead end with loading a ppp dropping script on my routerboards. Due to the massive amount of devices that require the script, I need to somehow automate it. I have tried using Paramiko with python, to load the following script onto the unit: /system script add dont-requi...
by Artnet44
Wed Aug 10, 2022 7:13 pm
Forum: Scripting
Topic: Paramiko - Regenerate ssh key / Python Automation [SOLVED]
Replies: 2
Views: 1920

Re: Paramiko - Regenerate ssh key / Python Automation [SOLVED]

stdin,stdout,stderr = client.exec_command('[:execute "/ip ssh regenerate-host-key"]')
wow that was quick...
Thanks a lot rextended for sharing your knowledge! :)
by Artnet44
Wed Aug 10, 2022 6:52 pm
Forum: Scripting
Topic: Paramiko - Regenerate ssh key / Python Automation [SOLVED]
Replies: 2
Views: 1920

Paramiko - Regenerate ssh key / Python Automation [SOLVED]

Hello, I was wondering if anyone has a workaround for dealing with "confirmation" in routeros while using paramiko to execute commands? I built a simple tool to quickly run through multiple units and restrict services + set strong crypto to yes and increase host-key-size. The problem is th...