Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. (Gelöst) Auslesen ioBroker Hosts Systeminformationen?

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    (Gelöst) Auslesen ioBroker Hosts Systeminformationen?

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MCU @Oli last edited by

      @oli Versuch mal

      const os = require('os');
      log(os.platform())
      
      liv-in-sky O 2 Replies Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @MCU last edited by

        @mcu endlich ein helfer 🙂 hätte keine ahnung, wo das sein soll

        1 Reply Last reply Reply Quote 0
        • O
          Oli @MCU last edited by

          @mcu

          damit bekomme ich leider auch nur linux als Ergebnis, aber nicht docker (official image - v9.1.1)

          M 1 Reply Last reply Reply Quote 0
          • M
            MCU @Oli last edited by

            @oli Ist hier was dabei?

            const os = require('os');
            log(os.platform())
            log(os.arch())
            log(os.release())
            log(os.hostname())
            log(os.cpus())
            log(os.totalmem())
            log(os.freemem())
            log(os.uptime())
            log(os.networkInterfaces())
            log(os.homedir())
            log(os.tmpdir())
            log(os.type())
            log(os.endianness())
            
            
            Homoran 2 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @MCU last edited by

              @mcu war das nicht in dem Export dabei?

                    "os": {
                      "hostname": "ioBroker",
                      "type": "Linux",
                      "platform": "linux",
                      "arch": "x64",
                      "release": "5.10.60-qnap",
                      "endianness": "LE",
                      "tmpdir": "/tmp"
              

              Ausschnitt!

              M 1 Reply Last reply Reply Quote 0
              • M
                MCU @Homoran last edited by MCU

                @homoran Doch, aber es nicht das Gesuchte.
                04af0e97-c498-4745-9cf7-cada3000f990-image.png
                Was er möchte ist
                81b6a113-140b-4b40-b862-cf8d612e1f88-image.png

                O 1 Reply Last reply Reply Quote 0
                • O
                  Oli @MCU last edited by

                  @mcu

                  erstmal danke für deine Unterstützung,

                  da ist alles mögliche dabei aber leider nicht das was ich suche

                  liv-in-sky M 2 Replies Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @MCU last edited by

                    @mcu

                    @mcu sagte in Auslesen ioBroker Hosts Systeminformationen?:

                    aber es nicht das Gesuchte.

                    das weiss ich auch 😂
                    Aber dann kann man sich das ja sparen.

                    ich hab keine Ahnung wie das in die system.host kommt, und wie @thomas-braun das ausliest.

                    @Oli hat ja die linux Befehle noch nicht getestet

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

                      @oli

                      du könntest aucch auf der git seite von buanet nachfragen, wie du daran kommst

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

                        @liv-in-sky iobroker.admin
                        b35799bb-d456-4de6-bad5-784728c8577f-image.png

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

                          @homoran

                          Gar nicht. Der gesuchte String ist nicht aus iob diag, oder?

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

                            @thomas-braun
                            hier doch
                            https://forum.iobroker.net/post/1164765

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

                              @mcu wo hast du das hergezaubert ?

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

                                @liv-in-sky
                                https://github.com/ioBroker/ioBroker.admin/blob/master/packages/admin/src/src/tabs/Hosts.tsx#L122

                                Es wäre sinnvoll ein Feature Request für iobroker.js-controller zu erstellen, so dass auch die Docker Infos in dem richtigen OS-Pfad landen?

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

                                  @mcu

                                  aber ich finde die info nicht - ist die unter system.adapter.admin ?

                                  ich habe proxmox, daher kann ich nicht suchen

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

                                    @liv-in-sky Nein. Das war nur ein Hinweis, wo es im Admin gesetzt wird. Da kommt man aber so nicht dran.
                                    Deswegen ist da ein Feature Request für den js-controller bzw. Admin sinnvoll.
                                    Je nach dem wer die Daten in die system-Pfade schreibt.

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

                                      @mcu

                                      danke dir

                                      aber ich schätze mal, das man sich die "image" version anzeigen lassen kann, welches gerade läuft - auf consolen ebene

                                      aber das soll sich jmd ansehen, der docker nutzt - sowas kommt mir nicht ins haus 🙂

                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • M
                                        MCU @Oli last edited by

                                        @oli Was zeigt dies an?

                                        
                                        const { exec } = require('child_process');
                                        
                                        exec('cat /opt/scripts/.docker_config/.thisisdocker', (error, stdout, stderr) => {
                                          if (error) {
                                            console.error(`Fehler: ${error.message}`);
                                            return;
                                          }
                                          if (stderr) {
                                            console.error(`stderr: ${stderr}`);
                                            return;
                                          }
                                          console.log(`CPU-Informationen:\n${stdout}`);
                                        });
                                        
                                        exec('cat /proc/cpuinfo', (error, stdout, stderr) => {
                                          if (error) {
                                            console.error(`Fehler: ${error.message}`);
                                            return;
                                          }
                                          if (stderr) {
                                            console.error(`stderr: ${stderr}`);
                                            return;
                                          }
                                          console.log(`CPU-Informationen:\n${stdout}`);
                                        });
                                        
                                        O 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @liv-in-sky last edited by

                                          @liv-in-sky sagte in Auslesen ioBroker Hosts Systeminformationen?:

                                          aber ich schätze mal, das man sich die "image" version anzeigen lassen kann, welches gerade läuft - auf consolen ebene

                                          Ja, die Version kann man auslesen.
                                          Steht u.a. im Code zu 'iob diag' drin, welche Datei die Info drin hat.

                                          1 Reply Last reply Reply Quote 0
                                          • O
                                            Oli @MCU last edited by

                                            @mcu
                                            hier kommt folgende Ausgabe:

                                            script.js.common.System.Skript_1: CPU-Informationen: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 55 model name : Intel(R) Celeron(R) CPU J1900 @ 1.99GHz stepping : 8 microcode : 0x82d cpu MHz : 2000.002 cache size : 1024 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm arat vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest bugs : cpu_meltdown spectre_v1 spectre_v2 mds msbds_only bogomips : 4000.00 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 55 model name : Intel(R) Celeron(R) CPU J1900 @ 1.99GHz stepping : 8 microcode : 0x82d cpu MHz : 2000.000 cache size : 1024 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm arat vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest bugs : cpu_meltdown spectre_v1 spectre_v2 mds msbds_only bogomips : 4000.00 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 55 model name : Intel(R) Celeron(R) CPU J1900 @ 1.99GHz stepping : 8 microcode : 0x82d cpu MHz : 2000.002 cache size : 1024 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 apicid : 4 initial apicid : 4 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm arat vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest bugs : cpu_meltdown spectre_v1 spectre_v2 mds msbds_only bogomips : 4000.00 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 55 model name : Intel(R) Celeron(R) CPU J1900 @ 1.99GHz stepping : 8 microcode : 0x82d cpu MHz : 2000.000 cache size : 1024 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 apicid : 6 initial apicid : 6 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm arat vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest bugs : cpu_meltdown spectre_v1 spectre_v2 mds msbds_only bogomips : 4000.00 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
                                            
                                            M 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.0k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly javascript
                                            7
                                            53
                                            1519
                                            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