Date created: 11/03/10 21:57:00. Last modified: 10/19/20 14:29:45

Connection Managing and Monitoring

One can monitor and manage connections through the UI in OS X with apps such as Network Utility, Activity Monitor, iStat and similar widgets but, over ssh for example the same results can be acheived with the following:

Interface details:


Which is similar to:

netstat -bi

Show routes:

netstat -nr (without -n for FQDN)

Show active connections per protocol:

netstat -p tcp (could be upd,icmp,igmp,ip...see /etc/protocols for more)

List Open Files with a grep to see their destinatio will show you which files are connected to which destinations:

/usr/sbin/lsof -i -P | grep ESTABLISHED

iftop is a great utility for seeing traffic in real time on a given interface. Below is a compile binary for Leopard:


Previous page: Break Key
Next page: Create AD Home Directories