Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. IP Devices im Netzwerk - HTML Tabelle vis, Iqontrol

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    IP Devices im Netzwerk - HTML Tabelle vis, Iqontrol

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @marsmännchen last edited by

      @marsmännchen sagte in IP Devices im Netzwerk - HTML Tabelle vis, Iqontrol:

      const domainName="192.168.1.1";

      liegt evtl daran (bin mir aber nichtt sicher):

      const domainName="192.168.1.1"; 
      

      das ist kein domain name: z.b fritz.box wäre so ein d-name

      hast du da was im router definiert ?

      ansonsten müßtest du mal den output aus der console posten und auch den output des logs vom script (in deinem post . im letzten code siehst du in zeile 6 : console.log(result); - du mußt die beiden schrägstriche entfernen

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

        @liv-in-sky
        danke für das geniale Script, bin gerade erst darauf gestoßen und es funktioniert wie es soll.

        Allerdings habe ich meinen ioBroker über Docker installiert und habe das Problem, dass nicht alle Geräte über das Skript angezeigt werden und die MAC Adressen fehlen.

        @Glasfaser werden bei dir mittlerweile alle Geräte angezeigt und wenn ja, wie hast du das hinbekommen?

        Ausgabe aus dem Skript:

        javascript.0 (235) script.js.common.System.Skript_1: Starting Nmap 7.80 ( https://nmap.org ) at 2023-10-09 13:57 CEST Nmap scan report for speedport.ip (192.168.2.1) Host is up (0.0042s latency). Nmap scan report for 192.168.2.101 Host is up (0.00064s latency). Nmap scan report for 192.168.2.103 Host is up (0.00054s latency). Nmap scan report for 192.168.2.106 Host is up (0.0024s latency). Nmap scan report for 192.168.2.107 Host is up (0.025s latency). Nmap scan report for 192.168.2.108 Host is up (0.0031s latency). Nmap scan report for 192.168.2.112 Host is up (0.0029s latency). Nmap scan report for 192.168.2.115 Host is up (0.0026s latency). Nmap scan report for ioBroker (192.168.2.120) Host is up (0.00019s latency). Nmap scan report for 192.168.2.126 Host is up (0.033s latency). Nmap scan report for 192.168.2.140 Host is up (0.0044s latency). Nmap scan report for 192.168.2.150 Host is up (0.085s latency). Nmap scan report for 192.168.2.155 Host is up (0.0057s latency). Nmap scan report for 192.168.2.176 Host is up (0.070s latency). Nmap done: 256 IP addresses (14 hosts up) scanned in 16.03 seconds
        

        Ausgabe über die Konsole im Docker:

        root@ioBroker:/opt/iobroker# nmap -sPR --dns-servers 192.168.2.1 192.168.2.0/24
        WARNING: -sR is now an alias for -sV and activates version detection as well as RPC scan.
        Starting Nmap 7.80 ( https://nmap.org ) at 2023-10-09 13:25 CEST
        Nmap scan report for speedport.ip (192.168.2.1)
        Host is up (0.0040s latency).
        MAC Address: 64:CC:22:39:A1:98 (Arcadyan)
        Nmap scan report for 192.168.2.101
        Host is up (0.00032s latency).
        MAC Address: 00:08:9B:EA:9B:3A (ICP Electronics)
        Nmap scan report for 192.168.2.103
        Host is up (0.00019s latency).
        MAC Address: F4:06:8D:38:61:92 (devolo AG)
        Nmap scan report for 192.168.2.106
        Host is up (0.0011s latency).
        MAC Address: 60:6D:3C:10:49:B1 (Luxshare Precision Industry Company Limited)
        Nmap scan report for 192.168.2.107
        Host is up (0.015s latency).
        MAC Address: 88:87:17:96:28:12 (Canon)
        Nmap scan report for 192.168.2.110
        Host is up (0.0025s latency).
        MAC Address: 94:C6:91:59:C1:3C (EliteGroup Computer Systems)
        Nmap scan report for 192.168.2.112
        Host is up (0.0023s latency).
        MAC Address: 00:05:CD:94:48:C9 (D&M Holdings)
        Nmap scan report for 192.168.2.115
        Host is up (0.000035s latency).
        MAC Address: 00:08:9B:EA:9B:39 (ICP Electronics)
        Nmap scan report for 192.168.2.126
        Host is up (0.094s latency).
        MAC Address: 00:05:51:10:A3:06 (F & S Elektronik Systeme GmbH)
        Nmap scan report for 192.168.2.139
        Host is up (0.11s latency).
        MAC Address: 70:EE:50:6B:5F:4E (Netatmo)
        Nmap scan report for 192.168.2.140
        Host is up (0.11s latency).
        MAC Address: C8:DB:26:0A:8D:15 (Logitech)
        Nmap scan report for 192.168.2.145
        Host is up (0.023s latency).
        MAC Address: 94:3A:91:81:88:66 (Unknown)
        Nmap scan report for 192.168.2.150
        Host is up (1.4s latency).
        MAC Address: A6:BF:DC:19:1C:41 (Unknown)
        Nmap scan report for 192.168.2.155
        Host is up (0.010s latency).
        MAC Address: 00:0B:3B:9C:96:CD (devolo AG)
        Nmap scan report for 192.168.2.176
        Host is up (0.13s latency).
        MAC Address: EC:2B:EB:23:7E:22 (Unknown)
        Nmap scan report for 192.168.2.186
        Host is up (0.0045s latency).
        MAC Address: 6C:A9:36:FD:1B:7F (DisplayLink (UK))
        Nmap scan report for 192.168.2.211
        Host is up (0.014s latency).
        MAC Address: 50:D4:5C:9B:AA:1E (Unknown)
        Nmap scan report for ioBroker (192.168.2.120)
        Host is up.
        Nmap done: 256 IP addresses (18 hosts up) scanned in 7.34 seconds
        
        liv-in-sky 2 Replies Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @Oli last edited by

          @oli

          probiere mal ein blockly mit exec block - kopiere dort denn befehl und aktiviere das log bzw. den return wert z.b. https://forum.iobroker.net/post/761180 nutzt anderen befehl

          evtl kannst du einen syntax für den befehl finden, indem der befehl mit mac angezeigt wird - habe leider keine docker erfahrung

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

            @oli
            nebenbei
            bei mir war es wichtig, dass der root user die abfrage macht - sonst macht das linux netwerk device probleme

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

              @liv-in-sky
              Also mit folgendem Befehl bekomme ich die reduzierten Geräte ohne MAC

              nmap -sPR --dns-servers 192.168.2.1 192.168.2.0/24
              

              Bei folgenden Befehl kommt gar nichts zurück

              sudo -u root /usr/bin/nmap -sPR --dns-servers 192.168.2.1 192.168.2.0/24
              

              Ich dachte eigentlich, dass man bei Docker immer mit 'root' unterwegs ist

              liv-in-sky 3 Replies Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @Oli last edited by

                @oli

                hat docker einen root oder evtl einen admin user ?

                hast du die sueders datei im server angeglichen ?

                beispiel von mir:

                Image 136.png

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

                  @oli

                  wenn ich das lese, sieht es noicht so toll aus:

                  https://stackoverflow.com/questions/71997736/docker-why-sudo-doesnt-work-as-expected

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

                    @oli

                    hier kam mal eine lösung https://forum.iobroker.net/post/600999 - fang ein wenig weiter oben an zu lesen - viel glück

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

                      @liv-in-sky
                      Erstmal danke für deine Mühe, werde es mal testen

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

                        @oli

                        das problem findest du auch des öfteren bei einer google suche - ohne iobroker

                        "nmap root docker" suche

                        O 2 Replies Last reply Reply Quote 0
                        • O
                          Oli @liv-in-sky last edited by

                          @liv-in-sky
                          Ja, aber leider ohne Lösung

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

                            @liv-in-sky
                            leider finde ich keine Lösung, dass es im Docker richtig läuft und gebe jetzt auf.

                            Kannst du mir sagen, wie ich NMAP wieder deinstallieren kann?

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

                              @oli leider nein - ich nutze kein docker und habe daher keine ahnung davon 😞

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

                                @liv-in-sky
                                Wie ist den der Befehl unter Linux zum deinstallieren?

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

                                  @oli

                                  sudo apt purge nmap

                                  https://www.howtogeek.com/229699/how-to-uninstall-software-using-the-command-line-in-linux/

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

                                    @liv-in-sky
                                    Super, danke dir

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    597
                                    Online

                                    31.8k
                                    Users

                                    80.0k
                                    Topics

                                    1.3m
                                    Posts

                                    javascript template
                                    26
                                    493
                                    77049
                                    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