At 21:47 you have on your screen [sudo bpftrace /usr/share/bpftrace/tools/tcpconnect.bt] and it is a typo, the command of course is missing : # Where you find agian this tcp utility curl -LO raw.githubusercontent.com/iovisor/bpftrace/master/tools/tcpconnect.bt # Whee you install it sudo mv tcpconnect.bt /usr/share/bpftrace/tools/ sudo ls -allh /usr/share/bpftrace/tools/tcpconnect.bt # How you shoudl not run it sudo /usr/share/bpftrace/tools/tcpconnect.bt # And How you should : sudo bpftrace /usr/share/bpftrace/tools/tcpconnect.bt exame output : ~$ sudo bpftrace /usr/share/bpftrace/tools/tcpconnect.bt Attaching 2 probes... Tracing tcp connections. Hit Ctrl-C to end. TIME PID COMM SADDR SPORT DADDR DPORT 22:49:49 5792 Socket Thread 192.168.1.15 55180 140.82.118.4 13429 22:49:52 5792 Socket Thread 192.168.1.15 55182 140.82.118.4 13429 22:49:52 5792 Socket Thread 192.168.1.15 55184 140.82.118.4 13429 22:49:52 5792 Socket Thread 192.168.1.15 55186 140.82.118.4 13429 22:50:21 5792 Socket Thread 192.168.1.15 55188 140.82.118.4 13429 22:50:32 5792 Socket Thread 2a01:cb04:49a:9500:88ae:4748:4d9:5c3b 43036 0:0:4007:805::2016 13429 22:50:33 5792 Socket Thread 2a01:cb04:49a:9500:88ae:4748:4d9:5c3b 44340 0:0:4007:806::2001 13429
thanks for the conference, the approach is interesting, bringing up grafana
At 21:47 you have on your screen [sudo bpftrace /usr/share/bpftrace/tools/tcpconnect.bt] and it is a typo, the command of course is missing :
# Where you find agian this tcp utility
curl -LO raw.githubusercontent.com/iovisor/bpftrace/master/tools/tcpconnect.bt
# Whee you install it
sudo mv tcpconnect.bt /usr/share/bpftrace/tools/
sudo ls -allh /usr/share/bpftrace/tools/tcpconnect.bt
# How you shoudl not run it
sudo /usr/share/bpftrace/tools/tcpconnect.bt
# And How you should :
sudo bpftrace /usr/share/bpftrace/tools/tcpconnect.bt
exame output :
~$ sudo bpftrace /usr/share/bpftrace/tools/tcpconnect.bt
Attaching 2 probes...
Tracing tcp connections. Hit Ctrl-C to end.
TIME PID COMM SADDR SPORT DADDR DPORT
22:49:49 5792 Socket Thread 192.168.1.15 55180 140.82.118.4 13429
22:49:52 5792 Socket Thread 192.168.1.15 55182 140.82.118.4 13429
22:49:52 5792 Socket Thread 192.168.1.15 55184 140.82.118.4 13429
22:49:52 5792 Socket Thread 192.168.1.15 55186 140.82.118.4 13429
22:50:21 5792 Socket Thread 192.168.1.15 55188 140.82.118.4 13429
22:50:32 5792 Socket Thread 2a01:cb04:49a:9500:88ae:4748:4d9:5c3b 43036 0:0:4007:805::2016 13429
22:50:33 5792 Socket Thread 2a01:cb04:49a:9500:88ae:4748:4d9:5c3b 44340 0:0:4007:806::2001 13429