I tried to monitor the disk capacity with previous article.
By the way, I wanted to measure the traffic, so I passed ʻifconfig to the
watch` command.
$ watch -n 1 ifconfig enx00e04c00004a
Like this. ʻEnx ~ is the interface name. If you don't write it, everything will come out. As for the communication volume, the reception volume and transmission volume after startup are displayed as RX and TX, respectively. See the ʻifconfig
manual for details.
Every 0.1s: ifconfig enx00e04c00004a graviohub: Thu Sep 10 14:57:45 2020
enx00e04c00004a: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.86.55 netmask 255.255.255.0 broadcast 192.168.86.255
inet6 fe80::79b8:173:d2bd:f0e9 prefixlen 64 scopeid 0x20<link>
ether 00:e0:4c:00:00:4a txqueuelen 1000 (Ethernet)
RX packets 2500640 bytes 1823881816 (1.8 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3509207 bytes 1042507689 (1.0 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
This method is also quite easy, so I recommend it. If you want to measure properly, think of a proper method. : P
Recommended Posts