The metrics of interest are named in the metricname arguments. If metricname is a non-leaf node in the Performance Metrics Name Space ( pmns (5)), then pmprobe will recursively descend the PMNS and report on all leaf nodes. If no metricname argument is given, the root of the namespace is used.
This recursive expansion of the PMNS can be inhibited by the -F (go faster) option, which reduces the number of roundtrips to pmcd (1) when the metricname arguments are known to be leaf nodes ahead of time.
The output format is spartan and intended for use in wrapper scripts creating configuration files for other PCP tools. By default, there is one line of output per metric, with the metric name followed by a count of the number of available values. Error conditions are encoded as a negative value count (as per the PMAPI (3) protocols, but may be decoded using pmerr (1)) and followed by a textual description of the error.
Unless directed to another host by the -h option, pmprobe will contact the Performance Metrics Collector Daemon (PMCD) on the local host.
The -a option causes pmprobe to use the specified set of archives rather than connecting to a PMCD. The argument 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 -a and -h 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 -v/--values option. This batching is also applied to the pmLookupName (3) request that pmprobe calls with the list of leaf metric names, to avoid exceeding the maximum PDU length supported by pmcd (1) for client requests. This can be important for pmlogconf (1), which uses pmprobe to enumerate the set of metrics to be logged by pmlogger (1). The default value for batchsize is 128. This option is useful to avoid limitations on PDU request sizes and also to stagger fetches, which may otherwise timeout if pmcd (1) or a PMDA is slow to respond, particularly if a large number of metrics are probed.
The -L option causes pmprobe 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 , -h and -L options are mutually exclusive.
Normally pmprobe operates on the distributed Performance Metrics Name Space (PMNS), however, if the -n option is specified an alternative local PMNS file is loaded from the file pmnsfile .
Other options control the output of additional information when one or more values is available.
The -v option is mutually exclusive with either the -I or -i options.
$ pmprobe disk.dev disk.dev.read 2 disk.dev.write 2 disk.dev.total 2 disk.dev.blkread 2 disk.dev.blkwrite 2 disk.dev.blktotal 2 disk.dev.active 2 disk.dev.response 2 $ pmprobe -I disk.dev.read disk.dev.write disk.all.total disk.dev.read 2 "dks0d1" "dks0d2" disk.dev.write 2 "dks0d1" "dks0d2" disk.all.total 1 PM_IN_NULL $ pmprobe -v pmcd.numagents pmcd.version pmcd.control.timeout pmcd.numagents 1 9 pmcd.version 1 "2.0 beta-1" pmcd.control.timeout 1 5 $ pmprobe -v disk.dev.total disk.all.total disk.dev.total -1012 Unknown metric name disk.all.total 1 4992466