Community discussions

MikroTik App
 
upower3
Member
Member
Topic Author
Posts: 425
Joined: Thu May 07, 2015 11:46 am

Update ROS and firmware via scripting / API

Sat Nov 04, 2017 9:31 pm

Tried to do some script based update of ROS version on 100's of RB (mostly 951 and 2011). As I run /system package update install via terminal I start to see percents of upgrade progres switch is not what I need, for if I run it via telnet from remote server the connection will stay online until the upgrade is done.

Any way I do that by issuing one command and disconnect? API maybe?
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Update ROS and firmware via scripting / API

Sat Nov 04, 2017 10:17 pm

You could make a scheduler script that would run after a few seconds from its creation time. Once it starts, it would remove itself and do the upgrade (in that order). Whether you make it with a terminal or API, it should work the same way, and allow you to disconnect as soon as the scheduler script is added.
 
upower3
Member
Member
Topic Author
Posts: 425
Joined: Thu May 07, 2015 11:46 am

Re: Update ROS and firmware via scripting / API

Sun Nov 05, 2017 7:34 am

You could make a scheduler script that would run after a few seconds from its creation time. Once it starts, it would remove itself and do the upgrade (in that order). Whether you make it with a terminal or API, it should work the same way, and allow you to disconnect as soon as the scheduler script is added.
Yes this is a solution, but may there be any more straight way?
 
eduardomazolini
newbie
Posts: 31
Joined: Thu Jul 16, 2015 9:14 pm

Re: Update ROS and firmware via scripting / API

Mon Nov 06, 2017 12:30 pm

Tried to do some script based update of ROS version on 100's of RB (mostly 951 and 2011). As I run /system package update install via terminal I start to see percents of upgrade progres switch is not what I need, for if I run it via telnet from remote server the connection will stay online until the upgrade is done.

Any way I do that by issuing one command and disconnect? API maybe?
Add parameter once

Enviado de meu SM-G800H usando Tapatalk

Who is online

Users browsing this forum: ohilton576, Tchonangauz and 6 guests