# Sun UNIX memconf utility

You are visitor number since March 25, 1996

This page was last on February 1, 2001

Register with Intellisync's "Mind-It" service to auto-magically be notified when this page is updated.

memconf - 01-Feb-2001 V1.37 - perl script that displays memory modules installed in a Sun system. Listed in the SunManagers FAQ.

    Usage: memconf [ -v | -D | -h ] [ explorer_dir ]
                     -v            verbose mode
                     -D            send results to memconf maintainer
                     -h            print help
                     explorer_dir  Sun Explorer output directory

memconf reports the size of each SIMM/DIMM memory module installed in a system. It also reports the system type and any empty memory sockets. In verbose mode, it also reports:

- banner name, model, and CPU/system frequencies
- address range and bank numbers for each module

If memconf does not completely recognize a system, then please send the output of '/usr/sbin/prtconf -pv' on Solaris 2.X or later, or '/usr/etc/devinfo -pv' on Solaris 1.X and '/usr/platform/`uname -i`/sbin/prtdiag -v' if available to tschmidt@micron.com so that memconf can be enhanced to properly recognize it. You can do this using the 'memconf -D' command. If the unrecognized system is a Sun clone, please also send any hardware documentation on the memory layout that you may have.

Maintained by Tom Schmidt (tschmidt@micron.com)

memconf is Y2K compliant. There are no date calls in the program. Your Operating System or Perl version may not be Y2K compliant.

Based on SunManagers SUMMARY by Howard Modell on 29-Jan-1997.

Requirements:

- Sun SPARC workstation or server running SunOS 4.1.X, Solaris 2.X or later.
- perl installed in your path. Perl V5.X is recommended, but perl V4.X will work. You can download the Perl package for Solaris from Sunfreeware.com if you don't already have it installed.

Downloading:

- You may download one of the following formats:

      memconf.gz  25372 bytes (GNU zip format)
      memconf.Z   43188 bytes (compress format)
      memconf    107027 bytes (uncompressed UNIX format)

  Use GNU "gunzip" or "uncompress" to uncompress the file. Your browser may automatically uncompress the file for you. If you download on a Windows PC, you may need to use "dos2unix" to convert the file.

- You may also want to download the UNIX man page here in nroff format.

Installation:

- Place memconf in a directory that is in your path, such as /usr/local/bin. You may need root privileges to place the script in a system-wide path.
- Make the script executable using "chmod 755 memconf"
- perl also needs to be installed in your path.

Sample output:

On a Sun SPARCstation 20 SX system:

    > memconf
    hostname: my-ss20
    Sun SPARCstation 20 MP (2 X SuperSPARC-II)
    socket J0201 has a 64MB SIMM
    socket J0303 has a 16MB SIMM
    socket J0202 has a 16MB SIMM
    socket J0301 has a 32MB SIMM
    socket J0305 has a 64MB SIMM
    socket J0203 has a 64MB SIMM
    socket J0302 has a 64MB SIMM
    sockets J0304/J0407 have a 4MB VSIMM installed for SX (CG14) graphics
    empty sockets: None
    total memory = 320MB

On a Sun Ultra 60 system:

    > memconf -v
    memconf:  V1.37 01-Feb-2001 http://netnow.micron.net/~tschmidt/unix.html
    hostname: my-ultra60
    banner:   Sun Ultra 60 UPA/PCI (2 X UltraSPARC-II 450MHz)
    model:    Ultra-60
    Solaris 7 5/99 s998s_u2SunServer_09 SPARC, 64-bit kernel, SunOS 5.7
    2 cpus, cpu freq: 450MHz, system freq: 113MHz
    CPU Units:
    ========================= CPUs =========================
                        Run   Ecache   CPU    CPU
    Brd  CPU   Module   MHz     MB    Impl.   Mask
    ---  ---  -------  -----  ------  ------  ----
     0     0     0      450     4.0   US-II    10.0
     0     2     2      450     4.0   US-II    10.0
    Memory Units:
    socket U0701 has a 128MB DIMM (bank 0, address 0x00000000-0x1fffffff)
    socket U0702 has a 128MB DIMM (bank 0, address 0x00000000-0x1fffffff)
    socket U0703 has a 128MB DIMM (bank 0, address 0x00000000-0x1fffffff)
    socket U0704 has a 128MB DIMM (bank 0, address 0x00000000-0x1fffffff)
    socket U0801 has a 128MB DIMM (bank 1, address 0x20000000-0x3fffffff)
    socket U0802 has a 128MB DIMM (bank 1, address 0x20000000-0x3fffffff)
    socket U0803 has a 128MB DIMM (bank 1, address 0x20000000-0x3fffffff)
    socket U0804 has a 128MB DIMM (bank 1, address 0x20000000-0x3fffffff)
    empty sockets: U0901 U0902 U0903 U0904 U1001 U1002 U1003 U1004
    total memory = 1024MB (1GB)

FAQ:

- Running memconf gives me this error: "/usr/bin/env: No such file or directory"
  - Cause: perl is not found in the path of your shell
  - Solution: Add the path where perl is installed to your shells path in .profile or .cshrc, or change the magic line of the memconf perl script to read "#!/usr/local/bin/perl" using the path to your perl install.
- You can download Sun Explorer from http://sunsolve.Sun.COM/diag/explorer/SUNWexplo.tar.Z To use this output, you must specify the directory with the extracted files, not the .uu or tar.gz file generated by Sun Explorer.

Tested to work on:

- sun4c Sun SS1, SS2, IPC, IPX, ELC with Open Boot PROM V2.X
- sun4m Sun 4/6x0, SS4, SS5, SS10, SS10SX, SS20, LX/ZX, Classic, Voyager
- sun4d Sun SPARCserver-1000, 1000E, SPARCcenter-2000, 2000E
- sun4u Sun Ultra 1, 2, 5, 10, 30, 60, 450
- sun4u Sun Ultra Enterprise 220R, 250, 450
- sun4u Sun Ultra Enterprise 3000, 3500, 4000/5000, 4500/5500, 6000, 6500
- sun4u1 Sun Ultra Enterprise 10000
- sun4u Sun SPARCengine Ultra AX, AXi, AXmp, AXmp+
- sun4u Sun SPARCengine Ultra CP 1500
- sun4u Sun Netra t1, t1120/1125, ft1800
- sun4u Sun Sun Blade 1000, Sun Blade 100
- sun4m Tatung COMPstation 5, 10, 20AL, 20S, 20SL, U2 and U60 clones
- sun4m transtec SPARCstation 20I clone
- sun4m Rave Axil-255 SPARCstation 5 clone
- sun4m Rave Axil-245, 311, and 320 clones (no verbose output)
- sun4u AXUS Ultra 250
- sun4u Cycle CycleQUAD
- Force Computers SPARC clones (no verbose output)
- Tadpole SPARCbook 3 (no verbose output)
- Auspex 7000/650 (no verbose output)
- Fujitsu S-4/10H and S-4/20H clones (no verbose output)
- Fujitsu GP7000 and GP7000F
- Fujitsu Siemens PrimePower 200, 400 and 800
- Twinhead TWINstation 5G and 20G
- Detects VSIMMs for SX graphics on SS10SX/SS20 (1st VSIMM only)
- Detects Prestoserve NVSIMMs on SS10/SS20/SS1000/SC2000

Untested systems that might work:

- sun4c Sun SS1+ with Open Boot PROM V2.X
- sun4m Tatung COMPstation 20A clone
- Fujitsu Siemens PrimePower 600
- May not work properly on Sun clones

Won't work on:

- sun4u Sun Ultra 80, Enterprise 420R, and Netra t1400/1405. Not enough information is provided about the memory in the prtconf and prtdiag outputs by the Open Boot PROM.
- Systems without /dev/openprom
- sun4c SS1, SS1+, SLC, IPC with Open Boot PROM V1.X (no 'memory' lines in devinfo/prtconf output)
- sun4 kernel architecture, and sun3 and older systems
- Perl 5.001 is known to have problems with hex number conversions

To Do:

- Suggest memory upgrade options in verbose mode
- Test on untested systems above, adding verbose to those that lack it
- Add sun4m Sun SPARCengine 5 and 20
- Add sun4u Sun SPARCengine Ultra 1, 2, 20, AXdp, and AXe
- Add SPARCengine CP 1200, 1400, 2000
- Add JavaEngine 1
- Add newer systems as they come out
- Recognize VME bus memory cards in 4/6x0
- Add cache memory information
- Add Sun clones

Revision History:

- 29-Jan-1997 - V1.0 - From SunManagers SUMMARY by Howard Modell
- 05-Feb-1997 - V1.1 - Ported to SunOS, added slot information, etc.
- 17-Aug-1998 - V1.2 - Added Ultra 30, Ultra Enterprise 4000/5000.
- 18-Aug-1998 - V1.2.1 - Added Ultra 5.
- 20-Aug-1998 - V1.3 - Fixed SS10SX. Added Ultra Enterprise 3000.
- 02-Sep-1998 - V1.3.1 - Cleanup Ultra 450 recognition.
- 15-Sep-1998 - V1.4 - Added verbose output for Sun 4/30 LX/ZX and Classic.
- 17-Sep-1998 - V1.5 - Added verbose output for SPARCserver 1000 and SPARCcenter 2000. Added untested Ultra 60 verbose output.
- 17-Sep-1998 - V1.5.1 - Fixed Ultra 450.
- 18-Sep-1998 - V1.6 - Fixed Ultra 60 and Enterprise 3000/4000/5000.
- 25-Sep-1998 - V1.7 - Use prtdiag on Enterprise systems to handle multiple system boards.
- 28-Sep-1998 - V1.8 - Fixed Enterprise systems running Solaris 2.6. Fixed Ultra 5/10. Changed calculation of top address range.
- 29-Sep-1998 - V1.9 - Added SS2000.
- 19-Oct-1998 - V1.9.1 - Fixed stacked module detection.
- 30-Oct-1998 - V1.9.2 - Sort modules by address range (fixes some stacked module detection).
- 04-Nov-1998 - V1.10 - Cleanup for perl4 backward compatibility. Enhanced Ultra 450 to handle interleaving. Added Ultra 250.
- 19-Nov-1998 - V1.11 - Added -h for help.
- 08-Dec-1998 - V1.11.1 - Tested OK on SPARCclassic and SS4.
- 14-Dec-1998 - V1.12 - Improved Ultra 5/10 memory detection.
- 29-Dec-1998 - V1.12.1 - Test OK on Enterprise 6000. Cleanup of output on Enterprise systems.
- 31-Dec-1998 - V1.12.2 - Test OK on Enterprise 4500/5500.
- 04-Jan-1999 - V1.12.3 - Cleanup of some minor perl warnings.
- 11-Jan-1999 - V1.12.4 - Solaris 7 tested OK on some systems, but not tested on Ultra 250, 450, Enterprise, nor SPARCcenter.
- 27-Jan-1999 - V1.12.5 - Added verbose output for untested Voyager S240.
- 28-Jan-1999 - V1.12.6 - Added UltraStation 10.
- 04-Feb-1999 - V1.13 - Added AXUS 250/450. Fixed Voyager S240.
- 11-Feb-1999 - V1.13.1 - Detect perl 5.001 bugs. Added exit status. Check for illegal memory stuffing in SS5 and Ultra 5/10.
- 15-Feb-1999 - V1.13.2 - Added verbose output for IPX. ELC and SLC untested.
- 22-Feb-1999 - V1.13.3 - Enhanced VSIMM detection.
- 12-Mar-1999 - V1.14 - Enhanced Ultra 250, AXUS 250/450. Report empty sockets in verbose mode for most systems. Solaris 7 tested OK on Ultra 250, 450.
- 15-Mar-1999 - V1.15 - Corrected and enhanced Ultra 5/10. Report CPU and system frequencies in verbose mode.
- 13-Apr-1999 - V1.15.1 - Always report empty sockets. Tested OK so far on Solaris 8 beta releases.
- 21-Apr-1999 - V1.15.2 - Tested OK on ELC running Solaris 2.X. Improved model recognition. Added Force Computers.
- 11-May-1999 - V1.15.3 - Added Prestoserve NVSIMM detection.
- 16-Jun-1999 - V1.15.4 - Tested OK on Solaris 7 Enterprise systems. Distinguish Ultra 5 from Ultra 10.
- 23-Jun-1999 - V1.16 - Added Ultra 80 and Enterprise 410 (untested).
- 24-Jun-1999 - V1.16.1 - Added Rave Axil-320 and Tatung SS5 and SS20 clones.
- 13-Jul-1999 - V1.17 - Added Premier-24 (SS10SX), Rave Axil-245 and Axil-311. Does not work on IPC running Solaris 2.X. Improve Ultra 5/10 distinction.
- 19-Jul-1999 - V1.18 - Added SPARCengine Ultra AX, AXi, AXmp. Does work on IPC with Open Boot PROM V2.X.
- 21-Jul-1999 - V1.18.1 - Updated Sun 4/6x0 recognition.
- 17-Aug-1999 - V1.18.2 - Force C locale so that prtdiag output is in English.
- 20-Sep-1999 - V1.18.3 - Add SunOS/Solaris version to verbose output. Improve Ultra 5/10 distinction.
- 24-Nov-1999 - V1.19 - Recognize 4GB and larger total memory. Added transtec SS20 and Axil-255 clones and Sun Netra t1. Updated for Enterprise 10000.
- 29-Nov-1999 - V1.19.1 - Added verbose output for AXUS 250.
- 08-Dec-1999 - V1.19.2 - Added Tadpole SPARCbook 3 and Auspex Netserver.
- 07-Jan-2000 - V1.20 - Updated Ultra 80 and Enterprise 420R detection. Not enough information is provided about the memory in their prtconf and prtdiag outputs to give an accurate evaluation of the memory installed. Fix for some Netra t1 256MB mezzanine boards. Detect unsupported memory sizes.
- 13-Jan-2000 - V1.20.1 - Fix detection of number of CPUs. Improve Ultra10/333MHz detection. Change 32MB SIMM detection on SS10 from an error to a warning since according to Sun, the 32MB SIMM is not supported, but it appears to work fine (perhaps an OBP rev issue?).
- 25-Jan-2000 - V1.21 - Fixed Ultra 30. Updated SPARCengine detection. Additional minor bug fixes.
- 28-Jan-2000 - V1.21.1 - Improve SPARCengine Ultra detection.
- 03-Feb-2000 - V1.22 - Added Enterprise 220R (untested). Fixed Ultra 30.
- 16-Feb-2000 - V1.23 - Update Ultra 30 interleave reporting. Update Ultra 5/10 detection. Update SPARCengine Ultra AXi.
- 23-Feb-2000 - V1.23.1 - Improved SS10 32MB SIMM compatibility check since 32MB SIMMs do work with OBP 2.19 and later. Tested OK on Tatung COMPstation 20S. Enhance NVSIMM detection.
- 24-Feb-2000 - V1.23.2 - Added Netra ft1800.
- 21-Mar-2000 - V1.24 - Report empty memory slots on Ultra Enterprise 3x00/4x00/5x00/6x00/10000 and SS1000/SC2000 systems.
- 04-Apr-2000 - V1.24.1 - Tested OK on Enterprise 220R. Fix for Netra t1 512MB mezzanine boards. Added CompuAdd SS-2 clone.
- 10-Apr-2000 - V1.24.2 - Added Ultra CP 1500.
- 18-Apr-2000 - V1.25 - Tested OK on Netra t1120. Improve detection of empty memory slots on Enterprise CPU boards. Improve CPU reporting in verbose mode. Improve Ultra AXi.
- 19-Apr-2000 - V1.25.1 - Bug fix for SPARCengine Ultra AXi with 8 DIMMs. Added memory interleave detection for Ultra 5/10.
- 24-Apr-2000 - V1.26 - Update 32MB SIMM test for OBP 2.14 SS10 systems. Added "-D" option to gather information on unrecognized systems and E-mail it to the memconf maintainer.
- 27-Apr-2000 - V1.26.1 - Updated SPARCengine UltraAXmp/AXmp+ (AXUS 450 and other clones use these motherboards).
- 02-May-2000 - V1.26.2 - Check for old SunOS 4.1.3_U1 kernel on SS5 with 32MB SIMMs.
- 11-May-2000 - V1.26.3 - Tested OK on SS1 with OBP 2.X.
- 17-May-2000 - V1.27 - Detect 32MB SIMMs on LX and Classic. Detect bad banner names.
- 01-Jun-2000 - V1.27.1 - Add Fujitsu SPARC clones.
- 07-Jun-2000 - V1.28 - Added SPARCengine UltraAXe.
- 06-Jul-2000 - V1.29 - Added dual bank DIMM detection for Ultra AXmp+. Improve Ultra 80 output for common stuffings.
- 08-Aug-2000 - V1.29.1 - Tested OK on Tatung COMPstation 20AL and Fujitsu S-4/10H. Improve OBP version check.
- 28-Aug-2000 - V1.30 - Fix 32MB SIMM detection on LX and Classic. Added Fujitsu GP7000F.
- 20-Sep-2000 - V1.30.1 - Added CycleQUAD. Improved AXmp+ detection.
- 25-Oct-2000 - V1.31 - Added Tatung COMPstation U60. Improved Fujitsu GP7000 and GP7000F detection. Added Twinhead TWINstation 5G. Generate an error if prtdiag does not report memory when it should.
- 06-Nov-2000 - V1.32 - Added Sun Blade 1000.
- 15-Nov-2000 - V1.33 - Added Perl version detection and COMPstation 10.
- 12-Dec-2000 - V1.34 - Add ability to read Sun Explorer output.
- 22-Jan-2001 - V1.35 - Improve 32MB SIMM detection on SS10 with OBP 2.X. Added Fujitsu Siemens PrimePower 200 and 400.
- 23-Jan-2001 - V1.35.1 - Detect empty memory slots on Fujitsu GP7000 and GP7000F and Fujitsu Siemens PrimePower 200 and 400.
- 24-Jan-2001 - V1.36 - Improve OBP version lookup. Added Sun Blade 100.
- 01-Feb-2001 - V1.37 - Improve Solaris release detection. Tested OK on Twinhead TWINstation 20G. Added Fujitsu Siemens PrimePower 800.

Comments or questions? E-mail me at tschmidt@micron.com

Copyright © 1996-2001 Tom Schmidt; All Rights Reserved

Back To Tom Schmidt's Sun UNIX utilities Page