NEWS
Auslesen IP -Adressen
-
@liv-in-sky sagte in Auslesen IP -Adressen:
hätte wieder was zum testen
Script angepasst, neues angelegt, JS neu gestartet
-
Viel kommt nicht...
Nmap done: 256 IP addresses (29 hosts up) scanned in 4.72 seconds
Irgendwas stimmt mit Forum nicht, wie kommt Markus jetzt da rein? Ich habe @liv-in-sky zitiert.
-
@liv-in-sky sagte in Auslesen IP -Adressen:
also bitte einfach wie oben beschrieben ändern - https://forum.iobroker.net/post/369181 um zeile 160
sorry, erst jetzt gesehen
Keine Fehler mehr -
-
@liv-in-sky sagte in Auslesen IP -Adressen:
siehst du die cients - im gegen satz zum @sigi234 , unseren windows user ?
nein, auch nicht
-
PS: das kommt auf der Console
root@iobroker:/opt/iobroker# nmap -sPR --dns-servers 10.0.1.1 10.0.1.0/24 bash: nmap: Kommando nicht gefunden.
-
@Negalein hast du nmap auf linux installiert ?
-
@liv-in-sky sagte in Auslesen IP -Adressen:
hast du nmap auf linux installiert ?
lt. obiger Ausgabe denke ich nicht. Hatte ich nie darüber nachgedacht.
Wie installier ich das? -
@Negalein konsole öffnen
sudo apt-get install nmap
-
@liv-in-sky sagte in Auslesen IP -Adressen:
@Negalein konsole öffnen
sudo apt-get install nmap
gefunden, aber dann kommt
root@iobroker:/opt/iobroker# sudo apt-get install nmap Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig E: Paket nmap kann nicht gefunden werden.
-
Nmap funktioniert
root@iobroker:/opt/iobroker# nmap -sPR --dns-servers 10.0.1.1 10.0.1.0/24 WARNING: -sR is now an alias for -sV and activates version detection as well as RPC scan. Starting Nmap 7.40 ( https://nmap.org ) at 2020-02-02 15:23 CET Nmap scan report for fritz.box (10.0.1.1) Host is up (0.00036s latency). MAC Address: 44:4E:6D:F6:A1:E2 (Unknown) Nmap scan report for Router-Dina.fritz.box (10.0.1.2) Host is up (0.00042s latency). MAC Address: 18:D6:C7:D8:30:3B (Tp-link Technologies) Nmap scan report for Router-Daddy.fritz.box (10.0.1.3) Host is up (0.00055s latency). MAC Address: 38:D5:47:1E:ED:10 (Asustek Computer) 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: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). MAC Address: 00:1D:EC:07:62:3A (Marusys) Nmap scan report for ax51.fritz.box (10.0.1.35) Host is up (0.00024s latency). MAC Address: 00:6C:FD:C7:F7:D2 (Sichuan Changhong Electric) Nmap scan report for android-1ebccae0b1e6e06.fritz.box (10.0.1.36) Host is up (0.00021s latency). MAC Address: 1C:5A:6B:A9:CF:00 (Philips Electronics Nederland BV) Nmap scan report for DENON-AVR-2113.fritz.box (10.0.1.38) Host is up (0.00029s latency). MAC Address: 00:05:CD:29:40:C5 (D&M Holdings) Nmap scan report for HUAWEI-Mate-20-lite-69959.fritz.box (10.0.1.52) Host is up (-0.079s latency). MAC Address: D0:16:B4:79:48:7E (Unknown) Nmap scan report for HUAWEI-P30-lite-21d858dd2.fritz.box (10.0.1.53) Host is up (0.058s latency). MAC Address: 08:31:8B:32:8C:05 (Unknown) Nmap scan report for Handy-Margret.fritz.box (10.0.1.54) Host is up (0.059s latency). MAC Address: DC:16:B2:4F:FF:C5 (Unknown) Nmap scan report for Handy-Dina.fritz.box (10.0.1.56) Host is up (0.057s latency). MAC Address: FC:53:9E:AA:B6:69 (Unknown) Nmap scan report for android-b51de5e807c559a6.fritz.box (10.0.1.59) Host is up (0.013s latency). MAC Address: 20:A9:0E:4B:B5:38 (TCT mobile) Nmap scan report for TL-WPA4220.fritz.box (10.0.1.64) Host is up (-0.092s latency). MAC Address: AC:84:C6:E3:6B:78 (Unknown) Nmap scan report for Lan-Steckdose-Serverschrank.fritz.box (10.0.1.66) Host is up (0.0015s latency). MAC Address: 00:04:A3:0D:04:6A (Microchip Technology) Nmap scan report for amazon-a9fc71ec2.fritz.box (10.0.1.68) Host is up (0.37s latency). MAC Address: 1C:12:B0:82:7E:35 (Unknown) Nmap scan report for Philips-hue.fritz.box (10.0.1.69) Host is up (0.00018s latency). MAC Address: 00:17:88:A1:22:0E (Philips Lighting BV) Nmap scan report for HarmonyHub.fritz.box (10.0.1.70) Host is up (0.055s latency). MAC Address: 00:04:20:F1:D5:F5 (Slim Devices) Nmap scan report for localhost (10.0.1.71) Host is up (0.086s latency). MAC Address: 64:1C:B0:E7:57:B9 (Unknown) Nmap scan report for LED-Controller-Aquarium.fritz.box (10.0.1.72) Host is up (0.00019s latency). MAC Address: D8:80:39:99:B4:DE (Microchip Technology) Nmap scan report for amazon-a841a2440.fritz.box (10.0.1.73) Host is up (0.093s latency). MAC Address: CC:F7:35:6D:47:4A (Unknown) Nmap scan report for amazon-c23c53261.fritz.box (10.0.1.75) Host is up (0.063s latency). MAC Address: 50:DC:E7:96:BB:52 (Unknown) Nmap scan report for HS100.fritz.box (10.0.1.76) Host is up (0.083s latency). MAC Address: 50:C7:BF:AA:5D:2A (Tp-link Technologies) Nmap scan report for HS110.fritz.box (10.0.1.77) Host is up (0.059s latency). MAC Address: 50:C7:BF:BD:81:06 (Tp-link Technologies) Nmap scan report for HS100.fritz.box (10.0.1.78) Host is up (0.14s latency). MAC Address: AC:84:C6:54:E2:96 (Unknown) Nmap scan report for HS110.fritz.box (10.0.1.79) Host is up (0.059s latency). MAC Address: AC:84:C6:3B:9E:30 (Unknown) Nmap scan report for lumi-gateway-v3-miio54978671.fritz.box (10.0.1.81) Host is up (0.36s latency). MAC Address: 28:6C:07:F0:E9:00 (Xiaomi Electronics,co.) Nmap scan report for XboxOne.fritz.box (10.0.1.83) Host is up (0.00061s latency). MAC Address: F0:1D:BC:22:0D:20 (Microsoft) Nmap scan report for bha-1CCAE371B45E.fritz.box (10.0.1.84) Host is up (-0.14s latency). MAC Address: 1C:CA:E3:71:B4:5E (Ieee Registration Authority) Nmap scan report for Amazon-Echo-Kueche.fritz.box (10.0.1.87) Host is up (0.14s latency). MAC Address: 74:D6:37:E3:E0:69 (Unknown) Nmap scan report for Amazon-Echo-Kinderzimmer.fritz.box (10.0.1.88) Host is up (0.19s latency). MAC Address: 08:84:9D:8E:B9:A6 (Unknown) Nmap scan report for Photovoltaik-Max.fritz.box (10.0.1.90) Host is up (-0.14s latency). MAC Address: 00:03:AC:05:93:5B (Fronius Schweissmaschinen) Nmap scan report for zauner.fritz.box (10.0.1.92) Host is up (0.00072s latency). MAC Address: 00:06:C6:4B:05:21 (lesswire AG) Nmap scan report for raspberrypi.fritz.box (10.0.1.93) Host is up (-0.14s latency). MAC Address: B8:27:EB:C2:85:44 (Raspberry Pi Foundation) Nmap scan report for Zauner.fritz.box (10.0.1.94) Host is up (0.00084s latency). MAC Address: 00:03:AC:11:88:A5 (Fronius Schweissmaschinen) Nmap scan report for zauner.fritz.box (10.0.1.95) Host is up (0.00079s 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). 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). MAC Address: 48:4B:AA:B0:D1:44 (Apple) Nmap scan report for iobroker (10.0.1.200) Host is up. Nmap done: 256 IP addresses (45 hosts up) scanned in 9.92 seconds root@iobroker:/opt/iobroker#
-
@Negalein na- das sieht schon mal etwas besser aus
ich nehme an, du wirst die "springenden clients" auch haben - die sind immer wieder mal nicht erreichbar - bei mir ist es eine billige wlan steckdose, die immer wieder auf false geht und beim nächsten mal wieder da ist
-
@sigi234 das könnten jetzt mehrere themen sein
-
der befehl wird nicht gefunden - path nicht vorhanden, obwohl installiert
-
der befehl wird nicht als admin ausgeführt
-
der zeilenumbruch ist anders als bei linux- damit könnte das script beim zerlegen der daten ein problem haben
das letztere müßte im log sichtbar werden - steht da was
-
-
@liv-in-sky sagte in Auslesen IP -Adressen:
das letztere müßte im log sichtbar werden - steht da was
javascript.0 2020-02-02 15:32:01.460 info (18996) script.js.Listen.Fritz_IP1: registered 0 subscriptions and 1 schedule javascript.0 2020-02-02 15:32:01.453 info (18996) Start javascript script.js.Listen.Fritz_IP1 javascript.0 2020-02-02 15:32:01.449 info (18996) Stop script script.js.Listen.Fritz_IP1 javascript.0 2020-02-02 15:31:46.030 info (18996) script.js.Listen.Fritz_IP1:
-
@sigi234 kannst du mal den inhalt von dpVIS (datenpunkt) und folgende zeile einfügen und den output des logs (unter dem script - nicht im log-tab) posten
-
@liv-in-sky sagte in Auslesen IP -Adressen:
@sigi234 kannst du mal den inhalt von dpVIS (datenpunkt) und folgende zeile einfügen und den output des logs (unter dem script - nicht im log-tab) posten
<center><table bordercolor="grey" border="2px" cellspacing="1" cellpadding="1" width="1200" rules="none" style="color:#D8D8D8; font-size:14px; font-family:Helvetica;background-image: linear-gradient(42deg,#424242,#424242);"><tr height="35"; style="color:#BDBDBD; font-size: 16px; font-weight: normal ; border-bottom: 2px solid white "><td width=auto align=left> Name </td><td width=auto align=left> IP </td><td align=center> Status </td><td width=auto align=left style="color:white"> Name </td><td width=auto align=left style="color:white"> IP </td><td align=center style="color:white"> Status </td><td width=auto align=left> Name </td><td width=auto align=left> IP </td><td align=center> Status </td></tr><!DOCTYPE html><html lang="de"><head><title>Vorlage</title><meta http-equiv="content-type" content="text/html; charset=utf-8"><style> * { margin: 0;} body {background-color: #000000; margin: 0 auto; } p {padding-top: 10px; padding-bottom: 10px; text-align: center} td { padding:1px; border:0px solid grey; border-right:0px solid grey;border-bottom:0px solid grey;} table { width: 1200; margin: 0 auto; border:1px solid grey; border-spacing="10px" ; }td:nth-child(1) {width: auto}td:nth-child(2) {width:auto} </style></head><body><table bordercolor="grey" border="2px" cellspacing="1" cellpadding="1" width="1200" rules="none" style="color:#D8D8D8; font-size:14px; font-family:Helvetica;background-image: linear-gradient(42deg,#424242,#424242);"><tr height="35"; style="color:#BDBDBD; font-size: 16px; font-weight: normal ; border-bottom: 2px solid white "><td width=auto align=left> Name </td><td width=auto align=left> IP </td><td align=center> Status </td><td width=auto align=left style="color:white"> Name </td><td width=auto align=left style="color:white"> IP </td><td align=center style="color:white"> Status </td><td width=auto align=left> Name </td><td width=auto align=left> IP </td><td align=center> Status </td></tr><tr bgcolor="#151515"><td align=left>  </td><td align=left>  </td><td style=" border-right: 2px solid white;"align=center> 🟢 </td><td align=left style="color:#BDBDBD">  </td><td align=left style="color:#BDBDBD">  </td><td align=center style=" border-right: 2px solid white;"color:#BDBDBD"> 🟢 </td><td> </td><td> </td><td> </td></tr></table><div style="color:white; font-family:Helvetica; font-size: 80%; text-align: center; " >IP Devices List  Last Update: 15:41:06</div></body><td align=left>  </td><td align=left>  </td><td align=center> 🟢 </td></tr><tr bgcolor="#000000"><td align=left>  </td><td align=left>  </td><td style=" border-right: 2px solid white;"align=center> 🟢 </td><td> </td><td> </td><td style=" border-right: 2px solid white"> </td><td> </td><td> </td><td> </td></tr></table>
15:43:03.601 info javascript.0 (18996) Stop script script.js.Listen.Fritz_IP1 15:43:03.606 info javascript.0 (18996) Start javascript script.js.Listen.Fritz_IP1 15:43:03.611 info javascript.0 (18996) script.js.Listen.Fritz_IP1: registered 0 subscriptions and 1 schedule 15:43:18.612 info javascript.0 (18996) script.js.Listen.Fritz_IP1: 15:43:19.613 info javascript.0 (18996) script.js.Listen.Fritz_IP1:
Diese habe ich nicht geändert, sollte ja gleich wie bei dir sein?
const domainName="fritz.box"; const ipbereich="192.168.178.0/24"; const dnsServer="192.168.178.1"
-
@sigi234 ich kann das leider ohne iobroker auf windows nicht nachstellen - daher:
probieren wir mal rum
folgende änderung
myData=myData.replace(/(?:\r?\n|\r)/g,"")
-
TeamViewer?
-
-
@sigi234 teamviewer ist ok
rot weg - ja