Date created: Wednesday, November 3, 2010 9:57:00 PM. Last modified: Monday, October 19, 2020 2:29:45 PM
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:
Previous page: Break Key
Next page: Create AD Home Directories