PMCLIENT(1)
hi bestie π you just opened up the General Commands Manual (that's section 1, the commands one) and honestly? you're about to have a really good time. sit down, grab a strawberry π, we're doing performance metrics.
πΈ NAME πΈ
pmclient, pmclient_fg β a simple performance metrics client. yes, simple, and yes, both of them, we're covering the whole squad π«Ά
β¨ SYNOPSIS β¨
pmclient [-PVz?] [-a archive] [-A align] [-D debug] [-h host] [-n pmnsfile] [-O origin] [-s samples] [-S starttime] [-t interval] [-T endtime] [-Z timezone]
pmclient_fg ...
note the way pmclient_fg just trails off into ... β that's canon, that's literally what the page says, don't come for me π
π¦ DESCRIPTION π¦
okay so. pmclient and pmclient_fg are simple clients that use the Performance Metrics Application Programming Interface β PMAPI, if you're nasty β to report some high-level system performance metrics. high-level. we're not doing the deep lore here, we're doing the vibe check β¨
The real value of these tools is as sample clients using the PMAPI(3) interfaces, and to this end the source code is included with the Performance Co-Pilot (PCP) package (see PCPIntro(1)), and is typically installed in /usr/share/pcp/demos/pmclient. so like... they're literally the tutorial. they're the demo. they're the "here, copy this" of the PCP world π
pmclient_fg differs from pmclient in that it uses the fetchgroup API extension to the PMAPI β see pmFetchGroup(3).
Normally pmclient operates on the distributed Performance Metrics Name Space (PMNS), however if the -n option is specified an alternative local PMNS is loaded from the file pmnsfile. switching up the whole namespace, iconic π
Unless directed to another host by the -h option, or to an archive by the -a option, pmclient will contact the Performance Metrics Collector Daemon (PMCD) on the local host to obtain the required information. The argument to -a 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.
β οΈ bestie listen. The-aand-hoptions are mutually exclusive. pick one. you cannot have both. it's giving "choose your fighter" π
By default, pmclient reports the time of day according to the local timezone on the system where pmclient is run. The -Z option changes the timezone to timezone in the format of the environment variable TZ as described in environ(7). The -z option changes the timezone to the local timezone at the host that is the source of the performance metrics, as identified via either the -h or -a options.
The output from pmclient is directed to standard output, and lists:
- Aggregate CPU utilization, in the range
0to1. π - If the system has more than 1 CPU, the ordinal number of the busiest CPU, in the range
0to.... π₯ - If the system has more than 1 CPU, the CPU utilization for the busiest CPU. π
- Real free memory in Mbytes. π§
- Aggregate physical disk I/O operations per second (IOPS). πΎ
- Load average over the last 1 minute and over the last 15 minutes. π
π OPTIONS π
The available command line options are β and yes, we're doing all of them, no skips, no skipping, we don't do that here:
-a archive,--archive=archiveβ Performance metric values are retrieved from the set of Performance Co-Pilot (PCP) archive files identified by the archive argument, 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. π¦-A align,--align=alignβ Force the initial sample to be aligned on the boundary of a natural time unit align. Refer toPCPIntro(1)for a complete description of the syntax for align. π-h host,--host=hostβ Fetch performance metrics frompmcd(1)on host, rather than from the default localhost. π-n pmnsfile,--namespace=pmnsfileβ Load an alternative Performance Metrics Name Space (PMNS(5)) from the file pmnsfile. ποΈ-O origin,--origin=originβ When reporting archived metrics, start reporting at origin within the time window (see-Sand-T). Refer toPCPIntro(1)for a complete description of the syntax for origin. β±οΈ-P,--pauseβ The default behavior for replaying a set of archives, is to replay at full speed. The-Poption may be used in conjunction with a set of archives, to request that the prevailing real-time delay be applied between samples (see-t) to effect a pause. βΈοΈ-s samples,--samples=samplesβ The samples argument defines the number of samples to be retrieved and reported. If samples is0or-sis not specified,pmclientwill sample and report continuously (in real time mode) or until the end of the set of PCP archives (in archive mode). π’-S starttime,--start=starttimeβ The-Soption may be used in conjunction with a set of archives to request that display start at the starttime from the start of the archive(s). Refer toPCPIntro(1)for a complete description of the syntax for starttime. π-t interval,--interval=intervalβ Set the reporting interval to something other than the default5seconds. The interval argument follows the syntax described inPCPIntro(1), and in the simplest form may be an unsigned integer (the implied units in this case are seconds). β³-T endtime,--finish=endtimeβ When reporting archived metrics, the report will be restricted to those records logged before or at endtime. Refer toPCPIntro(1)for a complete description of the syntax for endtime. π-V,--versionβ Display version number and exit. π-z,--hostzoneβ Use the local timezone of the host that is the source of the performance metrics, as identified by either the-hor the-aoptions. The default is to use the timezone of the local host. π-Z timezone,--timezone=timezoneβ Use timezone for the date and time. Timezone is in the format of the environment variableTZas described inenviron(7). π°οΈ-?,--helpβ Display usage message and exit. π
π FILES π
$PCP_DEMOS_DIR/pmclientβ source code, documentation, configuration files andMakefilewhen the PCP development package is installed. the whole kit and caboodle, fr fr π
π§ 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).
For environment variables affecting PCP tools, see pmGetOptions(3). iykyk π
π DEBUGGING OPTIONS π
The -D or --debug option enables the output of additional diagnostics on stderr to help triage problems, although the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. debug is a comma separated list of debugging options; use pmdbg(1) with the -l option to obtain a list of the available debugging options and their meaning.
π no cap, this one is for the devs. if it looks like gibberish to you, that's not a you problem, that's the design.
π SEE ALSO π
PCPIntro(1)pmcd(1)pmchart(1)pmdumptext(1)pmgenmap(1)pminfo(1)pmrep(1)pmstat(1)pmval(1)PMAPI(3)pmFetchGroup(3)pcp.conf(5)pcp.env(5)PMNS(5)
and that's the whole page bestie, you ate π
β¨ this lil man page came to you straight from the Performance Co-Pilot crew, shipped as part of the PCP project under the PMCLIENT(1) name β go forth and sample some metrics, you main character ππ
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2016,2019 Red Hat
- Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms