03-20-2013
Hi jlliagre!
First, thanks for responding!
So taking from your response,
The "iowait" and "swap" CPU state are items I should not worry about
I can use the vmstat "free" column for "Free" physical memory, but how do I test
for the total Physical memory?
I have checked and like the results from "swap -l". Thank you!
In the end, I don't want one single utility to do this. Or rather, once I understand how to get what I want I can build my script which will be the "one single utility" I use and can share.
Ultimately, the output needs to be:
Box Name, Mar-20-13,10:45:05,97.5%,10G,4473M,9083M,9083M,0.06, 0.05, 0.05
Where:
97.5% = CPU Idle [ This I still need * See below* ]
10G = Total phys memory [ This I can get from "vmstat 1 1" per your reply ]
4473M = Phys Memory in use [ This I still need ]
9083M = total Swap [ This and the next I can get from "swap -l" per your reply ]
9083M = Swap in us (this is a lab machine for design)
0.06, 0.05, 0.05 is the cpu load [This I can get from "prstat 1 1"]
Regarding the CPU Idle,
Top shows "97.5%"
where vmstat shows "83", being 83 percent.
Is this just an artifact of top not being accurate in a Solaris OS or is there something I am missing?
And on the "Phys Memory in use", how do I get that?
I am researching this, but came here when I found myself trying to read up on vmstat, prstat, kstat and several other things all at the same time. If I had one path, I could walk it myself. But I need direction on which to use or I'll be balancing on a toe each as I walk many paths rather than walking one with both feet
Thanks for your help.
Marc
---------- Post updated at 12:01 PM ---------- Previous update was at 11:06 AM ----------
An additional discovery I've made is that:
vmstat 1 1
gives a "free" of 5001808
where
kstat -n system_pages | grep availrmem
gives a "availrmem" of 1207874
So as I continue to research, I am finding that each of the roads I am walking give answers which appear similar but are vastly different
Marc
---------- Post updated at 04:43 PM ---------- Previous update was at 12:01 PM ----------
With help from you folks and my own research I found:
/usr/sbin/prtdiag | grep "Memory size" | awk '{print $3}'
gets me Phys memory size
/usr/bin/vmstat 1 1 | grep -v free | grep -v faults | awk '{print $5}'
gets me Phys Memory free
prstat 1 1 | grep load | awk '{print $8, $9, $10}'
gets: me the load averages
/usr/sbin/./swap -l
gets:me the swap size and free
/usr/bin/vmstat 1 1 | grep -v swap | awk '{print $22}'| sed '/^$/d'
gets me the CPU Idle
Thanks for the guidance!!!!
Marc
9 More Discussions You Might Find Interesting
1. SCO
Hi All,
I want to check memory details and other hardware details of my SCO machine. can someone please share the command to do that?
Thanks,
Am (2 Replies)
Discussion started by: am_yadav
2 Replies
2. Red Hat
Hi All,
URGENT - Please help me form a scipt for this:
I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server)
I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies
3. Shell Programming and Scripting
I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine.
for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies
4. Shell Programming and Scripting
Hi All..
Am new to Unix!!
Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp).
And also i have to transfer the input file from the local directory to Unix machine (Server)
Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies
5. Windows & DOS: Issues & Discussions
Hi,
I want to print machine details in windows.
In UNIX it is easily available by the command
uname -X
Is there any command like this in windows to get those details..
can anybody help me on this..
Thanks in advance.
~arup (1 Reply)
Discussion started by: arup1980
1 Replies
6. UNIX for Dummies Questions & Answers
I have scheduled couple of shell scripts to run using 'at' command.
The o/p of at -l is:
$ at -l
1320904800.a Thu Nov 10 01:00:00 2011
1320894000.a Wed Nov 9 22:00:00 2011
1320876000.a Wed Nov 9 17:00:00 2011
$ uname -a
SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Discussion started by: superparticle
2 Replies
7. UNIX for Advanced & Expert Users
Hi Am using unix Ksh
Am getting the problem while transferring zero size files through the script .
When i transfer zero size files from local machine to remote machine manually i can able to do it .
My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies
8. Linux
Hi,
Could you please help me with the below issue..
I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1).
I'm trying to connect to server from the client machine using ftp service.
I have installed vsftpd daemon on both the machines.
I'm getting... (4 Replies)
Discussion started by: raosr020
4 Replies
9. Red Hat
I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99
Source Destination was UP, with IP 192.168.1.15.
This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies
LEARN ABOUT MOJAVE
install-solaris
install-solaris(1M) install-solaris(1M)
NAME
install-solaris - install the Solaris operating system
SYNOPSIS
install-solaris
install-solaris invokes the Solaris Install program. Depending on graphical capability and available memory at the time of invocation,
install-solaris invokes either a text-based installer or a graphical installer.
The following minimum requirements for physical memory dictate which features are available during installation:
For SPARC machines:
128 MB
Minimum physical memory for all installation types
128 MB
Minimum physical memory required for windowing system
384 MB
Minimum physical memory required for graphical-based installation
For x86 machines:
256 MB
Minimum physical memory for all installation types
256 MB
Minimum physical memory required for windowing system
512 MB
Minimum physical memory required for graphical-based installation
In some cases, even if the minimum physical memory is present, available virtual memory after system startup can limit the number of fea-
tures available.
install-solaris exists only on the Solaris installation media (CD or DVD) and should be invoked only from there. Refer to the for more
details.
install-solaris allows installation of the operating system onto any standalone system. install-solaris loads the software available on the
installation media. Refer to the for disk space requirements.
Refer to the for more information on the various menus and selections.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcdrom (Solaris instal- |
| |lation media) |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
pkginfo(1), install(1M), pkgadd(1M), attributes(5)
It is advisable to exit install-solaris by means of the exit options in the install-solaris menus.
23 Sep 2005 install-solaris(1M)