Monitoring processes in Solaris 8
I am running Solaris 8 on sparc hardware. I want to be able to monitor the start and end times of processes on the box. Is there a log somewhere that records that, or a utility that can be run to gather stats?

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

The PS command is probably the most general tool to determine process information. It gives information such as PID (process ID), UID (user ID), priority, control terminal, memory use, CPU time and current status. One can also use the timex command to time processes. This command will give you information on how the command is executed; the elapsed time, user time and system time, reported in seconds. Process accounting data for the command and all its children can also be listed or summarized.

Additionally, the information in the /usr/proc/bin directory contains process tools that can be used to display detailed information about processes, in /proc, which is the process file system (procfs). It stores images of active processes by PID number. The ptime command may be what you are looking for. Do a man on proc for more info on the tools available to you. Good luck!!

More information: Here's a tip on using the PS command.

This was first published in January 2005