|
| cool Statistics |
| | coolcommands: | 1313 | | Categories: | 82 | | Total queries: | 524278 | | Members: | 4288 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
meminfo.sh - script to find memory usage in Sun Solaris |
Description
Here is a small script to find memory usage in Sun Solaris when you don't have top installed:
#!/bin/sh
totalmb=`/usr/sbin/prtconf|/usr/bin/grep "Memory size"|/usr/bin/awk '{print $3}'` freekb=`/usr/bin/vmstat 1 2|/usr/bin/tail -1|/usr/bin/awk '{print $5}'` freemb=`/usr/bin/echo $freekb/1024 | /usr/bin/bc` usedmb=`/usr/bin/echo $totalmb-$freemb|/usr/bin/bc`
/usr/bin/echo "Total Memory : $totalmb MB" /usr/bin/echo "Used Memory : $usedmb MB" /usr/bin/echo "Free Memory : $freemb MB"
|
Example
meminfo.sh |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: newfs - how to create a filesystem on a metadevice in Solaris Volume Manager
Example: newfs -i 8192 /dev/md/rdsk/d0
[show me the details] |
coolcommand: lsvg.sg - script to summarize volume group usage on an IBM AIX server
Example: lsvg.sh
[show me the details] |
coolcommand: meminfo.sh - script to find memory usage in Sun Solaris
Example: meminfo.sh
[show me the details] |
coolcommand: diskinfo - to read a disk label in HP/UX
Example: /etc/diskinfo /dev/rdsk/c0t0d0
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1138 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 13 |
Top 5 Searches
|
| Category Solaris | 42738 |
| Category AIX | 38092 |
| Category General UNIX | 34294 |
| solaris | 20874 |
| aix | 19395 |
|
|
|
|