Is there an existing tool for solaris/unix that keeps a history trail of the list of running processes. I'd like to be able to review backwards in time what processes were active/running.
I can create a cron job that just regularly logs the output of ps into files, but this is crude and over a large server farm seems inefficient and can create many files.
And I need full command arguments so it has to be /usr/ucb/ps auxww output, ideally with cpu times, state, rss, pid, ppid, zone information.
Also, if possible the output should be easy to parse–e.g. in a consistent delimited format or some other.
Best Answer
Use auditing.
Solaris Auditing (Overview)
A good blog article on Solaris auditing can be found here.