NEWS
iob diag - Skript
iob diag - Skript
-
@thomas-braun sagte in iob diag - Skript:
iob update -u | grep Updateable | wc -lauf der Konsole sagt?
korrekte 7
-
@thomas-braun sagte in iob diag - Skript:
iob update -u | grep Updateable | wc -lauf der Konsole sagt?
korrekte 7
Hm. Muss man im Skript in "irgendwelche" Hochkomma/Anführungseichen/BackTicks setzen. Muss ich mir zuhause nochmal in Ruhe anschauen. Ist nur eine Kleinigkeit.
-
Hm. Muss man im Skript in "irgendwelche" Hochkomma/Anführungseichen/BackTicks setzen. Muss ich mir zuhause nochmal in Ruhe anschauen. Ist nur eine Kleinigkeit.
@thomas-braun oder du hast die Eisbahn noch nicht sauber?
-
@thomas-braun oder du hast die Eisbahn noch nicht sauber?
@homoran
Doch, kannst curlen. -
@homoran
Doch, kannst curlen.@thomas-braun immer noch 1
-
@thomas-braun immer noch 1
Fehlt mir gerade die Konzentration zu. Muss ich später mal schauen.
-
Fehlt mir gerade die Konzentration zu. Muss ich später mal schauen.
@thomas-braun kein Stress!
-
Moin,
Ich hoffe ich darf mal ganz dumm fragen, müsste es nichtecho -e "Pending iob updates: \t`iob update -u | grep -c 'Updateable'`";heissen grep -c zählt doch schon oder?
@mrjeschke sagte in iob diag - Skript:
echo -e "Pending iob updates: \t
iob update -u | grep -c 'Updateable'";Die Frage ist ganz und gar nicht doof, sondern sehr gut.
Hatte irgendwie einen Knoten in den Gedanken.Mit
echo -e "Pending iob updates: \t`iob update -u | grep -c 'Updatable\|Updateable'`";findet jetzt auch der @Homoran seine verflixte 7 (hoffentlich...).
Es gibt übrigens beide Schreibweisen für 'upsdatierbar', ist mal in irgendeiner Version des js-controllers geändert worden. Ich frag einfach beides ab, Keks gegessen.
-
@mrjeschke sagte in iob diag - Skript:
echo -e "Pending iob updates: \t
iob update -u | grep -c 'Updateable'";Die Frage ist ganz und gar nicht doof, sondern sehr gut.
Hatte irgendwie einen Knoten in den Gedanken.Mit
echo -e "Pending iob updates: \t`iob update -u | grep -c 'Updatable\|Updateable'`";findet jetzt auch der @Homoran seine verflixte 7 (hoffentlich...).
Es gibt übrigens beide Schreibweisen für 'upsdatierbar', ist mal in irgendeiner Version des js-controllers geändert worden. Ich frag einfach beides ab, Keks gegessen.
@thomas-braun sagte in iob diag - Skript:
hoffentlich
v.0.0.6 Operatingsystem: Debian GNU/Linux 11 (bullseye) Installation: kvm Timezone: Europe/Berlin User-ID: 1000 X-Server: false Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v14.21.1 /usr/bin/node v14.21.1 /usr/bin/npm 6.14.17 ioBroker Core: js-controller 3.3.22 admin 5.3.8 Pending iob updates: 7 Active repo: stable Objects: 8537 States: 13147 Size of iob-Database: 18M /opt/iobroker/iobroker-data/objects.json.bak 18M /opt/iobroker/iobroker-data/objects.json 2.5M /opt/iobroker/iobroker-data/objects.jsonl 11M /opt/iobroker/iobroker-data/states.json.bak 11M /opt/iobroker/iobroker-data/states.json 112K /opt/iobroker/iobroker-data/states.jsonl 0 /opt/iobroker/iobroker-data/states.json.broken ====================== END OF SUMMARY ================== -
@thomas-braun sagte in iob diag - Skript:
hoffentlich
v.0.0.6 Operatingsystem: Debian GNU/Linux 11 (bullseye) Installation: kvm Timezone: Europe/Berlin User-ID: 1000 X-Server: false Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v14.21.1 /usr/bin/node v14.21.1 /usr/bin/npm 6.14.17 ioBroker Core: js-controller 3.3.22 admin 5.3.8 Pending iob updates: 7 Active repo: stable Objects: 8537 States: 13147 Size of iob-Database: 18M /opt/iobroker/iobroker-data/objects.json.bak 18M /opt/iobroker/iobroker-data/objects.json 2.5M /opt/iobroker/iobroker-data/objects.jsonl 11M /opt/iobroker/iobroker-data/states.json.bak 11M /opt/iobroker/iobroker-data/states.json 112K /opt/iobroker/iobroker-data/states.jsonl 0 /opt/iobroker/iobroker-data/states.json.broken ====================== END OF SUMMARY ==================Ach, da isse ja, die Pik 7...
-
Ach, da isse ja, die Pik 7...
@thomas-braun well done! oder war das das Steak?
-
@thomas-braun well done! oder war das das Steak?
Nee, ich bin komplett 'durch'.
-
@thomas-braun well done! oder war das das Steak?
Aber hast du da Leerzeilen gelöscht?
Eigentlich sollte das so ausschauen:======================= SUMMARY ======================= v.0.0.6 Operatingsystem: Debian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v19.0.1 /usr/bin/node v19.0.1 /usr/bin/npm 8.19.2 ioBroker Core: js-controller 4.0.23 admin 6.2.23 Pending iob updates: 2 Active repo(s): beta Objects: 8458 States: 6604 Size of iob-Database: 27M /opt/iobroker/iobroker-data/objects.jsonl 12M /opt/iobroker/iobroker-data/states.jsonl ====================== END OF SUMMARY ================== -
Aber hast du da Leerzeilen gelöscht?
Eigentlich sollte das so ausschauen:======================= SUMMARY ======================= v.0.0.6 Operatingsystem: Debian GNU/Linux 11 (bullseye) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v19.0.1 /usr/bin/node v19.0.1 /usr/bin/npm 8.19.2 ioBroker Core: js-controller 4.0.23 admin 6.2.23 Pending iob updates: 2 Active repo(s): beta Objects: 8458 States: 6604 Size of iob-Database: 27M /opt/iobroker/iobroker-data/objects.jsonl 12M /opt/iobroker/iobroker-data/states.jsonl ====================== END OF SUMMARY ==================@thomas-braun sagte in iob diag - Skript:
Aber hast du da Leerzeilen gelöscht?
nicht wissentlich, kann aber am Androiden liegen.

-
@thomas-braun sagte in iob diag - Skript:
Aber hast du da Leerzeilen gelöscht?
nicht wissentlich, kann aber am Androiden liegen.

Ja, das kann ein Grund sein. Beim hin- und herkopieren können schon mal 'überflüssige' Leerzeichen/-zeilen geschluckt werden.
-
WIP: Übersetzung auf Deutsch in Arbeit. Wird aber nur teilweise möglich sein.
Skript einfach mal mit der Option '--de' starten. Also./iob_diag.sh --deTEST-Version:
curl https://raw.githubusercontent.com/Grothesk242/ioBroker/refs/heads/is_node_vulnerable/diag.sh > iob_diag.sh chmod 744 iob_diag.sh ./iob_diag.sh Weitere Optionen: ./iob_diag.sh --unmask <--- Zeigt maskierte Ausgaben im Klartext ./iob_diag.sh --de <--- Ausgabe tw. auf deutsch ./iob_diag.sh --de --unmask <--- Kombination aus deutsch und KlartextMit Ausgabe in eine Logdatei namens
iob_diag.logsähe der Aufruf so aus:./iob_diag.sh | tee iob_diag.logVielleicht mag ja jemand mit Docker oder LXC das mal ausführen und den Output zeigen?
Hier werden die üblichen Dinge relativ kompakt aufgelistet, die immer wieder bei Anfragen im Forum vermisst werden.
Hier mal als ersten Einblick, vielleicht fällt ja noch etwas ein, was auch interessant zu wissen wäre, bevor man im Nebel stochert:
*** ioBroker Diagnose *** Bitte das Fenster von puTTY breit ziehen oder auf Vollbild setzen Den nachfolgenden Output 1:1 in das ioBroker-Forum unter https://forum.iobroker.net vollständig posten ,inkl der jeweils drei Steuerzeichen ``` am Anfang und Ende: ===========Ab hier kopieren ========= *** BASISSYSTEM *** CPU-Architektur: aarch64 Docker: Nein No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye *** Zeit und Zeitzonen *** Local time: Tue 2022-11-01 16:53:39 CET Universal time: Tue 2022-11-01 15:53:39 UTC RTC time: n/a Time zone: Europe/Berlin (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no *** ARBEITSSPEICHER *** total used free shared buff/cache available Mem: 7.7Gi 2.3Gi 3.2Gi 0.0Ki 2.2Gi 5.2Gi Swap: 99Mi 0B 99Mi Total: 7.8Gi 2.3Gi 3.3Gi *** Nodejs-Installation *** /usr/bin/nodejs v18.12.0 /usr/bin/node v18.12.0 /usr/bin/npm 8.19.2 *** ioBroker-Installation *** js-controller: 4.0.23 Updates + Repos: Used repository: beta *** User und Gruppen *** echad /home/echad echad adm dialout cdrom sudo audio video plugdev games users input render netdev gpio i2c spi iobroker *** Server-Setup *** Konsole: tty Desktop: *** Repositories und OS-Updates *** Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://security.debian.org/debian-security bullseye-security InRelease Hit:4 http://phoscon.de/apt/deconz bullseye InRelease Hit:5 http://deb.debian.org/debian bullseye-backports InRelease Hit:6 http://archive.raspberrypi.org/debian bullseye InRelease Hit:7 http://packages.azlux.fr/debian bullseye InRelease Hit:8 https://packages.grafana.com/oss/deb stable InRelease Hit:9 https://deb.nodesource.com/node_10.x bullseye InRelease Hit:10 https://repos.influxdata.com/debian bullseye InRelease Hit:11 https://deb.nodesource.com/node_12.x bullseye InRelease Hit:12 https://deb.nodesource.com/node_14.x bullseye InRelease Hit:13 https://deb.nodesource.com/node_16.x bullseye InRelease Hit:14 https://packages.redis.io/deb bullseye InRelease Hit:15 https://deb.volian.org/volian scar InRelease Hit:16 https://deb.nodesource.com/node_18.x bullseye InRelease Hit:18 https://deb.nodesource.com/node_19.x bullseye InRelease Get:19 https://pkgs.tailscale.com/stable/debian bullseye InRelease Hit:17 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease Fetched 5,545 B in 3s (1,694 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. nodejs: Installed: 18.12.0-deb-1nodesource1 Candidate: 18.12.0-deb-1nodesource1 Version table: 19.0.0-deb-1nodesource1 500 500 https://deb.nodesource.com/node_19.x bullseye/main arm64 Packages *** 18.12.0-deb-1nodesource1 501 500 https://deb.nodesource.com/node_18.x bullseye/main arm64 Packages 100 /var/lib/dpkg/status 16.18.0-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bullseye/main arm64 Packages 14.20.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_14.x bullseye/main arm64 Packages 12.22.12-deb-1nodesource1 500 500 https://deb.nodesource.com/node_12.x bullseye/main arm64 Packages 12.22.12~dfsg-1~deb11u1 500 500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages 12.22.5~dfsg-2~11u1 500 500 http://deb.debian.org/debian bullseye/main arm64 Packages 10.24.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_10.x bullseye/main arm64 Packages ========== Bis hier kopieren =========== iob diag wurde beendet.Bitte nicht über den wilden Zoo an Repos wundern, das ist mein Test/Frickel-System, das soll so!

======================= SUMMARY ======================= v.0.0.6 Operatingsystem: Raspbian GNU/Linux 10 (buster) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Pending OS-Updates: 194 Nodejs-Installation: /usr/bin/nodejs v16.15.1 /usr/bin/node v16.15.1 /usr/bin/npm 8.11.0 ioBroker Core: js-controller 4.0.23 admin 6.2.22 Pending iob updates: 4 Active repo(s): stable Objects: 11255 States: 9171 Size of iob-Database: 33M /opt/iobroker/iobroker-data/objects.jsonl 12M /opt/iobroker/iobroker-data/objects.json.migrated 12M /opt/iobroker/iobroker-data/objects.json.bak.migrated 15M /opt/iobroker/iobroker-data/states.jsonl 2.4M /opt/iobroker/iobroker-data/states.json.migrated 2.4M /opt/iobroker/iobroker-data/states.json.bak.migrated 0 /opt/iobroker/iobroker-data/states.json.broken ====================== END OF SUMMARY ==================Mein IOBroker läuft nach einem Versuch der Wiederherstellung nicht mehr...
-
======================= SUMMARY ======================= v.0.0.6 Operatingsystem: Raspbian GNU/Linux 10 (buster) Installation: Native Timezone: Europe/Berlin User-ID: 1000 X-Server: false Pending OS-Updates: 194 Nodejs-Installation: /usr/bin/nodejs v16.15.1 /usr/bin/node v16.15.1 /usr/bin/npm 8.11.0 ioBroker Core: js-controller 4.0.23 admin 6.2.22 Pending iob updates: 4 Active repo(s): stable Objects: 11255 States: 9171 Size of iob-Database: 33M /opt/iobroker/iobroker-data/objects.jsonl 12M /opt/iobroker/iobroker-data/objects.json.migrated 12M /opt/iobroker/iobroker-data/objects.json.bak.migrated 15M /opt/iobroker/iobroker-data/states.jsonl 2.4M /opt/iobroker/iobroker-data/states.json.migrated 2.4M /opt/iobroker/iobroker-data/states.json.bak.migrated 0 /opt/iobroker/iobroker-data/states.json.broken ====================== END OF SUMMARY ==================Mein IOBroker läuft nach einem Versuch der Wiederherstellung nicht mehr...
Zeig mal die Langfassung. Am besten aber in einem eigenen Thread.
-
Zeig mal die Langfassung. Am besten aber in einem eigenen Thread.
bumped:
Update iob_diag
Included check for directories that potentially may cause issues with npm@8.
-
bumped:
Update iob_diag
Included check for directories that potentially may cause issues with npm@8.
@thomas-braun
Ausgabe kommt*** NodeJS-Installation *** /usr/bin/nodejs v16.17.1 /usr/bin/node v16.17.1 /usr/bin/npm 8.15.0 nodejs: Installed: 16.17.1-deb-1nodesource1 Candidate: 16.18.1-deb-1nodesource1 Version table: 16.18.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x focal/main amd64 Packages *** 16.17.1-deb-1nodesource1 100 100 /var/lib/dpkg/status 14.21.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_14.x focal/main amd64 Packages 10.19.0~dfsg-3ubuntu1 500 500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages Temp directories causing npm8 problem: 0Ich persönlich find die Schwarze Schrift in putty mit dem weißem Hintergrund schwer zu lesen. Vielleicht geht es auch nur mir so. Sieht hier im Screenshot deutlich besser aus als bei mir auf der Konsole. Der grüne Text liest sich sehr angenehm.
