Community discussions

MikroTik App
 
Knapek
just joined
Topic Author
Posts: 20
Joined: Sat Aug 01, 2009 3:08 pm

Bugfix channel ROS update

Fri Sep 11, 2015 2:48 pm

Hello, we have working script to automatic ROS upgrade.
The script works well, but it upgrades to latest current version, that is not always stable enough.
There is new feature from v. 6.31, that enabled to choose channel of required upgrade type - Bugfix, Latest, Developer.
It can be done easily from WinBox, but it is not documented well yet.

So can you recommend us how to use upgrade channel in script?

Thank you very much
Miroslav
 
User avatar
ploquets
Member Candidate
Member Candidate
Posts: 162
Joined: Tue Nov 17, 2015 12:49 pm
Location: Uruguaiana, RS, Brazil
Contact:

Re: Bugfix channel ROS update

Mon Oct 31, 2016 1:22 am

+1

I need this aswell
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26379
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Bugfix channel ROS update

Mon Oct 31, 2016 2:47 pm

 
Knapek
just joined
Topic Author
Posts: 20
Joined: Sat Aug 01, 2009 3:08 pm

Re: Bugfix channel ROS update

Mon Oct 31, 2016 2:50 pm

Hello,
thanks for answer.
But we are asking for possibilities to choose between "current" and "bugfix" update by script.
Thanks again
Mirek
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26379
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Bugfix channel ROS update

Mon Oct 31, 2016 3:04 pm

Hello,
thanks for answer.
But we are asking for possibilities to choose between "current" and "bugfix" update by script.
Thanks again
Mirek
Choose it once by hand, and the script will always remain in the same channel
 
Knapek
just joined
Topic Author
Posts: 20
Joined: Sat Aug 01, 2009 3:08 pm

Re: Bugfix channel ROS update

Mon Oct 31, 2016 3:19 pm

It is good to know the setting is remaining.
Is it any chance to set the type of update by script. You know that edit hundreds of klient devices by hand is not very comfortable.
That is the reason we use scripting.
Thanks
Miroslav
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26379
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Bugfix channel ROS update

Mon Oct 31, 2016 3:20 pm

This line in the console should be enough:

/system package update set channel=bugfix
 
Knapek
just joined
Topic Author
Posts: 20
Joined: Sat Aug 01, 2009 3:08 pm

Re: Bugfix channel ROS update

Mon Oct 31, 2016 3:25 pm

This is exactly I need to know!
Excelent
Thank you very much
Miroslav
 
User avatar
ploquets
Member Candidate
Member Candidate
Posts: 162
Joined: Tue Nov 17, 2015 12:49 pm
Location: Uruguaiana, RS, Brazil
Contact:

Re: Bugfix channel ROS update

Mon Oct 31, 2016 3:31 pm

For me its working with this:
:local sendto email@domain.com
/system package update
set channel=bugfix 
check-for-updates once
:delay 10s;
:global scriptgetnewversion [get latest-version];
:global scriptactualversion [/system resource get version];
:if ( [get status] = "New version is available" ) do={ 
/tool e-mail send to=$sendto subject="[UPDATE] $[/system identity get name]" body="Old Version $scriptactualversion --- Going to $scriptgetnewversion ";
/system package update check-for-updates do={ install };
:log warning "[UPDATING NOW] - Old verison was $scriptactualversion -- Going to $scriptgetnewversion "
};

Who is online

Users browsing this forum: vaio73 and 39 guests