Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Adapter net-tools v0.1.x

    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

    Adapter net-tools v0.1.x

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

      @Jey-Cee
      Nachdem ich den Discovery-Adapter gestartet habe, hat Discovery 27 Geräte gefunden. Net-Tools hat dann 5 Geräte angelegt und hat Fehler gemeldet

      net-tools.0	2020-09-14 20:42:39.615	info	(11049) Scanning for open ports at localhost, please wait
      net-tools.0	2020-09-14 20:42:39.589	info	(11049) starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.net-tools, node: v12.18.3, js-controller: 3.1.6
      host.ioBroker-Test	2020-09-14 20:42:37.516	info	instance system.adapter.net-tools.0 started with pid 11049
      host.ioBroker-Test	2020-09-14 20:42:07.443	info	Restart adapter system.adapter.net-tools.0 because enabled
      host.ioBroker-Test	2020-09-14 20:42:07.439	info	instance system.adapter.net-tools.0 terminated with code 0 (NO_ERROR)
      net-tools.0	2020-09-14 20:42:06.912	info	(10717) Terminated (NO_ERROR): Without reason
      net-tools.0	2020-09-14 20:42:06.911	info	(10717) terminating
      net-tools.0	2020-09-14 20:42:06.404	error	at discover (/opt/iobroker/node_modules/iobroker.net-tools/main.js:225:23)
      net-tools.0	2020-09-14 20:42:06.404	error	at addDevice (/opt/iobroker/node_modules/iobroker.net-tools/main.js:258:25)
      net-tools.0	2020-09-14 20:42:06.404	error	(10717) TypeError: Cannot read property 'replace' of null
      net-tools.0	2020-09-14 20:42:06.402	error	(10717) unhandled promise rejection: Cannot read property 'replace' of null
      Unhandled	2020-09-14 20:42:06.401	error	promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
      discovery.0	2020-09-14 20:42:04.691	info	(10737) Discovery finished
      discovery.0	2020-09-14 20:42:04.559	info	(10737) Discovery finished. Found new or modified 9 instances
      javascript.0	2020-09-14 20:42:00.026	info	(7374) script.js.strom5: 2 0 0
      unifi.0	2020-09-14 20:41:46.453	info	(572) Update done
      discovery.0	2020-09-14 20:41:37.204	info	(10737) Found 30 addresses
      discovery.0	2020-09-14 20:41:37.103	info	(10737) Done discovering ping devices. 29 packages received
      discovery.0	2020-09-14 20:41:22.744	info	(10737) Discovering ping devices...
      discovery.0	2020-09-14 20:41:13.571	info	(10737) starting. Version 2.3.11 in /opt/iobroker/node_modules/iobroker.discovery, node: v12.18.3, js-controller: 3.1.6
      
      1 Reply Last reply Reply Quote 0
      • Jey Cee
        Jey Cee Developer @sigi234 last edited by

        @sigi234 sagte in Adapter net-tools v0.1.x:

        Anzeige der IP im DP
        Anzeige Vendor im DP

        Sehr ungern ich bin gar kein Fan davon für Statische Daten eigene Objekte an zu legen. Wer die Daten braucht kann sie mit getObject aus dem Device Objekt lesen.
        Bei der IP wäre die Überlegung ob man die Statt einem Namen nimmt, da bin ich mir selber unsicher .

        @sigi234 sagte in Adapter net-tools v0.1.x:

        Port-Scan deaktivierbar

        Das lässt sich machen.

        @sigi234 sagte in Adapter net-tools v0.1.x:

        Anzeige der RSSI

        Das wäre ja nur für WLAN Geräte relevant, die Frage ist wie kommt man an diesen Wert ohne einen Router oder WLAN AP ab zu fragen. Wer eine Idee wie das mit Linux/Windows Boardmitteln geht immer her damit.

        @Dolomiti schau ich mir an.

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

          @Jey-Cee sagte in Adapter net-tools v0.1.x:

          Wer eine Idee wie das mit Linux/Windows Boardmitteln geht immer her damit.

          Steht in /proc/net/wireless drin

          pi@raspberrypi:~ $ cat /proc/net/wireless
          Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
           face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
           wlan0: 0000   70.  -25.  -256        0      0      0      0      0        0
          pi@raspberrypi:~ $
          
          Jey Cee 1 Reply Last reply Reply Quote 0
          • Jey Cee
            Jey Cee Developer @Thomas Braun last edited by

            @Thomas-Braun ich Glaube @sigi234 bezog sich auf die Geräte nicht auf das eigene Interface. Das macht auch wenig Sinn da der ioBroker host in den meisten Fällen per LAN angeschlossen ist (oder sein sollte).

            @Dolomiti hab den Fix auf Github hoch geladen.

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

              @Jey-Cee Dann sowas:

              sudo iw dev wlan0 scan
              

              Die RSSI -Werte der clients in Relation zum WLAN-Router wirst du auch nur dort auslesen können.

              1 Reply Last reply Reply Quote 0
              • Dolomiti
                Dolomiti @Jey Cee last edited by

                @Jey-Cee
                Funktioniert jetzt. Hat alle Geräte gefunden und die DP angelegt. 👍

                1 Reply Last reply Reply Quote 0
                • sigi234
                  sigi234 Forum Testing Most Active @Jey Cee last edited by sigi234

                  @Jey-Cee
                  Adapter bleibt Rot.

                  net-tools.0	2020-09-26 00:17:43.064	info	(1196) Terminated (NO_ERROR): Without reason
                  net-tools.0	2020-09-26 00:17:43.064	info	(1196) terminating
                  net-tools.0	2020-09-26 00:17:42.546	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  net-tools.0	2020-09-26 00:17:42.546	error	at portScan (C:\Program Files\iobroker\Test\node_modules\iobroker.net-tools\main.js:132:15)
                  net-tools.0	2020-09-26 00:17:42.546	error	(1196) TypeError: Cannot read property 'val' of null
                  net-tools.0	2020-09-26 00:17:42.546	error	(1196) unhandled promise rejection: Cannot read property 'val' of null
                  net-tools.0	2020-09-26 00:17:42.508	info	(1196) starting. Version 0.1.0 in C:/Program Files/iobroker/Test/node_modules/iobroker.net-tools, node: v12.18.0, js-controller: 3.1.6
                  
                  Negalein 1 Reply Last reply Reply Quote 0
                  • Negalein
                    Negalein Global Moderator @sigi234 last edited by

                    @sigi234 sagte in Adapter net-tools v0.1.x:

                    Adapter bleibt Rot.

                    @Jey-Cee

                    bei mir auch

                    net-tools.0	2020-09-26 17:28:29.182	info	(780) Terminated (NO_ERROR): Without reason
                    net-tools.0	2020-09-26 17:28:29.181	info	(780) terminating
                    net-tools.0	2020-09-26 17:28:28.672	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
                    net-tools.0	2020-09-26 17:28:28.672	error	at portScan (/opt/iobroker/node_modules/iobroker.net-tools/main.js:132:15)
                    net-tools.0	2020-09-26 17:28:28.672	error	(780) TypeError: Cannot read property 'val' of null
                    net-tools.0	2020-09-26 17:28:28.671	error	(780) unhandled promise rejection: Cannot read property 'val' of null
                    net-tools.0	2020-09-26 17:28:28.573	info	(780) starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.net-tools, node: v12.18.3, js-controller: 3.1.6
                    

                    Geräte lassen sich auch keine anlegen.

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

                      @sigi234 @Negalein danke für die Meldung.

                      EDIT: Fix ist auf Github.

                      Negalein 1 Reply Last reply Reply Quote 2
                      • Negalein
                        Negalein Global Moderator @Jey Cee last edited by

                        @Jey-Cee sagte in Adapter net-tools v0.1.x:

                        EDIT: Fix ist auf Github.

                        Danke, funktioniert!

                        Wäre es noch möglich, statt der MAC die IP oder besser noch den Namen als ID in den Objekten zu verwenden?

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

                          @Negalein sagte in Adapter net-tools v0.1.x:

                          Wäre es noch möglich, statt der MAC die IP oder besser noch den Namen als ID in den Objekten zu verwenden?

                          Möglich wäre das schon, aber ich habe ganz bewusst darauf verzichtet. Die MAC ist eindeutig und verändert sich nicht, sowohl IP wie auch Name können sich ändern. Die ID sollte immer eindeutig und unveränderlich sein, das sollte bei allen Adaptern Standard sein, das wurde vor einiger Zeit auch so besprochen.
                          Es gibt halt noch alt bestand wo das nicht so ist und manche neuen Entwickler sind sich dessen nicht bewusst oder es geht manchmal einfach nicht anders.

                          Klar kann man das Problem mit einem Alias umgehen, für mich ist das aber ein Workaround der das ganze System nur Aufbläht.
                          Für den Benutzer und die Übersichtlichkeit gibt es die Möglichkeit Objekten einen Namen zu geben, davon sollte man auch Gebrauch machen.

                          Negalein 1 Reply Last reply Reply Quote 1
                          • Negalein
                            Negalein Global Moderator @Jey Cee last edited by

                            @Jey-Cee sagte in Adapter net-tools v0.1.x:

                            Möglich wäre das schon, aber ich habe ganz bewusst darauf verzichtet. Die MAC ist eindeutig und verändert sich nicht, sowohl IP wie auch Name können sich ändern. Die ID sollte immer eindeutig und unveränderlich sein, das sollte bei allen Adaptern Standard sein, das wurde vor einiger Zeit auch so besprochen.

                            Danke für die Info.
                            Versteh ich.

                            1 Reply Last reply Reply Quote 0
                            • S
                              swordfisch last edited by

                              Wollte den Adapter auch mal testen leider bekomme ich ihn nicht installiert

                              install https://github.com/Jey-Cee/ioBroker.net-tools/tarball/37a817a9f18edaf343a20fa0709172f0b725fbf2
                              NPM version: 6.8.0
                              npm install https://github.com/Jey-Cee/ioBroker.net-tools/tarball/37a817a9f18edaf343a20fa0709172f0b725fbf2 --loglevel error --prefix "/opt/iobroker" (System call)
                              npm ERR! cb.apply is not a function
                              
                              npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2020-09-26T19_21_25_087Z-debug.log
                              ERROR: host.iOBroker Cannot install https://github.com/Jey-Cee/ioBroker.net-tools/tarball/37a817a9f18edaf343a20fa0709172f0b725fbf2: 1
                              ERROR: process exited with code 25
                              

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

                                hi @Jey-Cee

                                leider beim starten des adapters

                                net-tools.0	2020-09-26 21:56:48.303	error	at processTicksAndRejections (internal/process/task_queues.js:97:5)
                                net-tools.0	2020-09-26 21:56:48.303	error	at portScan (/opt/iobroker/node_modules/iobroker.net-tools/main.js:132:15)
                                net-tools.0	2020-09-26 21:56:48.303	error	(6673) TypeError: Cannot read property 'val' of null
                                net-tools.0	2020-09-26 21:56:48.302	error	(6673) unhandled promise rejection: Cannot read property 'val' of null
                                Unhandled	2020-09-26 21:56:48.301	error	promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                

                                1 Reply Last reply Reply Quote 0
                                • Glasfaser
                                  Glasfaser @swordfisch last edited by

                                  @swordfisch sagte in Adapter net-tools v0.1.x:

                                  NPM version: 6.8.0

                                  Dein System scheint recht alt zu sein !

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

                                    @swordfisch ich würde sagen erstmal npm (und damit auch nodejs) Aktualisieren.

                                    @liv-in-sky selbes Problem wie Negalein und sigi234, das habe ich behoben. Einmal Adapter löschen und nochmal neu von Github installieren.

                                    liv-in-sky S 2 Replies Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @Jey Cee last edited by

                                      @Jey-Cee

                                      erstmal danke - flutscht jetzt

                                      2 fragen:

                                      • ist das normal, dass keine ip in den datenpunkten angezeigt wird

                                      • echo geräte werden nicht gefunden - ich hatte mal ein script gemacht, dass auch das netzwerk scannt und eine html tabelle erstellt - das script arbeitet mit nmap tool, welches unter linux und windows installiert werden muss (damit werden die echo's gefunden) - sowas kann man nicht in deinen adapter einbauen ? https://forum.iobroker.net/topic/30057/ip-devices-im-netzwerk-html-tabelle-vis-iqontrol

                                      Negalein 1 Reply Last reply Reply Quote 0
                                      • S
                                        swordfisch @Jey Cee last edited by

                                        @Jey-Cee Node.js läuft auf version v12.18.4

                                        Thomas Braun Jey Cee 2 Replies Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @swordfisch last edited by

                                          @swordfisch Insgesamt sauber?

                                          which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                          
                                          S 1 Reply Last reply Reply Quote 0
                                          • Negalein
                                            Negalein Global Moderator @liv-in-sky last edited by

                                            @liv-in-sky sagte in Adapter net-tools v0.1.x:

                                            sowas kann man nicht in deinen adapter einbauen ?

                                            @Jey-Cee

                                            wäre toll, wenn das ginge

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            863
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            net-tools net-tools adapter ping ping adpter
                                            13
                                            50
                                            6845
                                            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