51-series Admin Tools

E-mail communications from Pieter Boeykens (pieter.boeykens.pb@bayant.bayer.be):

I have some very useful tools to manage your 51-series I/A boxes. We use them to automate “System Inventory” & “System Admin (Management)” tasks.


Some (sysinfo) are in Sun “pkgadd” format and have to be installed using “pkgadd -d”.... Others like scsiinfo, diskmon, memconf are plain tar files with README/Installation instructions.

I made some minor changes so that it can be used with I/A. You can start it with “start_disktool”. Maybe you have to modify the export DISPLAY settings.

Good Luck

Pieter Boeykens.

System Inventory Tools

1) sysinfo


Michael A. Cooper
MagniComp Systems

$Id: README,v 1.41 1996/08/26 20:51:49 michaelc Exp $


sysinfo is a program which shows various pieces of information about the hardware and operating system software configuration of the host it’s run on. The original version was written to simply determine the model name of a system for use in /etc/motd. It also supported a few other pieces of information that were simple to obtain, but the method used to obtain the information on various different OS’s varied. The current version shows many different “general” bits of system information as well as fairly detailed information about system hardware devices (disk drives, frame buffers, tape drives, etc.), kernel variables, and system configuration information. A lot of the information sysinfo displays is difficult, if not impossible, to determine by normal OS commands and/or files after boot time on many OS’s.

Most of the OS specific information was determined by groveling /usr/include/{sys,machine,*dev}/*.h files, section (4) man pages, and reverse engineering the output from various commands like devinfo (SunOS) and using the trace(2) facility. Some of the network (netif) code was inspired by the sources to the 4.3BSD netstat and ifconfig commands.

Typical output of sysinfo:

 General Information

Host Name is             1AW512
Host Aliases is          loghost
Host Address(es) is
Host ID is               807c3608
Serial Number is         2155623944
Manufacturer is          Sun (Sun Microsystems)
System Model is          SPARCstation 5 Model 170
Main Memory is           128 MB
Virtual Memory is        112 MB
Number of CPUs is        1
CPU Type is              sparc
App Architecture is      sparc
Kernel Architecture is   sun4m
OS Name is               SunOS
OS Version is            5.4
Kernel Version is        SunOS Release 5.4 Version Generic_101945-29 [UNIX(R)
System V Release 4.0]
Boot Time is             Fri Sep 25 08:23:47 1998

 Kernel Information

Maximum number of processes for system is              266
Maximum number of processes per user is                2021
Maximum number of users (for system tables) is         126
Maximum number of BSD (/dev/ptyXX) pty's is            48
Maximum number of System V (/dev/pts/*) pty's is       48
Size of the virtual address cache is                   16384
Size of the inode table is                             2232
Size of the directory name lookup cache is             2232
Size of the quotas table is                            3286
STREAMS: Maximum number of pushes allowed is           9
STREAMS: Maximum message size is                       65536
STREAMS: Maximum size of ctl part of message is        1024
Maximum memory allowed in buffer cache is              0
Maximum global priority in sys class is                6488124
Has UFS driver is                                      TRUE
Has NFS driver is                                      TRUE
Has LOFS driver is                                     TRUE
Has TMPFS driver is                                    TRUE
Has SD driver is                                       TRUE
Has FD driver is                                       TRUE
Has NFSSERVER is                                       TRUE
Has IPCSEMAPHORE is                                    TRUE
Has IPCMESSAGE is                                      TRUE
Has IPCSHMEM is                                        TRUE

 SysConf Information

Max combined size of argv[] and envp[] is                    1048320
Max processes allowed to any UID is                          2021
Clock ticks per second is                                    100
Max simultaneous groups per user is                          16
Max open files per process is                                64
System memory page size is                                   4096
Job control supported is                                     TRUE
Savid ids (seteuid()) supported is                           TRUE
Version of POSIX.1 standard supported is                     199309
Version of the X/Open standard supported is                  3
Max log name is                                              8
Max password length is                                       8
Number of processors (CPUs) configured is                    1
Number of processors (CPUs) online is                        1
Total number of pages of physical memory is                  32768
Number of pages of physical memory not currently in use is   223
Max number of timer expiration overruns is                   2147483647
Max number of realtime signals is                            8
Max number of queued signals per process is                  32
Max number of timers per process is                          32
Supports File Synchronization is                             TRUE
Supports memory mapped files is                              TRUE
Supports process memory locking is                           TRUE
Supports range memory locking is                             TRUE
Supports memory protection is                                TRUE
Supports realtime signals is                                 TRUE
Supports syncronized I/O is                                  TRUE
Supports timers is                                           TRUE

 Device Information

SUNW,SPARCstation-5 is a "SUNW,501-3059"
    options is a "PROM Settings"
    openprom is a "Open Boot PROM" device
    iommu0 is a "I/O Memory Management Unit" system bus
        sbus0 is a "SBus" system bus
            cgsix0 is a "GX 8-bit Accelerated Color Graphics [cgsix]
(SUNW,501-2325)" frame buffer
            espdma is a "SCSI DMA" pseudo device
                esp0 is a "Generic SCSI" SCSI disk controller
                    c0t3d0 (sd3) is a "SUN2.1G" 2.0 GB disk drive
                    c0t6d0 (sd6) is a disk drive
            bpp is a "Sun Bidirectional Parallel Port"
            ledma is a "LANCE Ethernet DMA" pseudo device
                le0 is a "AMD Lance Am7990" 10Mb/sec Ethernet network interface
            le1 is a "AMD Lance Am7990 (SUNW,501-1450)" 10Mb/sec Ethernet
network interface
    obio0 is a "On Board I/O" system bus
        zs0 is a "Zilog 8530" serial communications chip
        zs1 is a "Zilog 8530" serial communications chip
            kbd is a "Sun Type-5 US PC" Keyboard
        eeprom is a "EEPROM (mk48t08)" device
        fd0 (rfd0c) is a Floppy disk drive
    cpu0 is a "170 MHz FMI,MB86907" CPU

2) SCSIinfo

scsiinfo displays information about SCSI devices attached to a given system. For all supported SCSI host adapters on a given system, scsiinfo reports SCSI transfer information for each detected SCSI device. In particular, when a target supports synchronous transfer, the negotiated maximum transfer rate (in MB/sec) is reported.

scsiinfo also supports querying SCSI disks for geometry and formatting information, and it can generate a format.dat entry based on these values. It supports querying many SCSI devices for vendor, product and revision information, in the style of Sun’s OpenBoot PROM’s probe-scsi and probe-scsi-all commands.

Typical output of scsiinfo:

# scsiinfo

esp0: sd3,0 tgt 3 lun 0:
        Synchronous(10.0MB/sec) Clean CanReconnect
        Non-removable Disk:     IBM      DCAS32160SUN2.1G S60B
esp0: sd6,0 tgt 6 lun 0:
        Synchronous(10.0MB/sec) Clean CanReconnect
        Removable CD-ROM:       TOSHIBA  XM5701TASUN12XCD 0997

# scsiinfo -r /dev/rdsk/c0t3d0s0
Vendor:                      IBM
Model:                       DCAS32160SUN2.1G
Device Type:                 Disk
Formatted Capacity:          4226725 sectors (2.00 GB)
Sector size:                 512 bytes
Physical Cylinders:          8188
Heads:                       3
Sectors per track (Avg.):    171
Tracks per zone:             24564
Alternate Sectors per zone:  0
Alternate Tracks per volume: 0
Rotational speed:            5400 rpm

# scsiinfo -F /dev/rdsk/c0t3d0s0

disk_type = "IBM DCAS32160SUN2.1G" \
        : ctlr = SCSI : fmt_time = 5 \
        : trks_zone = 24564 : atrks = 0  : asect = 0  \
        : ncyl = 8237 : acyl = 2 : pcyl = 8188 : nhead = 3 : nsect = 171 \
        : rpm = 5400 : bpt = 100548

partition = "IBM DCAS32160SUN2.1G" \
        : disk = "IBM DCAS32160SUN2.1G" : ctlr = SCSI \
        : 2 = 0, 4225581

3) memconf

memconf displays the current memory bank contents of the SUN box.

Typical output of memconf:

# memconf -P SS5

J0300 [0x00000000 - 0x01FFFFFF]: 32 MB
J0301 [0x02000000 - 0x03FFFFFF]: 32 MB
J0302 [0x04000000 - 0x05FFFFFF]: 32 MB
J0303 [0x06000000 - 0x07FFFFFF]: 32 MB
J0400 [0x08000000 - 0x09FFFFFF]: Empty
J0401 [0x0A000000 - 0x0BFFFFFF]: Empty
J0402 [0x0C000000 - 0x0DFFFFFF]: Empty
J0403 [0x0E000000 - 0x0FFFFFFF]: Empty

Disk Monitoring Tools

1) DiskTool

disktool is an XView program to monitor up to 64 filesystems simultaneously and alert you when a particular filesystem is low on space. disktool is set-up to “un-iconify” when a filesystem it is monitoring has reached its user-definable “critical threshold.” A unix command can also be initiated when this threshold is reached. The command and un-iconifying can be repeated every so many polls, configurable from the cmdline or from the Properties pop-up. The properties pop-up is obtained by selecting any gauge with the right mouse button. The middle mouse button has also been mapped to force a filesystem poll to update the displayed data.

disktool is a good sysadmin tool for monitoring diskfull situations to avoid datafile corruption.

This program is copyright © 1993,1994 Shaun Finn (sfinn@astro.ge.com) but please feel free to e-mail any suggestions for improvements or bugs.