Over the years I've written large amounts of software - most of which is highly specific to our own system and the way that it's set up. Some, however, may be more widely useful, and is mentioned here.
Solaris ought to give this information out of psrinfo, but it doesn't. So instead of:
% psrinfo -v Status of virtual processor 0 as of: 01/21/2005 09:56:15 on-line since 12/08/2004 15:24:10. The i386 processor operates at 2791 MHz, and has an i387 compatible floating point processor. Status of virtual processor 1 as of: 01/21/2005 09:56:15 on-line since 12/08/2004 15:24:15. The i386 processor operates at 2791 MHz, and has an i387 compatible floating point processor.
my cpuinfo script prints out:
% cpuinfo CPU 0: Intel(r) Xeon(tm) CPU 2.80GHz x86 (chipid 0x0 GenuineIntel family 15 model 2 step 7 clock 2791 MHz) CPU 1: Intel(r) Xeon(tm) CPU 2.80GHz x86 (chipid 0x3 GenuineIntel family 15 model 2 step 7 clock 2791 MHz)
(It's best to be running Solaris 10 - previous versions don't have as much information in the kstats to give you this.)
Solaris comes with a useful statistics gatherer called kstat. I've created a minimally modified script - netio - that will simply display the traffic (incoming and outgoing) on your network interfaces. See also Brendan Gregg's nicstat for a more advanced implementation of the same concept.
% netio 1 bge0: 32 k/s out, 68 k/s in bge0: 65 k/s out, 92 k/s in bge0: 41 k/s out, 52 k/s in bge0: 5052 k/s out, 246 k/s in bge0: 51 k/s out, 93 k/s in bge0: 26 k/s out, 43 k/s in bge0: 52 k/s out, 80 k/s in
JKstat is a java jni interface to kstat. Learn more.
A variant of rup, with simplified output, load thresholds for filtering, and netgroup support. Download.
In order to launch applications we need to know whether the user is using X11, whether they've set the DISPLAY variable correctly, and in some cases whether a certain extension or visual or color depth is available.
Originally we ran xdpyinfo and had a complicated script to parse the output. So I wrote 3 trivial helpers that simplified the process: xverify, xlsvisuals, and xlsextensions.