Date created: 11/03/10 21:57:00. Last modified: 03/04/19 08:25:49

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:

ifconfig

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:

/uploads/mactacular/iftop


Previous page: .DS_Store Files
Next page: Create AD Home Directories