[linux] Opzettelijk afknijpen internet?

Udo van den Heuvel udovdh op xs4all.nl
Wo Sep 1 12:38:37 CEST 2021


On 01-09-2021 11:14, paai wrote:
>>> Bert Hubert's wshaper zou daarbij wellicht kunnen helpen.
>>
>> Ingenieus! Bijzonder interessant bij het oplossen van een te lage 
>> internetsnelheid. Ik geef het haar door.
>>
> Hun volgende vraag: hoe meet je het totale dataverkeer van het hele 
> thuisnetwerk? Als de router dat niet kan vertellen, kun je dat dan zelf 
> meten?

mrtg?

######################################################################
#                                                                    #
# this is the eth0 traffic graphing section from /proc/net/dev       #
# change "grep eth0" to something else to measure a different device #
#                                                                    #
######################################################################
Target[eth0]: `/usr/bin/perl -e '@a=split(/[:\s]+/,qx(grep eth0 
/proc/net/dev));$f="%.0f";$fmt="$f\n$f\n1\neth0 traffic\n";$s=sprintf 
$fmt,$a[2],$a[10];print $s;'`;
Options[eth0]: noinfo, growright, transparent, nopercent
MaxBytes[eth0]: 125000000
AbsMax[eth0]: 125000000
kilo[eth0]: 1024
YLegend[eth0]: Bytes per second
ShortLegend[eth0]: B/s
Legend1[eth0]: Incoming Traffic in Bytes per second
Legend2[eth0]: Outgoing Traffic in Bytes per second
Legend3[eth0]: Maximal 10 Minute Incoming Traffic
Legend4[eth0]: Maximal 10 Minute Outgoing Traffic
LegendI[eth0]:  In:
LegendO[eth0]:  Out:
Title[eth0]: Server eth0 traffic
PageTop[eth0]: <H1>Server eth0 traffic</H1>
######################################################################

Dit doet ipv4 als ik het goed heb


#################################################################################
# 
         #
# this is the eth0 ipv6 traffic graphing section from 
/proc/net/dev_snmp6/eth0  #
# 
         #
#################################################################################
Target[eth0ipv6]: `/bin/grep -e Ip6InOctets -e Ip6OutOctets 
/proc/net/dev_snmp6/eth0|cut -b 32-`
Options[eth0ipv6]: noinfo, growright, transparent, nopercent
MaxBytes[eth0ipv6]: 125000000
AbsMax[eth0ipv6]: 125000000
kilo[eth0ipv6]: 1024
YLegend[eth0ipv6]: Bytes per second
ShortLegend[eth0ipv6]: B/s
Legend1[eth0ipv6]: Incoming Traffic in Bytes per second
Legend2[eth0ipv6]: Outgoing Traffic in Bytes per second
Legend3[eth0ipv6]: Maximal 10 Minute Incoming Traffic
Legend4[eth0ipv6]: Maximal 10 Minute Outgoing Traffic
LegendI[eth0ipv6]:  In:
LegendO[eth0ipv6]:  Out:
Title[eth0ipv6]: Server eth0 ipv6 traffic
PageTop[eth0ipv6]: <H1>Server eth0 ipv6 traffic</H1>
######################################################################



Udo


Meer informatie over de Linux maillijst