Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. iob diag - Skript

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    iob diag - Skript

    This topic has been deleted. Only users with topic management privileges can see it.
    • Jey Cee
      Jey Cee Developer last edited by

      Cool, das hat noch gefehlt.

      *** BASISSYSTEM ***
      CPU-Architektur: x86_64
      Docker: Nein
      LXC: kvm
      Distributor ID: Ubuntu
      Description:    Ubuntu 22.04.1 LTS
      Release:        22.04
      Codename:       jammy
      
      Systemuptime und Load:
       08:18:23 up 43 days, 21:11,  1 user,  load average: 0,53, 0,32, 0,28
      CPU threads: 8
      
      *** Zeit und Zeitzonen ***
      Mi 2. Nov 07:18:23 UTC 2022
      Mi 2. Nov 08:18:23 CET 2022
      CET +0100
      Europe/Berlin
      
      *** ARBEITSSPEICHER ***
                     total        used        free      shared  buff/cache   available
      Mem:           5,8Gi       3,1Gi       912Mi       1,0Mi       1,8Gi       2,4Gi
      Swap:          4,0Gi        38Mi       4,0Gi
      Total:         9,8Gi       3,1Gi       4,9Gi
      
      *** Nodejs-Installation ***
      /usr/bin/nodejs         v14.20.0
      /usr/bin/node           v14.20.0
      /usr/bin/npm            6.14.17
      
      nodejs:
        Installiert:           14.20.0-deb-1nodesource1
        Installationskandidat: 14.20.1-deb-1nodesource1
        Versionstabelle:
           14.20.1-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_14.x jammy/main amd64 Packages
       *** 14.20.0-deb-1nodesource1 100
              100 /var/lib/dpkg/status
           12.22.9~dfsg-1ubuntu3 500
              500 http://bd.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
      
      *** ioBroker-Installation ***
      js-controller:  4.0.23
      
      Updates + Repos:
      Used repository: beta
      Adapter    "backitup"     : 2.5.3    , installed 2.5.2  [Updatable]
      
      *** User und Gruppen ***
      jey-cee
      /home/jey-cee
      jey-cee adm cdrom sudo dip plugdev lxd iobroker
      
      *** X-Server-Setup ***
      X-Server: Nein
      Desktop: 
      Konsole: tty
      
      *** Repositories und OS-Updates ***
      OK:1 http://bd.archive.ubuntu.com/ubuntu jammy InRelease
      OK:2 https://deb.nodesource.com/node_14.x jammy InRelease                                  
      OK:3 http://bd.archive.ubuntu.com/ubuntu jammy-updates InRelease                           
      OK:4 http://bd.archive.ubuntu.com/ubuntu jammy-backports InRelease
      OK:5 http://bd.archive.ubuntu.com/ubuntu jammy-security InRelease
      Paketlisten werden gelesen… Fertig
      Abhängigkeitsbaum wird aufgebaut… Fertig
      Statusinformationen werden eingelesen… Fertig
      Aktualisierung für 51 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
      
      Nashra Thomas Braun 2 Replies Last reply Reply Quote 0
      • Nashra
        Nashra Most Active Forum Testing @Jey Cee last edited by

        @jey-cee

        Aktualisierung für 51 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
        

        Ha, 51 Pakete. Bei mir waren es vorhin 50 😁

        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Einstein67 last edited by

          @einstein67

          Ist absichtlich nicht drin, weil es täuschen kann.
          Raspberry Pi OS läuft z.B. ohne X-Server im RunLevel 5.
          Ist zwar eigentlich falsch, aber was willste machen...

          Deswegen ist aber die Abfrage auf einen laufenden Xorg-Prozess drin. Das sollte verlässlicher sein.

          E 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Jey Cee last edited by

            @jey-cee
            kvm ist eine ProxmoxVM?
            Mir ist die Abgrenzung zum lxc nicht klar.

            Homoran Jey Cee 2 Replies Last reply Reply Quote 0
            • E
              Einstein67 @Thomas Braun last edited by

              @thomas-braun said in iob diag - Skript:

              Deswegen ist aber die Abfrage auf einen laufenden Xorg-Prozess drin. Das sollte verlässlicher sein.

              Alles klar! Hab ich schon irgendwie vermutet!

              Thx

              1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Thomas Braun last edited by

                @thomas-braun sagte in iob diag - Skript:

                @jey-cee
                kvm ist eine ProxmoxVM?
                Mir ist die Abgrenzung zum lxc nicht klar.

                ja! VM vs Container.

                1 Reply Last reply Reply Quote 0
                • Jey Cee
                  Jey Cee Developer @Thomas Braun last edited by

                  @thomas-braun richtig das läuft in einer vm

                  1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @liv-in-sky last edited by

                    @liv-in-sky

                    Ich hab die 'Lauschenden Ports' jetzt drin.
                    Check nochmal ob das so passt.

                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • E
                      emil70 last edited by emil70

                      Bei

                      ss -tulwp | grep LISTEN
                      

                      kommt bei mir

                      sudo: ss: command not found
                      

                      Mit

                      netstat -tulpn | grep LISTEN;
                      

                      geht es und

                      Distributor ID: Debian
                      Description:    Debian GNU/Linux 11 (bullseye)
                      Release:        11
                      Codename:       bullseye
                      

                      ist ja nicht alt

                      Das

                      ./iob_diag: line 35: systemd-detect-virt: command not found
                      

                      ist immer noch drin. Hatte ich weiter oben schon mal was zu geschrieben

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @emil70 last edited by Thomas Braun

                        @emil70

                        netstat ist eigentlich veraltet und wird/wurde durch ss abgelöst.
                        Hm. Muss ich wohl doch den alten Kram drin haben, netstat dürfte fast überall installiert sein.

                        systemd-detect-virt wüsste ich nicht wie es ersetzt werden kann. Bin ja froh das es die lxc identifizieren kann (Zumindest die aktuellen, die per systemd gestartet werden). Auf meinem absolut nicht virtualisierten RaspberryOS läuft das auch.

                        Auf was für einem System turnst du denn da rum? Docker?

                        [Edit:] Ah, reiner Docker. Ich bringe das heute abend mit abfangen der Meldung rein.

                        E 1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @Thomas Braun last edited by

                          @thomas-braun
                          vielen dank - ports werden aufgelistet

                          weiß nicht, ob das sinn macht - aber evtl so eine anzeige, falls die verschiedenen systeme das können ? nur 'ne idee - muss nicht sein

                          sudo ss -tulwp | grep LISTEN | awk '{print "PORT: "$5" DIENST: "$7}' | column -t
                          PORT:  0.0.0.0:sunrpc        DIENST:  users:(("rpcbind",pid=124,fd=4),("systemd",pid=1,fd=28))
                          PORT:  192.168.178.59:8082   DIENST:  users:(("io.web.0",pid=2019,fd=27))
                          PORT:  127.0.0.53%lo:domain  DIENST:  users:(("systemd-resolve",pid=127,fd=18))
                          PORT:  0.0.0.0:ssh           DIENST:  users:(("sshd",pid=245,fd=3))
                          PORT:  0.0.0.0:1880          DIENST:  users:(("node-red",pid=593,fd=21))
                          PORT:  0.0.0.0:1883          DIENST:  users:(("io.mqtt.1",pid=1299,fd=27))
                          PORT:  0.0.0.0:microsoft-ds  DIENST:  users:(("smbd",pid=324,fd=49))
                          PORT:  127.0.0.1:44129       DIENST:  users:(("chrome",pid=2459,fd=133))
                          PORT:  0.0.0.0:1505          DIENST:  users:(("io.sonoff.0",pid=1831,fd=26))
                          PORT:  0.0.0.0:1506          DIENST:  users:(("io.mqtt.0",pid=1284,fd=27))
                          PORT:  0.0.0.0:1606          DIENST:  users:(("io.sonoff.1",pid=1855,fd=26))
                          
                          
                          sudo ss -tulwp | grep LISTEN | awk '{print "PORT: "$5" DIENST: "$7}' | column -t
                          
                          1 Reply Last reply Reply Quote 0
                          • E
                            emil70 @Thomas Braun last edited by emil70

                            @thomas-braun

                            Kannst das schon drin lassen. Bau einfach am Anfang des script mit ein, das die benötigten Paket installiert werden

                                            echo "Installiere die benoetigte Pakete, bitte warten .."
                            		echo "-------------------------------------------------------------------------------"
                            		echo ""
                            		apt-get autoclean && apt-get update
                                            apt-get install iproute2
                            
                            iproute2 ist für ss
                            
                            R Thomas Braun 2 Replies Last reply Reply Quote 0
                            • R
                              reutli @emil70 last edited by

                              @emil70 sagte in iob diag - Skript:

                              Bau einfach am Anfang des script mit ein, das die benötigten Paket installiert werden

                              Das würde ich nicht tun, sollte ja nur ein Analyse Script sein und sollte nicht ins System eingreifen, oder?

                              1 Reply Last reply Reply Quote 3
                              • Thomas Braun
                                Thomas Braun Most Active @emil70 last edited by

                                @emil70

                                Ich mag nicht 'durch die kalte Küche' da irgendwelche Pakete installieren.
                                Hatte schon bei dem symlink auf node/nodejs Bauchweh.

                                E 1 Reply Last reply Reply Quote 1
                                • E
                                  emil70 @Thomas Braun last edited by emil70

                                  @thomas-braun

                                  Was bringt das script, wenn nachher doch bei jemand es hackt, weil Pakete fehlen

                                  bei

                                  column
                                  

                                  gabe es bei mir auch eine Fehlermeldung, das es nicht installiert ist

                                  apt-get install bsdmainutils
                                  

                                  ausgeführt und gut ist

                                  Man kann am Anfang des script ja darauf hinweisen, das Abhängigkeit für das script installiert werden

                                  Edit: Man kann die installieren Paket ja danach auf wieder automatisch deinstallieren lassen

                                  Homoran Thomas Braun liv-in-sky 3 Replies Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @emil70 last edited by Homoran

                                    @emil70 dann sollte es mit einer Fehlermeldung abbrechen und der Frage ob es installiert werdrn darf! (Luxusvariante), oder der Aufforderung es zu installieren.

                                    1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @emil70 last edited by Thomas Braun

                                      @emil70

                                      Nee, da geh ich lieber auf den kleinsten gemeinsamen Nenner.
                                      netstat in dem Fall dann.

                                      Paketverwaltung funktioniert auf anderen Linuxen halt auch anders.
                                      pacman, yum und wie die alle heißen...

                                      Gut, ich setze mal voraus das die Arch oder Alpine oder was auch immer Leute nicht unbedingt so'n Diagnose-Skript brauchen. Aber funktionieren sollte es auch in diesen Fällen.

                                      1 Reply Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @emil70 last edited by liv-in-sky

                                        @emil70 sagte in iob diag - Skript:

                                        column

                                        gabe es bei mir auch eine Fehlermeldung, das es nicht installiert ist

                                        habe ich schon fast vermutet

                                        was auch ginge zum. bei mir:

                                        sudo ss -tulwp | grep LISTEN | awk '{print "PORT: "$5"\t\t DIENST: "$7}'
                                        

                                        ist nicht ganz tabelle - aber besser lesbar

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @liv-in-sky last edited by

                                          @liv-in-sky

                                          Hab es jetzt mal auf den Klassiker

                                          sudo netstat -tulpen | grep LISTEN
                                          

                                          umgestellt. Das sollte ohne Gedönse überall laufen.

                                          1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @Thomas Braun last edited by

                                            @thomas-braun sagte in iob diag - Skript:

                                                                    *** ARBEITSSPEICHER ***
                                            

                                            sachma!

                                            hab ich den Plattenplatz übersehen?

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            611
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            49
                                            715
                                            136732
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo