Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,121
Trophies:
1
The command "netstat -i" give the number of internet packets that is send and received per network intertface.
netstat -i

iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR
ens160 1500 0 31452931 0 3982 0 19043725 0 0 0

The tool "iptraf" give the number of internet packets per interface and per port.
This monitor show the number of internet packets send and received by port 22 so by ssh en sftp and also by port 443 so by Samba.

Is there a command that give the number of internet packets per port as simple output number that can be used in a bash script?
01-13-2021, 06:38 PM
Reply
Subscribe to this thread Subscribed Users  Add Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  error: can't find command 'hwmatch' ljackilawrhhhek 0 8 01-19-2021 08:18 AM
Last Post: ljackilawrhhhek
  [ubuntu] Failed to download repository information, check internet connection jsmelawson78 0 6 12-30-2020 01:08 AM
Last Post: jsmelawson78
  Ubuntu 20.04 LTS doesn't connect to internet mw7smartc 0 15 12-04-2020 06:02 AM
Last Post: mw7smartc
  remote access without port fordwarding? KevynB1947 0 13 11-09-2020 08:37 AM
Last Post: KevynB1947
  [server] Install GUI on server, no internet Chrome Dome 0 15 11-07-2020 05:44 PM
Last Post: Chrome Dome
  Ubuntu incorrectly reports no internet connection Fganly216 0 12 10-29-2020 01:17 PM
Last Post: Fganly216
  Ubuntu 20.04: Unknown nginx.conf change is preventing access from internet erikduop 0 20 10-22-2020 01:27 AM
Last Post: erikduop
  Wired internet loses connection every 24 hours candremcmillanz 0 20 10-07-2020 09:15 PM
Last Post: candremcmillanz
  Port forwarding unsuccessful on ubuntu 18.04 manastassian 0 16 10-01-2020 05:18 AM
Last Post: manastassian
  [ubuntu] Wireless problem internet extremly slow Shiney 0 20 09-28-2020 06:08 AM
Last Post: Shiney

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2021