sysinfo
Usage:
/bin/sysinfo --help
/bin/sysinfo [-id|-cpu|-mem|-semaphore|-ports|-threads|-teams|-platform|-disable_cpu_sn]
if you run sysinfo with no arguments at all it will return information about your kernel, your cpu(s), your memory usage and counts of the current number of semaphores threads and teams free.
e.g. on my machine:
$ sysinfo
Kernel name: kernel_intel built on: May 26 2000 12:27:12 version 0xf4249
1 (unknown) revision 0621 running at 700MHz (ID: 0x00000000 0x00000000)
CPU #0: AuthenticAMD
type 0, family 6, model 2, stepping 1, features 0x0183f9ff
Extended information:
type 0, family 7, model 2, stepping 1, features 0xc1c3f9ff
Name: AMD Athlon(tm) Processor
instruction TLB: 16 entries, fully associative
data TLB : 24 entries, fully associative
L1I cache: 64 kbytes, 2-way set associative, 1 lines/tag, 64 bytes/line
L1D cache: 64 kbytes, 2-way set associative, 1 lines/tag, 64 bytes/line
L2 cache: 512 kbytes, 2-way set associative, 1 lines/tag, 64 bytes/line
151552 bytes free (used/max 66957312 / 67108864)
13789 semaphores free (used/max 2595 / 16384)
3957 threads free (used/max 139 / 4096)
1000 teams free (used/max 24 / 1024)
$
alternatively you can specify which indivualfactiods you want to know about in any combination
e.g.
$ sysinfo -platform
IntelArchitecture
$ sysinfo -ports
3906 ports free (used/max 190 / 4096)
$ sysinfo -ports -platform
3906 ports free (used/max 190 / 4096)
IntelArchitecture
$
not mentioned in the usage statement of sysinfo you can also give a "sysinfo -k" which returns the kernel info given when you call sysinfo with no arguments.