pcp(1)


NAME

   pcp, pcp-summary - run a command or summarize an installation

SYNOPSIS

   pcp [pcp options...]  pcp-command [command options...]
   pcp [-P] [-a archive] [-h host] [-n pmnsfile]

DESCRIPTION

   The pcp command is used in one of two modes.  By default, it summarizes
   the Performance Co-Pilot (PCP) installation on the  local  host.   This
   mode can also be used to summarize the installation from a remote host,
   or a historical installation from a set of  PCP  archives.   This  mode
   indirectly invokes the pcp-summary command (in the absence of any other
   requested command).

   Alternatively, a command can be passed to pcp to run, again possibly in
   the context of a remote host or set of historical archives.

COMMAND MODE

   When pcp is invoked with a command to run, it will search for the named
   command in $PCP_BINADM_DIR and also $HOME/.pcp/bin (these  are  usually
   scripts,  and  are  installed  with  a  "pcp-"  prefix).   This mode of
   operation allows system  performance  tools  to  be  implemented  using
   PMAPI(3)  services,  while  still preserving all of their usual command
   line options.  These options are thus (indirectly) augmented  with  the
   standard PCP option set, as described in PCPIntro(1).

   This  provides  a  convenient  mechanism for obtaining retrospective or
   remote monitoring capabilities while preserving the  behaviour  of  the
   system tools.

   For  example,  the  pcp-free(1)  utility can be invoked as follows, for
   recorded data from host munch:

   $ pcp -a $PCP_LOG_DIR/pmlogger/munch/20140317 -O 11:35:50am free -m
                total       used       free     shared    buffers     cached
   Mem:         23960      14554       9406          0        176       2137
   -/+ buffers/cache:      12240      11720
   Swap         12047          0      12047

   A complete list of the available and installed tools is provided  along
   with  the pcp(1) usage message, but some examples include: pcp-free(1),
   pcp-uptime(1) and pcp-numastat(1).

SUMMARY MODE

   The summary report includes: the OS version, a summary of the  hardware
   inventory,  the  local timezone, the PCP software version, the state of
   the pmcd(1) process and associated Performance  Metrics  Domain  Agents
   (PMDAs),   as  well  as  information  about  any  PCP  archive  loggers
   (pmlogger(1)) and PCP inference engines (pmie(1)) that are running.

   With no arguments, pcp reports on the local host, however the following
   options are accepted:

   -a archive
          Report  the  PCP  configuration  as  described in the set of PCP
          archive logs, archive, which is a comma-separated list of names,
          each  of which may be the base name of an archive or the name of
          a directory containing one or more archives.

   -h host
          Report the PCP configuration on host rather than the local host.

   -n pmnsfile
          Load an alternative Performance  Metrics  Name  Space  (pmns(5))
          from the file pmnsfile.

   -P     Display   pmie   performance   information  -  counts  of  rules
          evaluating to true, false, or  indeterminate,  as  well  as  the
          expected rate of rule calculation, for each pmie process running
          on the default host.  Refer to the individual metric  help  text
          for full details on these values.

   All  of  the displayed values are performance metric values and further
   information for each can be obtained using the command:

      $ pminfo -dtT metric

   The complete set of metrics required by pcp to produce  its  output  is
   contained in $PCP_VAR_DIR/config/pmlogconf/tools/pcp-summary.

FILES

   $HOME/.pcp/bin
             Per-user location for command scripts.
   $PCP_BINADM_DIR
             System location for installed command scripts.
   $PCP_VAR_DIR/config/pmlogconf/tools/pcp-summary
             pmlogconf(1)  configuration  file  for  collecting all of the
             metrics required by pcp.

PCP ENVIRONMENT

   Environment variables with the prefix PCP_ are used to parameterize the
   file  and  directory names used by PCP.  On each installation, the file
   /etc/pcp.conf contains the  local  values  for  these  variables.   The
   $PCP_CONF  variable may be used to specify an alternative configuration
   file, as described in pcp.conf(5).

SEE ALSO

   PCPIntro(1),   pcp-free(1),   pcp-numastat(1),   pcp-python(1),    pcp-
   uptime(1),  pcp-verify(1), pmcd(1), pmie(1), pmlogconf(1), pmlogger(1),
   pcp.conf(5) and pcp.env(5).

DIAGNOSTICS

   pcp will terminate with an exit status of 1 if pmcd on the target  host
   could  not  be reached or the set of archives could not be opened, or 2
   for any other error.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.