Sponsored Content
Operating Systems Solaris Question about details for the whole machine Post 302783369 by Marc G on Wednesday 20th of March 2013 04:43:47 PM
Old 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

How to check memory details of a SCO UNIXWARE machine

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

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

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

shell script to copy files frm a linux machine to a windows machine using SCP

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

How to transfer files from unix machine to local machine using shell script?

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

How to know machine details in windows through cmd

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

at -l doesnt give details of the scheduled job. How to get the details?

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

FTP While transfering files to local machine to remote machine

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

Unable to connect to Server machine from a client machine using ftp service

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

iptables applied in local machine, can't ssh remote machine after chain changed to DROP

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
XSYSINFO(1x)							 Debian GNU/Linux						      XSYSINFO(1x)

NAME
xsysinfo - Display Linux kernel parameters in graphical form SYNOPSIS
xsysinfo [-help] [-update n] [-[no]title] [-[no]labels] [-[no]loadavg] [-[no]load] [-[no]mem] [-[no]swap] [-[no]smp] DESCRIPTION
Xsysinfo is an X application to display some Linux kernel parameters in graphical form. It is like a mix of top, free and xload with the difference that the values are shown in form of a horizontal bar. The displayed values are: CPU load average, CPU load, memory and swap sizes (details see below). OPTIONS
-update n Set update rate to n milli-seconds -title Show title string -notitle Don't show title string -labels Show gauge labels -nolabels Don't show gauge labels -loadavg Show CPU load average value -noloadavg Don't show CPU load average value -load Show CPU load value -noload Don't show CPU load value -smp Show separate SMP loads -nosmp Don't show separate SMP loads. -mem Show memory info -nomem Don't show memory info -swap Show swap info -noswap Don't show swap info -help Display options DISPLAY
Xsysinfo display the following values: CPU load average CPU load average between 0.000-8.000. The gauge's bar is subdivided into segments, where one segment represents a load value of 1.0. The bar's full length is automatically scaled, depending on the displayed value. CPU load percentage CPU load time to CPU idle time subdivided in three segments: user load, system load and nice load. On an SMP system the -smp option replaces the single total load meter with a separate meter for each processor. Memory The memory gauge's bar is subdivided into two segments with the amount of physical memory, which is used by processes on the left and physical memory used for the page and buffer cache on the right. The length of the whole bar, which is the sum of these two val- ues, shows the amount of physical memory currently used by the system. Swap The percentage of swap space used by the system to total amount of swap space. AUTHORS
Xsyinfo is written by Gabor Herr <herr@iti.informatik.th-darmstadt.de> and currently maintained by Ronald Wahl <ronald.wahl@informatik.tu- chemnitz.de>. This manual page was created by Roland Rosenfeld <roland@spinnaker.de> for the Debian GNU/Linux system (but may be used by others). Debian Project December 2005 XSYSINFO(1x)
All times are GMT -4. The time now is 03:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy