diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /src/pmclient/README | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'src/pmclient/README')
-rw-r--r-- | src/pmclient/README | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/pmclient/README b/src/pmclient/README new file mode 100644 index 0000000..a2d4aab --- /dev/null +++ b/src/pmclient/README @@ -0,0 +1,36 @@ +pmclient - a sample client using the PMAPI +========================================== + +pmclient is a sample client that uses the Performance Metrics +Application Programming Interface (PMAPI) to report some performance +data, collected from either a local host, a remote host, or a +Performance Co-Pilot (PCP) performance metrics archive log. + +The binary is shipped as part of pcp and is typically installed in +/usr/bin/pmclient. A pmclient(1) "man" page is shipped in the pcp +package also. + +The source is shipped as part of the pcp development packages and +is installed in $PCP_DEMOS_DIR/pmclient. If you have a C compiler +installed, the source and Makefile in this directory may be used to +create a functionally equivalent binary, by entering the command + + % make + +The source in pmclient.c demonstrates many of the PMAPI services, and +may be used as a template and style guide when creating your own PMAPI +clients. Note in particular, the use of ./pmnsmap.spec and the shipped +tool pmgenmap(1) to assist in the creation of arguments to the PMAPI +routines, and the manipulation of PMAPI data structures. + +To experiment with the archives, + + % rm -f mylog.* + % config=$PCP_DEMOS_DIR/pmclient/pmlogger.config + % cat $config + % pmlogger -c $config -s 6 mylog + +this will collect 30 seconds of performance data into the archive +stored as the files mylog.*. To play this back, + + % pmclient -a mylog |