Connection Managing and Monitoring

Obviously you can monitor and manage connections through the UI in OS X with apps such as Network Utility and Activity Monitor, iStat and similar widgets but over ssh for example the same results can be acheived, I find, 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. I have compiled it on Leopard and the binary seems to work just great for me keeping it on my USB pen:

http://www.jamesbensley.co.cc/uploads/mactacular/iftop


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