Wednesday, December 15, 2010

System Information in Solaris

1. To view the timezone:

 # grep '^TZ' /etc/TIMEZONE

2. To change the timezone :

a. Check for the available timezones :
# cat /usr/share/lib/zoneinfo

b. Set the timezone by modifying the TZ= line in /etc/TIMEZONE file

c. Reboot the machine :
# shutdown -y -i 0

3. To display processor information :
# psrinfo -v

4. To enable a processor of id 0 :
# psradm -f 0

5. To enable it :
# psradm -n 0

6. To display RAM size :
# prtconf | grep Memory

7. To display processor bits :
# isainfo -bv

8. To display kernel bits :
# isainfo -kv

9. To determine the current boot device :

a. Find the boot path of the device
# prtconf -vp | grep bootpath
bootpath: '/pci@1f,700000/scsi@2/disk@0,0:a'

b. Find the device name using the boot path (replace 'disk' with 'sd')
# ls -l /dev/dsk | grep "/pci@1f,700000/scsi@2/sd@0,0:a"
lrwxrwxrwx 1 root root 43 Dec 13 2006 c1t1d0s0 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:a

10. To display the values of environment values :
# env

11. To find the architecture of the server
# arch -k

returns sun4u in Ultra 5 System and sun4m in SPARC system.

12. To display general system information :
# showrev -a

13. To display host id :
# hostid

14. To display the solaris release version details :
# cat /etc/release

15. To display system name and model :
# prtconf -b

16. To display system name, model, prom version :
# prtconf -vb

17. To dispaly the currently installed locales :
# localeadm -l

18. To determine if a locale is installed in the system :
# localeadm -q ja

19. To install a locale :
# localeadm -a ja -d /mnt/install/latest/Solaris/Product

20. To remove an installed locale :
# localeadm -r ja

No comments:

Post a Comment