Basic commands to check system statistics |
Thursday, June 26, 2008 |
Solaris: =========
$ /usr/sbin/prtconf |grep -i "Memory size" $ swap -s $ df -k $ /usr/local/bin/top $ vmstat 5 100 $ sar -u 2 100 $ iostat -D 2 100 $ mpstat 5 100
Prtconf command will show how much Physical Memory
Swap command will provide us with the usage of swap space including the RAM.
Df command will indicate how much space is free in each mount point and also provides information about swap space(s).
Top command wil provide the above information plus information about top CPU consuming processes, CPU usage in the system, etc.
Vmstat will provide information about process run queue, memory usage, paging and swapping and CPU % usage in the server.
Iostat provides IO usage by Disk, CPU % usage, etc. depending on the options used.
Mpstat will provide CPU usage stats for a Solaris server with 1 or more CPUs. So, the below OS commands also will give the same output related to this command outputs.
HP-Unix 11.0: ============
$ grep Physical /var/adm/syslog/syslog.log $ df -k $ sar -w 2 100 $ sar -u 2 100 $ /bin/top $ vmstat -n 5 100 $ iostat 2 100 $ top
AIX: =======
$ /usr/sbin/lsattr -E -l sys0 -a realmem $ /usr/sbin/lsps -s $ vmstat 5 100 $ iostat 2 100 $ /usr/local/bin/top # May not be installed by default in the server
Linux ======
$ dmesg | grep Memory $ vmstat 5 100 $ /usr/bin/top |
posted by Senthil Kumaran @ 3:18 AM |
|
|