pcp
[Top] [All Lists]

Re: PCP versions of console tools - Next Steps

To: Ryan Doyle <ryan@xxxxxxxxxxxx>, Ryan Doyle <ryan.doy@xxxxxxxxx>, pcp@xxxxxxxxxxx
Subject: Re: PCP versions of console tools - Next Steps
From: Sitaram Shelke <sitaramshelke@xxxxxxxxx>
Date: Sun, 8 May 2016 15:47:10 +0530
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=s6DrSUiHhKOYeVovztxCfOdp/9suCreNZPRiCZEZPlw=; b=rTPpONMtWOHHA8WkYC5HbrMF19gCeDrQ4wNVCb0AEQcciqdZKMNOtRZGeclDEOBnTk Eg323vrE24UqDklBC0DK8peJE5K3qUVa/Fp92rzyjzWWteFt/SZZD87iPDhcCoDPZrRK eeCUK+V8V+4I3S4+LP8sTlcIG+jcx99r/jU2Zaxgwt8Ft0Wv2rVUx1wNQHODMFWQtLPB tby7RAyU1JwwaUkmMVlouBw7i3eXwdaJbeAUf/rAPt7fjGHWwgW5ZrrBS7dX1DZ0Bh3R uTr0SgwNsiKkGeCqDuqSpjmbfB7uz//Sm55O+9X7r2PR/Vj6NqC6QS/07tOPbRQujuyn 9Lgw==
In-reply-to: <572F065E.20601@xxxxxxxxxxxx>
References: <CAHnM1zzTfNgt4Hsgt_Pgq7M-yz+ewd_FehB+QMxixE1MFfKOvA@xxxxxxxxxxxxxx> <572F065E.20601@xxxxxxxxxxxx>

That's weird, I've been sending to the mailing list as well as sending
to you directly. Have you been receiving other emails from the mailing
list? If we continue to have trouble I might just switch over to using
my GMail account.
Yes, I have been receiving all other mails on the mailing list as usual. But I think it is all right now. I will anyway send the mail on mailing list as well as your both mail ids.

Â
Sounds good. I'd suggest starting with the Python version of pmapi
instead of the C pmpai.h version. It's most likely what we will want to
use for writing a PCP-variant pidstat. Have a look at
'src/pcp/uptime/pcp-uptime.py' as a starting point.

If you've already had a look at the C pmapi.h thats great - what you've
learned in that applies pretty much 1-to-1 for the Python pmapi.
yes, I looked at the sample pmclient.c and I understood the flow, now I will take a look at pcp-uptime.py and try to write a python version for disk.all.read.

For the first task of printing out 'disk.all.read', are you able to put
the code up somewhere on-line that we can check out?
I will put my code at

We'll have a chat again about pidstat once you've had a chance to play
with pmapi.
Sure.Â

Regards,
Sitaram
<Prev in Thread] Current Thread [Next in Thread>