mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-06-27 03:58:59 +02:00
15 lines
379 B
Text
15 lines
379 B
Text
|
# RouterOS Script
|
||
|
# Copyright (c) Grzegorz Budny
|
||
|
# Renews RouterOS License
|
||
|
|
||
|
:global RenewLicense do={
|
||
|
|
||
|
:local currentLicenseLevel [/system license get value-name=level];
|
||
|
|
||
|
:if ($currentLicenseLevel = "free") do={
|
||
|
|
||
|
/system license renew account=$account password=$password level=$level;
|
||
|
:log info ("Renewing license for ".$account." to ".$level);
|
||
|
|
||
|
}
|
||
|
}
|