Age | Commit message (Expand) | Author | Files | Lines |
2019-03-12 | link the presentation from MUM Europe 2019 in Vienna | Christian Hesse | 1 | -0/+7 |
2019-03-06 | daily-psk: prepare for caps-man•••Signed-off-by: Christian Hesse <mail@eworm.de>
| Michael Gisbers | 4 | -7/+190 |
2019-03-06 | daily-psk: encode ssid and pass in url•••Signed-off-by: Christian Hesse <mail@eworm.de>
| Michael Gisbers | 1 | -1/+3 |
2019-03-06 | check-certificates: split loop for certificate renew and warning•••This allows to have differnt time values.
| Christian Hesse | 1 | -20/+27 |
2019-02-28 | global-functions: remove extra check in $DownloadPackage•••Should be fixed in RouterOS 6.44rc1 with changelog:
*) fetch - improved file downloading to slow memory;
routeros-6.44rc1 | Christian Hesse | 1 | -7/+0 |
2019-02-22 | check-routeros-update: default in capital letter•••Also use square brackets as RouterOS does.
| Christian Hesse | 1 | -1/+1 |
2019-02-21 | collect-wireless-mac: use $ScriptLock | Christian Hesse | 3 | -0/+9 |
2019-02-21 | global-functions: add $ScriptLock | Christian Hesse | 1 | -0/+10 |
2019-02-21 | check-routeros-update: allow interactive update from terminal | Christian Hesse | 1 | -6/+19 |
2019-02-21 | global-functions: drop $Read, use :return directly | Christian Hesse | 4 | -14/+3 |
2019-02-19 | check-routeros-update: give board name and model | Christian Hesse | 1 | -1/+3 |
2019-02-19 | check-routeros-update: use new script 'packages-update' | Christian Hesse | 1 | -4/+5 |
2019-02-19 | add script 'packages-update' | Christian Hesse | 1 | -0/+29 |
2019-02-19 | check-routeros-update: run installation without-paging | Christian Hesse | 1 | -1/+1 |
2019-02-14 | capsman-download-packages: split off capsman-rolling-upgrade | Christian Hesse | 2 | -8/+25 |
2019-02-14 | global-functions: detect failed package downloads | Christian Hesse | 1 | -1/+9 |
2019-02-13 | capsman-download-packages: use $CleanFilePath | Christian Hesse | 1 | -4/+2 |
2019-02-13 | global-functions: introduce and use $CleanFilePath | Christian Hesse | 1 | -4/+21 |
2019-02-13 | global-functions: remove file on failed download | Christian Hesse | 1 | -3/+9 |
2019-02-11 | gps-track: replace http-content-type with http-header-field•••This changed in 6.44beta75.
routeros-6.44beta75-3 | Christian Hesse | 1 | -1/+1 |
2019-02-11 | unattended-lte-firmware-upgrade: remove workaround•••This is fixed in 6.44beta75.
routeros-6.44beta75-2 | Christian Hesse | 1 | -2/+0 |
2019-02-11 | check-lte-firmware-upgrade: remove workaround•••This is fixed in 6.44beta75.
routeros-6.44beta75-1 | Christian Hesse | 1 | -2/+0 |
2019-02-11 | unattended-lte-firmware-upgrade: add missing colon | Christian Hesse | 1 | -1/+1 |
2019-02-11 | global-functions: add missing colon | Christian Hesse | 1 | -1/+1 |
2019-02-08 | global-functions: prevent infinite loop in $CharacterReplace | Christian Hesse | 1 | -0/+4 |
2019-02-08 | ipv6-update: simplify array access | Christian Hesse | 1 | -2/+2 |
2019-02-08 | dhcp-to-dns: rework, fix cleanup with mac-address and more | Christian Hesse | 1 | -37/+29 |
2019-02-08 | dhcp-to-dns: use mac-address if hostname is empty | Christian Hesse | 1 | -0/+3 |
2019-02-08 | dhcp-to-dns: use $CharacterReplace | Christian Hesse | 1 | -6/+3 |
2019-02-08 | global-functions: add $CharacterReplace | Christian Hesse | 1 | -0/+15 |
2019-02-07 | capsman-download-packages: upgrade CAPs one after another with delay | Christian Hesse | 1 | -2/+9 |
2019-01-29 | gps-track: strip trailing binary zeros | Christian Hesse | 1 | -0/+2 |
2019-01-29 | gps-track: log about coordinate-format | Christian Hesse | 1 | -1/+2 |
2019-01-18 | check-routeros-update: run email-backup on auto-update | Christian Hesse | 1 | -0/+3 |
2019-01-15 | email-backup: silence unwanted output | Christian Hesse | 1 | -1/+1 |
2019-01-15 | update-tunnelbroker: fix parsing id | Christian Hesse | 1 | -1/+1 |
2019-01-15 | update-tunnelbroker: simplify array access | Christian Hesse | 1 | -3/+3 |
2019-01-15 | netwatch-syslog: simplify array access | Christian Hesse | 1 | -1/+1 |
2019-01-15 | collect-wireless-mac: simplify array access | Christian Hesse | 3 | -3/+3 |
2019-01-15 | dhcp-lease-comment: simplify array access | Christian Hesse | 3 | -3/+3 |
2019-01-15 | lease-script: split scripts for de/assign, add debug log | Christian Hesse | 1 | -4/+18 |
2019-01-14 | email-backup: give board name and model | Christian Hesse | 1 | -1/+3 |
2019-01-12 | initial-commands: put into blocks | Christian Hesse | 1 | -8/+14 |
2019-01-12 | check-certificates: strip prefix from issuer CN | Christian Hesse | 1 | -1/+1 |
2019-01-12 | check-certificates: properly handle expired certificates | Christian Hesse | 1 | -4/+11 |
2019-01-09 | check-certificates: move conditions to loop | Christian Hesse | 1 | -60/+50 |
2019-01-09 | check-certificates: shorten key for detailed infos | Christian Hesse | 1 | -10/+10 |
2019-01-09 | check-certificates: show issuer CN only | Christian Hesse | 1 | -2/+11 |
2019-01-09 | email-backup: be more verbose about attached files and secret key | Christian Hesse | 1 | -4/+9 |
2019-01-09 | check-certificates: include the issuer in notifications | Christian Hesse | 1 | -0/+4 |
2019-01-09 | check-certificates: update CommonName after renewal | Christian Hesse | 1 | -0/+1 |
2019-01-09 | super-mario-theme: simplify array access | Christian Hesse | 1 | -1/+1 |
2019-01-09 | daily-psk: simplify algorithm | Christian Hesse | 1 | -21/+13 |
2019-01-09 | check-certificates: use time functionality•••No need to calculate that...
| Christian Hesse | 1 | -25/+10 |
2019-01-09 | check-certificates: send notification on renewal | Christian Hesse | 1 | -8/+18 |
2019-01-09 | check-certificates: drop extra warning•••A sent notification implies that renewal failed.
| Christian Hesse | 1 | -2/+0 |
2019-01-04 | ppp-on-up: just release ipv6 lease•••This should get a new lease immediately.
| Christian Hesse | 1 | -6/+1 |
2019-01-04 | ppp-on-up: run scripts if available | Christian Hesse | 1 | -0/+11 |
2019-01-04 | update-tunnelbroker: get tunnelbroker config from interface comment | Christian Hesse | 2 | -26/+20 |
2019-01-04 | email-backup: print to update from cloud | Christian Hesse | 1 | -0/+3 |
2019-01-04 | ppp-on-up: fix variable handling•••The variable $interface is not a name but a reference... Basically
this worked only because of the oddity - the filter did not work
and *all* dhcp-clients were disabled and enabled.
| Christian Hesse | 1 | -1/+3 |
2019-01-04 | global: variable names are CamelCase••• ___ _ ___ __
/ _ )(_)__ _ / _/__ _/ /_
/ _ / / _ `/ / _/ _ `/ __/
/____/_/\_, / /_/ \_,_/\__/
_ __ /___/ _ __
| | / /___ __________ (_)___ ____ _/ /
| | /| / / __ `/ ___/ __ \/ / __ \/ __ `/ /
| |/ |/ / /_/ / / / / / / / / / / /_/ /_/
|__/|__/\__,_/_/ /_/ /_/_/_/ /_/\__, (_)
/____/
RouterOS has some odd behavior when it comes to variable names. Let's
have a look at the interfaces:
[admin@MikroTik] > / interface print where name=en1
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU
0 RS en1 ether 1500 1598
That looks ok. Now we use a script:
{ :local interface "en1";
/ interface print where name=$interface; }
And the result...
[admin@MikroTik] > { :local interface "en1";
{... / interface print where name=$interface; }
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU
0 RS en1 ether 1500 1598
... still looks ok.
We make a little modification to the script:
{ :local name "en1";
/ interface print where name=$name; }
And the result:
[admin@MikroTik] > { :local name "en1";
{... / interface print where name=$name; }
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU
0 RS en1 ether 1500 1598
1 S en2 ether 1500 1598
2 S en3 ether 1500 1598
3 S en4 ether 1500 1598
4 S en5 ether 1500 1598
5 R br-local bridge 1500 1598
Ups! The filter has no effect!
That happens whenever the variable name ($name) matches the property
name (name=).
And another modification:
{ :local type "en1";
/ interface print where name=$type; }
And the result:
[admin@MikroTik] > { :local type "en1";
{... / interface print where name=$type; }
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU
Ups! Nothing?
Even if the variable name ($type) matches whatever property name (type=)
things go wrong.
The answer from MikroTik support (in Ticket#2019010222000454):
> This is how scripting works in RouterOS and we will not fix it.
To get around this we use variable names in CamelCase. Let's hope
Mikrotik never ever introduces property names in CamelCase...
*fingers crossed*
| Christian Hesse | 41 | -782/+775 |
2019-01-03 | global-{config,functions}: move variables, make independent | Christian Hesse | 4 | -9/+12 |
2019-01-03 | script-updates: add configuration versioning | Christian Hesse | 3 | -0/+20 |
2019-01-03 | dhcp-to-dns: give time in short format•••Note that a unit is required to make it a time value!
| Christian Hesse | 1 | -1/+1 |
2019-01-03 | daily-psk-schedule: give time in short format•••Note that a unit is required to make it a time value!
| Christian Hesse | 1 | -1/+1 |
2019-01-02 | rename script 'check-lte-firmware-update' -> 'check-lte-firmware-upgrade'•••That's the correct wording from commands..
| Christian Hesse | 2 | -8/+8 |
2019-01-02 | add script 'unattended-lte-firmware-upgrade' | Christian Hesse | 1 | -0/+29 |
2019-01-02 | add template for script documentation | Christian Hesse | 1 | -0/+47 |
2019-01-02 | README: add link to scroll up | Christian Hesse | 1 | -0/+2 |
2019-01-02 | ignore all html files | Christian Hesse | 1 | -1/+1 |
2019-01-02 | Makefile: update links for generated html | Christian Hesse | 1 | -1/+1 |
2019-01-02 | Makefile: update for extended functionality•••This can handle new and multiple markdown files.
| Christian Hesse | 1 | -8/+17 |
2019-01-02 | update-tunnelbroker: verify certificate | Christian Hesse | 2 | -2/+58 |
2019-01-02 | update-tunnelbroker: move configuration to global-config...•••... and get the external ip address from cloud.
Signed-off-by: Michael Gisbers <michael@gisbers.de>
Signed-off-by: Christian Hesse <mail@eworm.de>
| Michael Gisbers | 2 | -19/+28 |
2019-01-02 | capsman-download-packages: use upgrade command to force remote-cap upgrade•••Signed-off-by: Michael Gisbers <michael@gisbers.de>
Signed-off-by: Christian Hesse <mail@eworm.de>
| Michael Gisbers | 1 | -1/+1 |
2019-01-02 | check-routeros-update: be more verbose on error | Christian Hesse | 1 | -1/+1 |
2019-01-02 | check-routeros-update: do not fail if safe-update-url return error•••We still want the notification...
| Christian Hesse | 1 | -6/+11 |
2019-01-02 | update copyright for 2019 | Christian Hesse | 43 | -44/+44 |
2018-12-28 | global-functions: properly define global functions | Christian Hesse | 4 | -3/+2 |
2018-12-28 | global-functions: update comment in $SendNotification | Christian Hesse | 1 | -1/+1 |
2018-12-28 | global-functions: add $DownloadPackage•••... and make script 'capsman-download-packages' use it.
| Christian Hesse | 2 | -8/+30 |
2018-12-28 | capsman-download-packages: move condition to loop | Christian Hesse | 1 | -17/+16 |
2018-12-27 | remove script 'remove-packages'•••Use script 'capsman-download-packages' to download and
cleanup packages...
| Christian Hesse | 1 | -19/+0 |
2018-12-27 | capsman-download-packages: act in package-path only | Christian Hesse | 1 | -1/+4 |
2018-12-27 | capsman-download-packages: do not restart service...•••... but disconnect old CAPs and force reconnect with update.
| Christian Hesse | 1 | -2/+2 |
2018-12-27 | capsman-download-packages: rewrite package-name from wireless@ to wireless•••Signed-off-by: Michael Gisbers <michael@gisbers.de>
Signed-off-by: Christian Hesse <mail@eworm.de>
| Michael Gisbers | 1 | -0/+4 |
2018-12-27 | add script 'capsman-download-packages' | Christian Hesse | 1 | -0/+34 |
2018-12-27 | global-functions: add $GetMacVendor | Christian Hesse | 4 | -24/+21 |
2018-12-21 | remove-packages: delay if uptime less than one minute | Christian Hesse | 1 | -0/+2 |
2018-12-20 | global-functions: make $CertificateAvailable work on CommonName•••This should prevent endless certificate switching for Let's Encrypt
cross-signed intermediate certificates.
| Christian Hesse | 10 | -148/+147 |
2018-12-20 | README: add Root CA certificate DST Root CA X3•••This is used by Let's Encrypt to cross-sign.
| Christian Hesse | 3 | -5/+34 |
2018-12-20 | check-certificates: support auto-renew of certificates | Christian Hesse | 2 | -10/+49 |
2018-12-19 | update-gre-address: remove settings from global-config•••Instead read infos from gre interface comment.
| Christian Hesse | 2 | -21/+9 |
2018-12-19 | ipv6-update: remove settings from global-config•••Instead make it more robust by reading comments.
| Christian Hesse | 2 | -21/+12 |
2018-12-18 | email-backup: support cloud backup | Christian Hesse | 2 | -7/+30 |
2018-12-18 | README: add initial commands for copy and paste | Christian Hesse | 2 | -0/+28 |
2018-12-17 | check-lte-firmware-update: strip the extra line break | Christian Hesse | 1 | -0/+2 |
2018-12-14 | add script 'check-lte-firmware-update' | Christian Hesse | 2 | -0/+33 |
2018-12-14 | collect-wireless-mac: send the mac's vendor part only | Christian Hesse | 3 | -3/+3 |