Monitoring the system

From Mac OS X Server FAQ

Jump to: navigation, search

Overview

This page will describe ways to get information about the current state of your Mac OS X Server.

Technical details

For now, just a command line grab bag:

fs_usage
  • The fs_usage utility presents an ongoing display of system call usage information pertaining to filesystem activity.
lsof
  • lsof can be used to find what processes are listening on specific TCP ports on your server. eg: sudo lsof -i tcp | grep LISTEN .
fstat
dscl
top
ps
who
last
serveradmin
service
sw_vers
system_profiler
scselect
vm_stat
netstat
  • netstat can be used to find established TCP/IP network connections to your server. eg. netstat -na | grep ESTABLISHED

Try using the man command followed by the command you want more information about.
eg: man top

External Links

link to a logging page

link to a network sniffing page

link to intrusion detection page

Personal tools
Toolbox