Solved

rstat() and perfmeter

Posted on 1998-12-14
4
330 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
  • 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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How VPC help preventing STP Loops 4 131
eigrp routing loop 5 60
winscp 000webhost.com 6 74
Client lost connection to AP controlled by Cisco WLC2504 3 40
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
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…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

860 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