mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-08-02 09:04:40 +02:00
Initial Commit. First Release
This commit is contained in:
parent
69ab2f58ca
commit
a9d2fcc235
4 changed files with 91 additions and 2 deletions
15
RouterOS_Renew_License.rsc
Normal file
15
RouterOS_Renew_License.rsc
Normal file
|
@ -0,0 +1,15 @@
|
|||
# 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);
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue