Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Auslesen IP -Adressen

    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

    Auslesen IP -Adressen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @liv-in-sky last edited by Homoran

      @liv-in-sky sagte in Auslesen IP -Adressen:

      das findet dann aber keine namen mit underscore

      Ich arbeite eigentlich viel mit underscore - habe ich in meinem nMap output aber diesmal nicht
      Läuft daher bei mir problemlos

      @liv-in-sky sagte in Auslesen IP -Adressen:

      hier zum test -fügt das mal ein im regex-online - kannst du das noch integrieren

      Was willst du dabei auslesen?

      EDIT: Der Underscore war das geringste Problem:
      .+r\s+([A-Za-z0-9-_]+).f[^(]+\((\d+.\d+.\d+.\d+)\)|(fritz.\w+)\s+\((\d+.\d+.\d+.\d+)\)|(\d+.\d+.\d+.\d+)$

      extra mittendrin eingeschoben:
      Underscore.png

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

        @Homoran muss nochmal nachdenken - mit replace geht das nicht - muss ich im script anders lösen

        nimm das mal in den reg-online

        Nmap scan report for Router-Nega-Wohnzimmer.fritz.box (10.0.1.4)
        Host is up (0.00027s latency).
        MAC Address: F4:F2:6D:CA:D1:DE (Tp-link Technologies)
        Nmap scan report for Drucker-Max.fritz.box (10.0.1.13)
        Host is up (0.030s latency).
        MAC Address: 9C:32:CE:31:FA:99 (Unknown)
        Nmap scan report for Drucker-Nega.fritz.box (10.0.1.15)
        Host is up (-0.052s latency).
        MAC Address: AC:E2:D3:83:62:C0 (Unknown)
        Nmap scan report for Synology_Nega.fritz.box (10.0.1.20)
        Host is up (-0.100s latency).
        MAC Address: 00:11:32:0D:85:84 (Synology Incorporated)
        Nmap scan report for Synology_Nega_2.fritz.box (10.0.1.21)
        Host is up (0.00014s latency).
        MAC Address: 00:11:32:0F:9D:D2 (Synology Incorporated)
        Nmap scan report for Synology_Nega_3.fritz.box (10.0.1.22)
        Host is up (0.00014s latency).
        MAC Address: 00:06:C6:4B:05:21 (lesswire AG)
        Nmap scan report for 10.0.1.112
        Host is up (0.00048s latency).
        Nmap scan report for fritz.box (10.0.1.1)
        Host is up (0.00036s latency).
        MAC Address: 00:11:32:90:7A:1C (Synology Incorporated)
        Nmap scan report for PC-Nega.fritz.box (10.0.1.31)
        Host is up (-0.10s latency).
        MAC Address: 00:D8:61:36:4B:1E (Unknown)
        Nmap scan report for Receiver-Max.fritz.box (10.0.1.34)
        Host is up (-0.100s latency).
        

        ich brauche immer einen namen und eine ip

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @liv-in-sky last edited by

          @liv-in-sky sagte in Auslesen IP -Adressen:

          nimm das mal in den reg-online

          nmap_nega.png

          soweit - so gut

          Willst du auch die Mac-Adressen haben?

          @liv-in-sky sagte in Auslesen IP -Adressen:

          ich brauche immer einen namen und eine ip

          Da bin ich jetzt zu doof für - kann man die Gruppen nicht in Arrays füttern?

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

            @Homoran teste ich gerade - was der .112 ist - keine ahnung - keine domäne ?

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

              @Homoran kannst du das mit dem _ noch hinbiegen ?

              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @liv-in-sky last edited by

                @liv-in-sky sagte in Auslesen IP -Adressen:

                @Homoran kannst du das mit dem _ noch hinbiegen ?

                ich kann noch mehr:
                mit_MAC.png

                Mit MAC

                das "nur" mit Underscore hatte ich eben gepostet:
                https://forum.iobroker.net/topic/23620/auslesen-ip-adressen/234

                Willst du mehr 😉

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

                  @Homoran schaut nicht schlecht aus, was ich jetzt habe - den letzten post muss ich noch ansehen

                   fritz.box (192.168.178.1)
                  for e-Gemini-N.fritz.box (192.168.178.10)
                  for ESP-C75826.fritz.box (192.168.178.20)
                  for ESP-375B84.fritz.box (192.168.178.21)
                  for Google-Home-Mini.fritz.box (192.168.178.28)
                  for Sonoff5.fritz.box (192.168.178.30)
                  for ESP-3E0893.fritz.box (192.168.178.33)
                  for NUC7FX.fritz.box (192.168.178.36)
                  for Broadlink-RMMINI-fc-15-7e.fritz.box (192.168.178.46)
                  for iobroker59.fritz.box (192.168.178.59)
                  for Broadlink-RMPROPLUS-e7-eb-47.fritz.box (192.168.178.61)
                  for Meross-Surge-Protector.fritz.box (192.168.178.63)
                  for Sonoff3.fritz.box (192.168.178.65)
                  for Sonoff4.fritz.box (192.168.178.69)
                  for Sonoff6.fritz.box (192.168.178.70)
                  for lumi-gateway-v3-miio78808970.fritz.box (192.168.178.75)
                  for ESP-641027.fritz.box (192.168.178.77)
                  for SonoffPow1.fritz.box (192.168.178.78)
                  for SonoffBridge.fritz.box (192.168.178.79)
                  for LinganWifiDose.fritz.box (192.168.178.82)
                  for Sonoff7.fritz.box (192.168.178.83)
                  for Sonoff8.fritz.box (192.168.178.84)
                  for dectFritz.fritz.box (192.168.178.88)
                  for Sonoff11.fritz.box (192.168.178.91)
                  for Sonoff12.fritz.box (192.168.178.92)
                  for Sonoff13.fritz.box (192.168.178.93)
                  for Sonoff14.fritz.box (192.168.178.94)
                  for SonoffPow4.fritz.box (192.168.178.98)
                  for SonoffPow4.fritz.box (192.168.178.99)
                  for KingArtTouchT2.fritz.box (192.168.178.106)
                  for ShellyWC.fritz.box (192.168.178.108)
                  for WemosTasmotaMov1.fritz.box (192.168.178.111)
                  for Sonoff15.fritz.box (192.168.178.120)
                  for Sonoff16.fritz.box (192.168.178.121)
                  for SonoffPow2.fritz.box (192.168.178.122)
                  for SonoffPow3.fritz.box (192.168.178.123)
                  for ESP-5B8572.fritz.box (192.168.178.126)
                  for MCUTasmotaMov1.fritz.box (192.168.178.131)
                  for Sonoff17.fritz.box (192.168.178.133)
                  for SonoffS26.fritz.box (192.168.178.135)
                  for Unifi-Light.fritz.box (192.168.178.138)
                  for Unifi-LR.fritz.box (192.168.178.144)
                  for pi-hole.fritz.box (192.168.178.145)
                  for ESP-23859B.fritz.box (192.168.178.150)
                  for ESP-37621B.fritz.box (192.168.178.155)
                  for amazon-2f9d27a5a.fritz.box (192.168.178.156)
                  for sqltulla.fritz.box (192.168.178.157)
                  for NAS-FILE-Server.fritz.box (192.168.178.199)
                  
                  Homoran 1 Reply Last reply Reply Quote 0
                  • Negalein
                    Negalein Global Moderator @liv-in-sky last edited by

                    @liv-in-sky sagte in Auslesen IP -Adressen:

                    was der .112 ist - keine ahnung - keine domäne ?

                    der .112 ist ein dummer doofer Akku von der PV.

                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @liv-in-sky last edited by

                      @liv-in-sky sagte in Auslesen IP -Adressen:

                      schaut nicht schlecht aus

                      eher gut!

                      Mein größtes Problem wr einerseits das .fritz.box auszufiltern aber die Box und die Repeater trotzdem zu finden

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

                        @Homoran super - jetzt weiß ich, an wen ich mich wenden muss, wenn mal wieder regex gefragt ist

                        jetzt dauerts wieder ein bischen - muss den rest vom script angleichen

                        @Negalein - irgendwie erinnert mich deine .112 an unifi - ein gerät, das sich anmeldet und keine ip hat - sollte ok sein, wenn es nicht aufgelistet ist - eine fehlerquelle weniger

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

                          @liv-in-sky sagte in Auslesen IP -Adressen:

                          ein gerät, das sich anmeldet und keine ip hat

                          IP hat der Akku, aber mehr nicht

                          1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @liv-in-sky last edited by

                            @liv-in-sky sagte in Auslesen IP -Adressen:

                            jetzt dauerts wieder ein bischen

                            ich fürchte ich habe die MAC-Adressen falsch zugeordnet.

                            kommen die als letztes?

                            Das bekomme ich gerade nicht hin

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

                              @Homoran ich dachte die mac sind nicht erwünscht ? ich mach jetzt erstnmal ohne - mit mac muss ich ein anderes html template nehmen

                              Homoran 1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @liv-in-sky last edited by Homoran

                                @liv-in-sky Dann lass mich da schon mal am RegEx frickeln

                                ist ein Datensatz:

                                Nmap scan report for Device_007.fritz.box (192.168.178.123)
                                Host is up (0.030s latency).
                                MAC Address: AB:12:CD:34:EF:56 (Unknown)
                                

                                Also die MAC-Adresse zum Schluss?

                                @liv-in-sky sagte in Auslesen IP -Adressen:

                                die mac sind nicht erwünscht ?

                                na so hart bin ich mit denen nicht umgegangen - nicht nötig - schöne Zusatzinfo bei "unbekannten" IP

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

                                  @Homoran ok - egal wo die sie hinschreibst - ich muss sie eh filtern - ist aber kein thema

                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @liv-in-sky last edited by

                                    @liv-in-sky sagte in Auslesen IP -Adressen:

                                    @Homoran ok - egal wo die sie hinschreibst - ich muss sie eh filtern - ist aber kein thema

                                    nicht hinschreiben - wo spuckt nMap die MAC zu der IP aus? Vorher oder hinter der IP?

                                    Dann würde ich/du das mit einem separaten RegEx machen?
                                    Aber wie dann zuordnen?

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

                                      @Homoran

                                      das ist der block

                                      MAC Address: 00:14:97:28:98:99 (Zhiyuan Eletronics)
                                      Nmap scan report for iPhone.fritz.box (10.0.1.115)
                                      Host is up (0.089s latency).
                                      
                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @Homoran last edited by

                                        @Homoran müßte man wohl den zeilenumbruch entfernen damit alle sin einer zeile steht

                                        oder man macht ein zweites array - mit eigener suche und verbindet das - dann müßten die array längen verglichen werden

                                        1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @liv-in-sky last edited by Homoran

                                          @liv-in-sky Gottseidank - so herum bekomme ich es hin

                                          In der Testdatei von nega ist der Router NICHT von tp-Link???
                                          Da hängt die IP dahinter

                                          Anders hängt es irgendwo weil ich ja kein \n nehmen darf

                                          Negalein 1 Reply Last reply Reply Quote 0
                                          • Negalein
                                            Negalein Global Moderator @Homoran last edited by

                                            @Homoran sagte in Auslesen IP -Adressen:

                                            In der Testdatei von nega ist der Router NICHT von tp-Link???

                                            Doch, 1er schon

                                            Nmap scan report for Router-Nega-Wohnzimmer.fritz.box (10.0.1.4)
                                            Host is up (0.00027s latency).
                                            
                                            Homoran 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            855
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            vis
                                            17
                                            541
                                            79196
                                            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