Score:0

get tcp and udp traffic (separate) from the command line, not continuous

us flag

I need to find a way to, with a single command, show network traffic by total IP, TCP, UDP. I will then parse the output and send the results to a 3rd party network monitoring tool.

I'm not interested in traffic per socket, process, etc., not interested in peeking into the packets, I just want something like I get out of a simple dstat command:

dstat -n 1 2

this gives total IP traffic.
I want this, plus a breakdown into total TCP and total UDP traffic during the same interval.

ANY thoughts?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.