Solved

rstat() and perfmeter

Posted on 1998-12-14
4
333 Views
Last Modified: 2013-12-23
Does perfmeter (Solaris-openwin) use rstat()?
I need some data like perfmeter, how could I get it from rstat()? Is there another way to get perfomance status of host?
0
Comment
Question by:No00
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Expert Comment

by:rdelfino
ID: 1582715

It probably uses rstat (chances are 99%).

try this:

statstime st;
if (rstat("yourhost", &st) != RPC_SUCCESS)
{
    /* error . . .*/
}
else
{
printf("Load  average %f %f %f,
 (double) st.avenrun[0]/FSCALE,
 (double) st.avenrun[1]/FSCALE,
 (double) st.avenrun[2]/FSCALE);
}

There's many data on statstime struct. Try looking
at the <rpcsvc/rstat.h> file to figure out what each field mean.

I hope it helps

Reginaldo

0
 

Author Comment

by:No00
ID: 1582716
Thanks rdelfino!
But rstat.h doesn't tell me how to evalute %cpu, %packets, %page,
etc.
0
 
LVL 22

Accepted Solution

by:
blu earned 50 total points
ID: 1582717
It does use rstat.

%CPU is the percentage of the time the cpu was in user or system
state, versus the idle state.

I don't see any %packets, or %page, the packets and page
numbers are the total number of packets or pages in the interval.

0
 
LVL 2

Expert Comment

by:rdelfino
ID: 1582718
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question