Wednesday, May 26, 2010

Useful Solaris Commands

1. Display system information
#uname –a

2. Diplay processor information
#psrinfo –v

3.Display hostname
#hostname
#cat /etc/hosts

4.Dispaly domain name
#domainname
#cat /etc/defaultdomain

5. Display installed memory configuration

#prtconf | grep memory

6.To get installed Network card status
#dladm show-dev

7. Display Routing table information
#netstat –nr

8. Display virtual memory information
#swap –l
#swap –s

9. Display Disks error information
#iostat –E

10. Diplay memory status
#vmstat –p

11. Display interrupts status
#vmstat –ip

12. Dispaly Disk usage information
#df –hk

13. Dispaly system events since last reboot
#vmstat –s

14. Display swapping statistics
#vmstat –S

15. Display cache flushing statistics
#vmstat –c

16. To check buffer activities
#sar -b

17. To check system call activities
#sar –c

18.To check unused memory statistics
#sar –r

19.To check CPU utilization
#sar -u

20.Dispaly OBP version
#prtconf -v

21.Display installed packages
#showrev
#pkginfo

22.To get HBA card details
#fcinfo hba-port
#luxadm -e

23.To get running process status
#prstat
#ps -ef

24.To get hardware details
#prtdiag

No comments: