NEWS
Blockly zum Netzwerktraffic tut's nicht mehr
-
Welche Interfaces sind denn da noch angelegt?
-
@asgothian sagte in Blockly zum Netzwerktraffic tut's nicht mehr:
Für Lan (hab ich getestet, geht):
jepp, da kommt was
pi@ioBrokerpi5:~ $ cat /sys/class/net/e*/statistics/rx_bytes 50496203 pi@ioBrokerpi5:~ $
das wäre ein Ansatz
Danke -
@thomas-braun sagte in Blockly zum Netzwerktraffic tut's nicht mehr:
Welche Interfaces sind denn da noch angelegt?
die üblichen verdächtigen
pi@ioBrokerpi5:~ $ ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.138.96 netmask 255.255.255.0 broadcast 192.168.138.255 inet6 2a0a:a546:44e1:0:36d3:f449:b498:bf24 prefixlen 64 scopeid 0x0<global> inet6 fe80::cb9d:71e1:3c0:771b prefixlen 64 scopeid 0x20<link> ether d8:3a:dd:b1:cd:fc txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 106 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether d8:3a:dd:b1:cd:fd txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 pi@ioBrokerpi5:~ $
Alles 0
-
@homoran sagte in Blockly zum Netzwerktraffic tut's nicht mehr:
Alles 0
Kann ich mir gerade keinen Reim drauf machen.
-
@thomas-braun wie gesagt passt der Wegfall der Werte zum Zeitpunkt des Upgrades.
-
Waren denn die
net-tools
dabei? -
@thomas-braun sagte in Blockly zum Netzwerktraffic tut's nicht mehr:
Waren denn die
net-tools
dabei?ja!
jetzt wo du das sagst!edit
falls das was hilft:pi@ioBrokerpi5:~ $ apt policy net-tools net-tools: Installed: 2.10-0.1+deb12u1 Candidate: 2.10-0.1+deb12u1 Version table: *** 2.10-0.1+deb12u1 500 500 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages 100 /var/lib/dpkg/status 2.10-0.1 500 500 http://deb.debian.org/debian bookworm/main arm64 Packages pi@ioBrokerpi5:~ $
-
-
-
@thomas-braun
jepp2: eth0: group offload subgroup hw_stats_info l3_stats off used off 2: eth0: group afstats subgroup mpls 2: eth0: group link RX: bytes packets errors dropped missed mcast 87950320 151779 0 3717 0 4387 TX: bytes packets errors dropped carrier collsns 48886205 113285 0 0 0 0 2: eth0: group offload subgroup l3_stats off used off 2: eth0: group offload subgroup cpu_hit 2: eth0: group xstats_slave subgroup bond suite 802.3ad 2: eth0: group xstats subgroup bond suite 802.3ad 2: eth0: group xstats_slave subgroup bridge suite mcast 2: eth0: group xstats_slave subgroup bridge suite stp 2: eth0: group xstats subgroup bridge suite mcast 2: eth0: group xstats subgroup bridge suite stp
-
ifconfig ist ohnehin veraltet, man verwendet mittlerweile besser iproute2-Befehle wie
ip
. -
@thomas-braun sagte in Blockly zum Netzwerktraffic tut's nicht mehr:
ifconfig ist ohnehin veraltet
mein Blockly auch
ich mzsste mich ja selber erst mal wieder einarbeiten, so alt ist das.
-
Ich würde das aber wie oben von @Asgothian gezeigt auch direkt auslesen. Dann musst du da nicht so umständlich herumparsen.
-
@thomas-braun
ach was!?
-
-
@thomas-braun jetzt muss ich noch den Faktor zur Umrechnung von x bytes/ 15 sek in kbit/sec haben.
ich hab da mal was von 1920 gerechnet, aber mit Dreisatz hab ich es noch nie gehabt