Get detailed Solaris memory information with prtdiag

Home -> UNIX -> Solaris -> System administration

24163 views

From the computer of: qmchenry (339 recipes)
Created: Nov 15, 2005


2 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

A simple command will provide detailed information about the specific memory configuration of a Sun server, information such as the sizes and locations of memory banks. This can prevent cracking open the case and the associated downtime.

The [b]prtdiag[b] command displays useful information about the processors, IO devices, and memory attached to the system. The only trick is finding the program. It lives under the /usr/platform directory in a subdirectory corresponding to the hardware platform on which it is running. If you change directory to /usr/platform and look at the directory listing, you'll see a product catalog of Sun hardware and some generic platform types (like sun4u). Identify the platform you are on (uname -i will work nicely), change into that directory, and then into the sbin subdirectory there. For example, on a Sun V210, the path would be /usr/platform/SUNW,Sun-Fire-V210/sbin. Run the command as ./prtdiag (piping it through more wouldn't hurt). Here is a snippet of output related to memory:

Bank Table:
-------------------------------------------------------
           Physical Location
ID       ControllerID  GroupID   Size   Interleave Way
-------------------------------------------------------
0        0             0         1GB        0
16       1             0         1GB        0


In this system, two banks of memory are present, each 1GB in size. If you are tasked to determine what is needed to upgrade the memory in a Sun box, you have what you need. The output of uname -i and the current memory config.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




2 Recipe comments: View comments

Get detailed Solaris memory information with prtdiag by Anonymous
Re: Get detailed Solaris memory information with prtdiag by xyz



Related recipes:

  Solaris: list detailed package information with pkginfo
  Monitor Solaris system load: understanding vmstat
  Solaris: list installed packages with pkginfo
  Display Solaris system configuration with prtconf
  Solaris: Generate a core dump from a running process with gcore
  Change BootPROM settings from the Solaris command line
  Validate information from a Solaris flash archive
  Change Solaris DNS client settings
  Disable a CPU in Solaris using psradm
  Solaris 10: shutdown or stop a zone

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.