NEWS
Blockly zum Netzwerktraffic tut's nicht mehr
-
Hier bei mir sind kumulierte Werte drin:
echad@chet:~ $ ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.178.48 netmask 255.255.255.0 broadcast 192.168.178.255 inet6 2a02:908:391:30e0:ac4d:d5f2:744b:c444 prefixlen 64 scopeid 0x0<global> inet6 fe80::fff5:4266:a398:7a9 prefixlen 64 scopeid 0x20<link> inet6 fdc4:d4d9:4610:0:b984:5303:f497:d2ab prefixlen 64 scopeid 0x0<global> ether e4:5f:01:0b:f7:93 txqueuelen 1000 (Ethernet) RX packets 5515467 bytes 7286133763 (6.7 GiB) RX errors 0 dropped 29115 overruns 0 frame 0 TX packets 2931405 bytes 440978321 (420.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-
@asgothian sagte in Blockly zum Netzwerktraffic tut's nicht mehr:
So wie ich den Code lese sind das rx und tx in bytes.
ja.
ich weiß nicht, warum ich auf das Blockly umgestellt habe.
Mag sein, dass es nach dem Wechsel vom SBC auf Proxmox gewesen ist, und ich es nach dem Wechsel zurück auf Pi5 nicht mehr geändert hatte weilnes lief....bis heute abend
Dann versuch ich es mal mit dem RPI2
Danke!
-
@homoran sieht so aus als wenn da gar Traffic angezeigt wird, da steht überall 0, was ziemlich unwahrscheinlich ist.
Könnte ein Thema von ifconfig sein, außer war gerade in dem Moment wirklich kein Traffic -
@thomas-braun sagte in Blockly zum Netzwerktraffic tut's nicht mehr:
Hier bei mir sind kumulierte Werte drin:
ja!
so muss es bis heute abend bei mir auch gewesen sein!Warum klappt es bei mir nicht mehr?
reboot hat auch nicht geholfen.die letzte Zeile mit dem interrupt komnt mir auch neu vor
-
@jey-cee sagte in Blockly zum Netzwerktraffic tut's nicht mehr:
sieht so aus als wenn da gar Traffic angezeigt wird, da steht überall 0, was ziemlich unwahrscheinlich ist.
richtig! das ist der Punkt.
Da müssten wie bei Thomas die kumulierten Werte stehen, auch wenn in der Sekunde kein traffic wäre -
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!?
-