PMINFO(1) | General Commands Manual | PMINFO(1) |
pminfo - display information about performance metrics
pminfo [-dfFIlLmMstTvxz] [-a archive] [-b batchsize] [-c dmfile] [-h hostname] [-K spec] [-[n|N] pmnsfile] [-O time] [-Z timezone] [metricname | pmid | indom]...
pminfo displays various types of information about performance metrics available through the facilities of the Performance Co-Pilot (PCP).
Normally pminfo operates on the distributed Performance Metrics Name Space (PMNS), however if the -n/--namespace option is specified an alternative local PMNS is loaded from the file pmnsfile. The -N/--uniqnames option supports the same function as -n/--namespace, except for the handling of duplicate names for the same Performance Metric Identifier (PMID) in pmnsfile - duplicate names are allowed with -n/--namespace but they are not allowed with -N/--uniqnames.
The metrics of interest are named in the metricname arguments. If metricname is a non-leaf node in the PMNS, then pminfo will recursively descend the PMNS and report on all leaf nodes. If no metricname argument is given, the root of the PMNS is used.
If the metricname argument is in numeric dotted notation, it is interpreted as either a 3-dotted pmid (metric identifier - domain, cluster, item numbers) or a 2-dotted indom (instance domain identifier - domain, serial number). In the pmid case, a reverse PMID-to-name lookup is performed, and in the indom case, the instance domain is reported directly. This latter mode can be used to report the instance domain ``one line'' and long form help text summaries.
Unless directed to another host by the -h/--host option, by default pminfo will contact the Performance Metrics Collector Daemon (PMCD) on the local host. The connection to a PMCD is only required if pminfo requires distributed PMNS information, and/or meta-data describing metrics, and/or metric values, and/or help text.
The -a/--archive option causes pminfo to use the specified set of archives rather than connecting to a PMCD. The argument to -a/--archive 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.
The -L/--local-PMDA option causes pminfo to use a local context to collect metrics from PMDAs on the local host without PMCD. Only some metrics are available in this mode.
The -a/--archive, -h/--host and -L/--local-PMDA options are mutually exclusive.
The -b/--batch option may be used to define the maximum size of the group of metrics to be fetched in a single request for the -f/--fetch and -v/--verify options. The default value for batchsize is 128.
Other options control the specific information to be reported.
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).
PCPIntro(1), pmcd(1), pmchart(1), pmdumplog(1), pmprobe(1), pmrep(1), pmval(1), PMAPI(3), pmLookupLabels(3), pmLoadDerivedConfig(3), pmSpecLocalPMDA(3), pcp.conf(5), pcp.env(5) and pmns(5).
PCP | Performance Co-Pilot |