Get Solaris System Information

You have a production Solaris box handed to you and wanted to check on basic system information. Surprise!!! Surprise!!! Here are some tips that hopefully could help UNIX Admins and alike to keep up into their sleeves.

Determining Whether a System Has 32-Bit or 64-Bit Solaris Capabilities Enabled

root@solaris# isainfo -v

How to Display Solaris Release Information

root@solaris# cat /etc/release

Displaying General System Information

root@solaris# showrev -a

Display installed patches on the System

root@solaris# showrev -p

Displaying a System’s Host ID Number

root@solaris# hostid

Displaying a System’s Product Name

root@solaris# prtconf -vb

Displaying a System’s Installed Memory

root@solaris# prtconf | grep Memory

Displaying the Date and Time

root@solaris# date

Displaying a System’s Processor Type

root@solaris# psrinfo -v

Display the locales currently installed on your system

root@solaris# localeadm -l

Set a System’s Date and Time Manually

root@solaris# date 0121173404 (mmddHHMM[[cc]yy])
Thu Jan 21 17:34:34 MST 2004

Edit message of the day

root@solaris# vi /etc/motd

Get the Disk information as well as soft/hard/transport errors

root@solaris# iostat -En

Get the OBP environment variables

root@solaris# eeprom


ok> printenv

Well, if you don’t like the system information you gathered and want to reconfigure the system, here it is:

root@solaris# sys-unconfig

There you have it! Some simple tips on getting and re-configuring the System Information on Solaris. Will update this list as we go along.

See you on my next note!!!