From ff2394fdfca8c0fab7df17b126625b09990634fb Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Fri, 5 Jun 2020 14:54:11 +0200 Subject: [PATCH] Added device name storage in flash --- routeros/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routeros/README.md b/routeros/README.md index 3a58a07..bd4d3ac 100644 --- a/routeros/README.md +++ b/routeros/README.md @@ -1,17 +1,17 @@ Run fresh Powerbox configuration : ``` -ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/powerbox-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' +RBNAME='P6-PB' ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/powerbox-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' ``` Run fresh RB SXT configuration : ``` -ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/sxt5ac-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' +RBNAME='P6-POWN' ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/sxt5ac-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' ``` Run fresh RB Metal 5 Ghz configuration : ``` -ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/rbmetal5-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' +RBNAME='P6-O5' ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/rbmetal5-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' ``` Run fresh RB Metal 2.4 Ghz configuration : ``` -ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/rbmetal2-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' +RBNAME='P6-O2' ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" admin@192.168.88.1 '/file print file=flash/name.txt; :delay 1s; /file set "flash/name.txt" contents="'"$RBNAME"'"; /ip dhcp-client set 0 interface=ether1; :delay 10s; /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/rbmetal2-init.rsc" dst-path=/flash/init.rsc; /system reset-configuration no-defaults=yes run-after-reset=flash/init.rsc;' ```