The whatabout script has been written in Perl and is intended to
provide a common interface for retrieving various system information regarding
Sun Microsystems computers.
I started writing this tool february 2003. Unfortunately I only have a
Sun Ultra 1 for testing but try to
develop everything in such a way that it will be as independent as possible
from the platform. Feel free to send me some feedbacks on how well the
script performed for you! Bookmark this page and come back from time to time
to check the evolution.
The only things you need to use this tool is Perl, and the following
files. Note that you do not need to be root to run this tool. Download
whatabout.tar and read the README file.
The whatabout.pl file is just the main part calling the rest. The
sun-lib.pl is intended to be a library of subroutines for retrieving
system information. I will try to develop this library so that it can be used
separately for other scripts of your own. The print-lib.pl contains
functions for displaying the information found by sun-lib.pl subroutines
(see examples below).
bash$ ./whatabout.pl help
Usage: whatabout.pl [-v|-m|-l] ...
-v for verbose (detailed output).
-m for middle (display switch)
-l for a text output in LaTeX format (see http://www.miktex.org for Windows)
The following options are currently available (one is required):
- help - prints this help message
-
- all - uses all options at once
-
- system - prints main system information
- cpu - prints information relative to CPU(s)
- disk - prints disks information
- tape - prints tape-drive information (undergoing test, feedback appreciated)
- cdrom - prints information relative to the CD-Rom (if any)
- display - prints information relative to the current display
- archi - prints a tree corresponding to the hardware architecture
- aliases - prints aliases just as devalias would do at OBP level
- eeprom - prints variables just as printenv would do at OBP level
- fp - prints information regarding Flash PROM (OBP, POST, ...)
- scsi - prints SCSI controlers/buses information
- net - prints network information
- nic - prints Network Interface Card(s) information
- fs - prints file-system information (swap, etc...)
- board - prints board information (only Ex000 and Ex500 systems so far)
- patch - prints a sorted list of all patches found on the system