monitoring network traffic from terminal - 09/29/15 07:16 PM
I would like some way to have a script that can run (continuously or periodically) on some computers, monitoring total network traffic, so it can alert me when a specific computer is going off the deep end for some reason. I've done a fair amount of digging and haven't been able to find a tool to do this.
nettop works well to view live traffic but as far as I can tell is impossible to get to work from inside a script. (auto updating, no single pass output, uses ansi cursor movement extensively, modified terminal settings)
netstat -I en0 -b was also suggested but I ran it and copied in a 3gb file and didn't see it hardly move.
Anyone know how to observe traffic levels in terminal?
nettop works well to view live traffic but as far as I can tell is impossible to get to work from inside a script. (auto updating, no single pass output, uses ansi cursor movement extensively, modified terminal settings)
netstat -I en0 -b was also suggested but I ran it and copied in a 3gb file and didn't see it hardly move.
Anyone know how to observe traffic levels in terminal?