Community discussions

MikroTik App
 
pikpik
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 80
Joined: Wed Jan 20, 2010 11:25 am

Mass command execution

Tue Nov 07, 2017 12:55 pm

Hello,

How can i massively execute command via Dude on devices (RouterOS) ? I need to upgrade firmware (bios) on 1000+ devices. It is possieble ?
 
eriitguy
Member Candidate
Member Candidate
Posts: 197
Joined: Thu Jan 26, 2017 1:16 pm

Re: Mass command execution

Tue Nov 07, 2017 3:00 pm

Hello,

How can i massively execute command via Dude on devices (RouterOS) ? I need to upgrade firmware (bios) on 1000+ devices. It is possieble ?
Hello, pikpik!

You may start from the following topics:
1. Feature request RouterBOARD upgrade mechanism
2. Easy way to mass upgrade firmware?
3. Multiple RouterOS upgrade through Dude, its possible?
4. Massive Upgrade of RouterOS


Thank you!
 
pikpik
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 80
Joined: Wed Jan 20, 2010 11:25 am

Re: Mass command execution

Tue Nov 07, 2017 3:38 pm

Thanks for answer :)
But still i dont know how to run mass command execute ie.
/system identity set name=
 
eriitguy
Member Candidate
Member Candidate
Posts: 197
Joined: Thu Jan 26, 2017 1:16 pm

Re: Mass command execution

Tue Nov 07, 2017 4:27 pm

Thanks for answer :)
But still i dont know how to run mass command execute ie.
/system identity set name=
pikpik, I don't know how this may be done from Dude.

On the forum you may find some information about this:
1. Configurable solution to automatically backup Mikrotik's routinely?
2. Script to login to several routers and run a script?

As an example you may use information from the forum topic: Backup Mikrotik config to Subversion/SVN repository via SSH
# sshpass -p <password> ssh <username>@<host> -p <port> <command>
sshpass -p admin ssh admin@192.168.0.1 -p 22 /ip address print
#
Next you may run you command on multiple ROS devices: better way to loop through a list of servers


Thank you!
 
Duduhandelman
Frequent Visitor
Frequent Visitor
Posts: 89
Joined: Wed Jan 04, 2012 5:30 pm

Re: Mass command execution

Fri Nov 10, 2017 10:02 pm

You will thank me for that...
I haven't tried it on routeros but I'm sure it will work.
Please use rundeck.. amazing opensource product to execute commands and scripts.

Enjoy
 
electravis
Member Candidate
Member Candidate
Posts: 274
Joined: Tue Jan 26, 2010 12:06 am

Re: Mass command execution

Tue Nov 21, 2017 6:55 pm

Has anyone had any lukc with this. I have followed the links and read up on stuff but have had no luck trying to update say the ssid on 5 aps through the dude in one click. I found this but am not sure how to create the tool
"And you could also use the Dude to invoke a tool (read: executable or a URL) over one or multiple routers. This particular ability could be used to start a custom program that uses the API over said router(s)."
If I understand this I can have it go to a URL that then runs an API command that could then update the ssid on my 5 aps in one click?

Thanks for any help
 
User avatar
migotom
just joined
Posts: 14
Joined: Tue Feb 26, 2019 5:08 pm

Re: Mass command execution

Wed Mar 20, 2019 12:03 pm

You can try my tool written in Go, I'll be appreciate for any feedback https://github.com/migotom/mt-bulk/releases

Who is online

Users browsing this forum: No registered users and 61 guests