aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-03-05check-certificates: use $LogPrintExit for debugGravatar Christian Hesse1-5/+5
2020-03-05script-updates: use $LogPrintExit for debugGravatar Christian Hesse1-4/+4
2020-03-05dhcp-to-dns: fix value in messageGravatar Christian Hesse1-1/+1
2020-03-05dhcp-to-dns: use $LogPrintExitGravatar Christian Hesse1-7/+8
2020-03-05dhcp-lease-comment: use $LogPrintExitGravatar Christian Hesse3-3/+9
2020-03-05daily-psk: use $LogPrintExitGravatar Christian Hesse3-8/+11
2020-03-05collect-wireless-mac: use $LogPrintExitGravatar Christian Hesse3-12/+15
2020-03-05netwatch-notify: properly initialize default valuesGravatar Christian Hesse1-1/+1
2020-03-05global-functions: $LogPrintExit: add debugging optionGravatar Christian Hesse1-7/+12
2020-03-04netwatch-notify: use another level of arrayGravatar Christian Hesse1-6/+11
2020-03-04add script netwatch-notifyGravatar Christian Hesse1-0/+34
2020-03-03bridge-port-to-default: use $ParseKeyValueStore...change-13Gravatar Christian Hesse5-7/+8
... and unbreak last commit removing delay (69352c90). This requires a change in configuration syntax. Change this... comment="default:br-local, alt:br-guest" to... comment="default=br-local, alt=br-guest"
2020-03-03bridge-port-to-default: use $LogPrintExitGravatar Christian Hesse1-3/+5
2020-02-28global-functions: sort alphabeticallyGravatar Christian Hesse17-313/+312
2020-02-27global-functions: $ScriptLock: use $LogPrintExitGravatar Christian Hesse1-2/+3
2020-02-26global-functions: merge $LogAnd{Error,Put} to $LogPrintExit ...Gravatar Christian Hesse13-56/+56
... and fix logging. Logging with severity from variable (:log $severity ...) is not possible, this is considered a syntax error. Also the 'workaround' with parsing code failed with missing message in log. The reliable code is a lot longer, so merge the two functions to save a lot of duplicate code.
2020-02-26packages-update: use $LogAndErrorGravatar Christian Hesse1-6/+3
2020-02-26check-certificates: use $LogAndPutGravatar Christian Hesse1-2/+3
2020-02-26check-certificates: use $LogAndErrorGravatar Christian Hesse1-2/+1
2020-02-26script-updates: use $LogAndPutGravatar Christian Hesse1-6/+7
2020-02-26global-functions: introduce $LogAndPutGravatar Christian Hesse1-0/+10
2020-02-26global-functions: $LogAndError: add severityGravatar Christian Hesse12-15/+16
2020-02-26hotspot-to-wpa: automatically add missing access-list entryGravatar Christian Hesse1-4/+4
2020-02-26upload-backup: use $LogAndErrorGravatar Christian Hesse1-2/+2
2020-02-26update-tunnelbroker: use $LogAndErrorGravatar Christian Hesse1-2/+2
2020-02-26email-backup: use $LogAndErrorGravatar Christian Hesse1-2/+2
2020-02-26ipv6-update: use $LogAndErrorGravatar Christian Hesse1-2/+2
2020-02-26check-certificates: use $LogAndErrorGravatar Christian Hesse1-2/+2
2020-02-26lease-script: use $LogAndErrorGravatar Christian Hesse1-2/+3
2020-02-26sms-action: use $LogAndErrorGravatar Christian Hesse1-2/+3
2020-02-26ppp-on-up: use $LogAndErrorGravatar Christian Hesse1-2/+3
2020-02-26check-routeros-update: use $LogAndErrorGravatar Christian Hesse1-4/+3
2020-02-26packages-update: use $LogAndErrorGravatar Christian Hesse1-2/+2
2020-02-26sms-forward: use $LogAndErrorGravatar Christian Hesse1-2/+2
2020-02-24global-functions: introduce $LogAndErrorGravatar Christian Hesse1-0/+9
2020-02-24bridge-port-to-default: drop delayGravatar Christian Hesse1-7/+0
Now that we expect the scheduler to have a delay and script-updates warning about it...
2020-02-24script-updates: warn on scheduler at startup with no intervalGravatar Christian Hesse1-0/+7
2020-02-24drop script 'daily-psk-schedule'Gravatar Christian Hesse1-28/+0
We have some useful functions that can replace the functionality. Just add a schedule like this: add name=daily-psk-startup on-event=":delay 1s; :global WaitTimeSync; \$WaitTimeSync; / system script run daily-psk.local;" start-time=startup
2020-02-24global-functions: $WaitTimeSync: rotate ntp servers minutelyGravatar Christian Hesse1-0/+4
Signed-off-by: Christian Hesse <mail@eworm.de>
2020-02-24global-functions: introduce $WaitTimeSyncGravatar Christian Hesse1-0/+10
2020-02-24check-certificates: check for synced timeGravatar Christian Hesse1-0/+6
2020-02-24daily-psk-schedule: use $TimeIsSyncGravatar Christian Hesse1-5/+3
2020-02-24global-functions: introduce $TimeIsSyncGravatar Christian Hesse1-0/+16
2020-02-24daily-psk-schedule: use $MailServerIsUpGravatar Christian Hesse1-1/+3
2020-02-24sms-forward: use $MailServerIsUpGravatar Christian Hesse1-1/+2
2020-02-24global-functions: introduce $MailServerIsUpGravatar Christian Hesse1-0/+22
2020-02-06check-certificates: rename all certificates by their common namesGravatar Christian Hesse1-0/+5
2020-02-06global-functions: introduce and use $CertificateNameByCNGravatar Christian Hesse1-2/+13
2020-02-05script-updates: prefix variable name with dollarGravatar Christian Hesse1-1/+1
2020-02-04global-config: drop $ScriptUpdatesConfigChangesIgnorechange-12Gravatar Christian Hesse5-8/+6
Comment or remove $GlobalConfigVersion in global-config-overlay to disable change notifications.
2020-02-03global-functions: $CharacterReplace: do not limit string lengthGravatar Christian Hesse1-2/+1
I've tried something like this to update a device: / system script set source=[ $CharacterReplace [ get global-config-overlay source ] "GlobalConfigVersion 10" "GlobalConfigVersion 11" ] global-config-overlay; This broke with global-config-overlay longer than 999 characters. So makes sure there is no limit for string length.
2020-02-03global-config-overlay: add footerGravatar Christian Hesse1-0/+2
... to guard against truncation by accident.
2020-02-02global-functions: $CertificateAvailable: simplify loopGravatar Christian Hesse1-4/+4
2020-01-29README: update instructions to use $ScriptInstallUpdatechange-11Gravatar Christian Hesse5-10/+13
2020-01-29script-updates: only handle scripts with magic patternGravatar Christian Hesse1-1/+1
This is supposed to prevent overwriting foreign scripts. New scripts are expected to be installed with function $ScriptInstallUpdate!
2020-01-29global-functions: add $ScriptInstallUpdateGravatar Christian Hesse1-0/+14
Just call without parameters to update scripts: [admin@MikroTik] > $InstallAndUpdate Add comma separated list of scripts to install and update: [admin@MikroTik] > $InstallAndUpdate cloud-backup[,upload-backup][,...]
2020-01-29global-functions: $CertificateAvailable: check whole chainGravatar Christian Hesse1-0/+12
The root certificate is a self-signed certificate. Check for the issue certificate until we find the self-signed one.
2020-01-29global-functions: $CertificateAvailable: warn about crl download to flashGravatar Christian Hesse1-0/+6
Downloading certificate crls to flash can fill up all available space. So warn about it!
2020-01-28update-tunnelbroker: replace deprecated keep-result=no with output=noneGravatar Christian Hesse1-1/+1
2020-01-28gps-track: replace deprecated keep-result=no with output=noneGravatar Christian Hesse1-1/+1
2020-01-28global-functions: replace deprecated keep-result=no with output=noneGravatar Christian Hesse1-1/+1
2020-01-24check-health: never divide, always multiplyGravatar Christian Hesse1-2/+2
With RouterOS we have integral numbers only. This prevent from having friction that is cut off.
2020-01-24check-health: always calculate on the lower voltage valueGravatar Christian Hesse1-1/+1
This makes sure an alert is triggered in both directions. Before we could have: 24.0V to 21.8V -> OK 21.8V to 24.0V -> Alert!
2020-01-17collect-wireless-mac: automatically add missing access-list entryGravatar Christian Hesse3-12/+12
2020-01-16check-routeros-update: do not act if reboot is scheduledGravatar Christian Hesse1-0/+4
2020-01-06mode-button-scheduler: give proper message if no action definedGravatar Christian Hesse1-9/+13
2020-01-06global-functions: $CertificateDownload: properly name new certificatesGravatar Christian Hesse1-0/+5
2020-01-06collect-wireless-mac: use dynamic & bound mac address onlyGravatar Christian Hesse3-3/+3
2020-01-06dhcp-lease-comment: act on bound leases onlyGravatar Christian Hesse3-3/+3
2020-01-06dhcp-to-dns: act on bound leases onlyGravatar Christian Hesse1-4/+4
2020-01-03global-functions: do not encode dash, dot, slash and underscoreGravatar Christian Hesse1-4/+3
2020-01-03global-functions: $Certificate*: add quoting around CNGravatar Christian Hesse1-2/+2
2020-01-03global-functions: split $CertificateAvailable to $CertificateDownloadGravatar Christian Hesse1-17/+28
This allows to force download even if certificate is available. We need this for a clean update path with Let's Encrypt.
2020-01-01update copyright for 2020Gravatar Christian Hesse55-55/+55
2019-12-20packages-update: improve wordingGravatar Christian Hesse1-1/+1
2019-12-10global-functions: define first, set laterGravatar Christian Hesse1-16/+34
2019-12-05global-functions: $DownloadPackage: retry on errorGravatar Christian Hesse1-12/+17
2019-12-05packages-update: lock against multiple invocationGravatar Christian Hesse1-0/+3
2019-12-05capsman-rolling-upgrade: lock against multiple invocationGravatar Christian Hesse1-0/+4
2019-12-05capsman-download-packages: lock against multiple invocationGravatar Christian Hesse1-1/+4
2019-12-04packages-update: skip the interactive part of non-terminalGravatar Christian Hesse1-14/+17
2019-12-03check-routeros-update: use $ScriptFromTerminalGravatar Christian Hesse1-1/+2
2019-12-03global-functions: introduce $ScriptFromTerminalGravatar Christian Hesse1-0/+18
Checking whether or not started from terminal is tricky... We have to find the job for the script, find its top most parent and get its type.
2019-12-03ipv6-update: calculate address with bitwise operatorrouteros-6.46beta38Gravatar Christian Hesse1-8/+5
Support for bitwise operator was added in RouterOS 6.46beta38.
2019-12-03hotspot-to-wpa: get limits from place-before-entryGravatar Christian Hesse1-2/+11
2019-11-28global-functions: $DeviceInfo: append revision to modelGravatar Christian Hesse1-1/+5
2019-11-25collect-wireless-mac: add the dns nameGravatar Christian Hesse3-0/+18
2019-11-25collect-wireless-mac: lease without address should be impossible...Gravatar Christian Hesse3-15/+6
... we need the check for empty hostname, though.
2019-11-25collect-wireless-mac: move code into conditionGravatar Christian Hesse3-18/+18
2019-11-21{email,upload}-backup: update wordingGravatar Christian Hesse2-2/+3
2019-11-14dhcp-to-dns: act on hostname only if availableGravatar Christian Hesse1-1/+3
2019-11-12dhcp-to-dns: set the temporary variable unconditionallyGravatar Christian Hesse1-4/+1
2019-11-12dhcp-to-dns: handle duplicate mac-address and host-nameGravatar Christian Hesse1-3/+8
* several leases for one mac address (changed client id, different net): -> take address from last lease Most likely this is the same devices which booted different OS or changed to different network. * several leases for one host name: -> take address from first lease We see either different devices with same name or one device with several network interfaces. Keep the first name to mitigate stealing dns name.
2019-11-11check-certificates: make renew notification silentGravatar Christian Hesse1-1/+1
2019-11-05README: fix typo and wordingGravatar Christian Hesse2-2/+2
2019-10-28global-functions: add architecture in device infoGravatar Christian Hesse1-2/+3
2019-10-22check-health: decrease default threshold for voltageGravatar Christian Hesse1-1/+1
2019-10-18check-health: work with battery propertyGravatar Christian Hesse1-1/+1
Seen on wAP R... No idea what this is.
2019-10-14add script 'hotspot-to-wpa'Gravatar Christian Hesse1-0/+20
2019-10-14check-health: make threshold for voltage configurablechange-10Gravatar Christian Hesse5-7/+11