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

[email protected]# isainfo -v

How to Display Solaris Release Information

[email protected]# cat /etc/release

Displaying General System Information

[email protected]# showrev -a

Display installed patches on the System

[email protected]# showrev -p

Displaying a System’s Host ID Number

[email protected]# hostid

Displaying a System’s Product Name

[email protected]# prtconf -vb

Displaying a System’s Installed Memory

[email protected]# prtconf | grep Memory

Displaying the Date and Time

[email protected]# date

Displaying a System’s Processor Type

[email protected]# psrinfo -v

Display the locales currently installed on your system

[email protected]# localeadm -l

Set a System’s Date and Time Manually

[email protected]# date 0121173404 (mmddHHMM[[cc]yy])
Thu Jan 21 17:34:34 MST 2004

Edit message of the day

[email protected]# vi /etc/motd

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

[email protected]# iostat -En

Get the OBP environment variables

[email protected]# eeprom

or

ok> printenv

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

[email protected]# 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!!!