Sponsored Content
Operating Systems Solaris Question about details for the whole machine Post 302782971 by Marc G on Tuesday 19th of March 2013 04:42:13 PM
Old 03-19-2013
Question about details for the whole machine

Hi folks,

As I continue my self-torture [ >Smilie ], I've come on an interesting issue.
I now have a script that uses top on a Solaris box to gather performance data into a file for use in tracking over all performance.

And it even works 99.99% of the time.

But it glitches eventually and leaves a process still running and burning cpu cycles.

The unix admin who has been "helping me" just smiled as if he expected that and said I should use utilities which are native to Solaris.

Well, what I need from top are:
- the load averages
- the CPU Idle state data
- and the memory
from the displayed results below:
Code:
   last pid: 25033;  load avg:  0.11,  0.77,  0.59;  up 21+07:05:28       16:25:24
   104 processes: 103 sleeping, 1 on cpu
   CPU states: 96.6% idle,  1.5% user,  2.0% kernel,  0.0% iowait,  0.0% swap
   Kernel: 1181 ctxsw, 28 trap, 1072 intr, 1549 syscall, 26 flt
   Memory: 10G phys mem, 4408M free mem, 9083M total swap, 9083M free swap

Now I can get the load averages easy with:
# prstat 1 1 | grep load | awk '{print $8, $9, $10}'

Sadly, prstat only gives most of it's data 'per process' where I need amalgamated data for the entire box.(as top gives)

When I investigated getting the CPU and memory data from vmstat, I could find no method of getting the values for "iowait" or "swap". In my investigations, the man page says there should also be "wa" value which I do not get form my vmstat as shown:
Code:
# vmstat 1 1
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr s0 s1 s3 --   in   sy   cs us sy id
 3 0 0 11893120 5017848 7 46 1  0  0  0  0  0  2 -0  0  934 1029 1080 16  1 82

As for memory, the only values I see in vmstat are Swap and Free. Nothing about Physical memory, free or otherwise.

I investigated using sar, but our customer has it disabled and does not wish to enable it.

I am looking into my options, which are broadening as I look at things like "kstat", which i do not know how to use, and mpstat (using the -a flag). But this also does not get me a complete set of the data that top does.

On the basis that this is just a box following instructions, I am assuming there is another way to get what top does from a Solaris box and I am hoping that someone here can give me some direction in getting it?

I've even looked at the source for vmstat(vmstat.c) in order to see if I can figure out what it does[and no, I do not prog in c at all] and that led me to a bunch of ".h" files I'm exploring as I burn more and more work time.

Can anyone guide me to an answer for solaris?

Thanks and sorry for rambling.

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
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)
All times are GMT -4. The time now is 06:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy