gbudny93.RouterOS_Useful_Sc.../RouterOS_Renew_License.rsc

19 lines
480 B
Text
Raw Permalink Normal View History

2019-10-14 20:53:37 +02:00
# RouterOS Script
# Copyright (c) Grzegorz Budny
2020-02-08 20:03:02 +01:00
# Version 1.0
# Last update: 2/8/2020
2019-10-14 20:53:37 +02:00
# 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);
}
2019-12-01 11:28:00 +01:00
}
$RenewLicense account=account password=password level=level;