The proctool that everyone has mentioned has both binary and source code for several different versions of Solaris.I run it on 2.6 and 7 boxes and it works very nicely. The binaries install into /usr/local/bin. check out www.sunfreeware.com. They have some cool tools there.