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 -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