PMDUMPTEXT(1) | General Commands Manual | PMDUMPTEXT(1) |
pmdumptext - dump performance metrics to an ASCII table
pmdumptext [-CFGHilmMNoruXz] [-A align] [-a archive[,archive,...]] [-c config] [-d delimiter] [-f format] [-h host] [-n pmnsfile] [-O offset] [-P precision] [-R lines] [-s sample] [-S starttime] [-t interval] [-T endtime] [-U string] [-w width] [-Z timezone] [metric ...]
pmdumptext outputs the values of performance metrics collected live or from a set of Performance Co-Pilot (PCP) archives. By default, the metric values are displayed in tab separated columns, prefixed by a timestamp.
Unless directed to another host by the -h option, or to one or more sets of archives by the -a option, pmdumptext will contact pmcd(1) on the local host to obtain the required information.
pmdumptext may be run in interactive mode with the -i option which displays the values in equal width columns. Without this option, no attempt is made to line up any values allowing the output to be easily parsed by other applications.
The format of the output can be further controlled by changing the precision of the values with -P, the width of the columns with -w, and the format of the values with the -G and -F options for the shortest of scientific or fixed digits, and a fixed width format, respectively.
The metrics to be dumped can be listed on the command line, in a config file, or piped to pmdumptext on stdin. A metric consists of an optional source (host or archive), the metric name, and an optional instance list immediately after the name. A colon is used to separate a host name from the metric, and a forward slash (``/'') to separate an archive name from the metric. Instances are enclosed in square brackets and a comma is used between each instance if more than one is stated. For example, some legal metrics are:
kernel.all.cpu.idle myhost:kernel.all.cpu.idle[cpu0,cpu3] /path/to/myarchive/kernel.all.cpu.idle[cpu1]
The format of a metric is further described in PCPIntro(1). A normalization value may optionally follow a metric name in a config file or on stdin. The metric value will be scaled by this value. For example, if the file system ``/dev/root'' has a capacity of 1965437 bytes, then the percentage of the file system that is used could be dumped with this config:
filesys.used[/dev/root] 19654.37
A normalization value may not be used with metrics specified as command line arguments.
A metric name is not required to be a leaf node in the Performance Metrics Name Space (PMNS), except when one or more instances are specified. For example, to dump all file system metrics, only filesys is required to dump filesys.capacity, filesys.used, filesys.free etc.
The command line options -A, -O, -S and -T control the alignment, offset, start and end time when visualizing metrics from archives. These options are common to most Performance Co-Pilot tools and are fully described in PCPIntro(1).
The other available options are:
pmdumptext supports the dumping of metrics from multiple hosts or set of archives. The metrics listed on the command line or in the config file may have no specific source or come from different sources.
However, restrictions apply when archives are specified on the command line (-a) and/or in the configuration file. Firstly, there may be only one set of archives for any one host. Secondly, the hosts of any metrics with host sources must correspond to the host of a set of archives, either on the command line or previously as the source of another metric.
The options -a and -h may not be used together.
All metrics that have the semantics of counters are automatically converted to rates over the sample time interval. In interactive mode, pmdumptext will also change the units of some metrics so that they are easier to comprehend:
o To examine the load on two hosts foo and bar, simultaneously:
$ pmdumptext -il 'foo:kernel.all.load[1]' 'bar:kernel.all.load[1]'
Source foo bar Wed Jul 30 11:37:53 0.309 0.409 Wed Jul 30 11:37:54 0.309 0.409 Wed Jul 30 11:37:55 0.309 0.409
o To output the memory utilization on a remote host called bong with a simpler timestamp:
$ pmdumptext -imu -h bong -f '%H:%M:%S' mem.util
Metric kernel fs_ctl _dirty _clean free user
Units b b b b b b 09:32:28 8.98M 0.97M 0.00 3.90M 7.13M 46.13M 09:32:29 8.99M 0.98M 0.00 5.71M 5.39M 46.03M 09:32:30 8.99M 1.07M 0.00 5.81M 4.55M 46.69M 09:32:31 9.03M 1.16M 0.00 6.45M 3.48M 47.00M 09:32:32 9.09M 1.18M 20.48K 6.23M 3.29M 47.30M
o To dump all metrics collected in an archive at a 30 second interval to a file for processing by another tool:
$ pminfo -a archive | pmdumptext -t 30s -m -a archive > outfile
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).
pmchart(1), pmtime(1), PCPIntro(1), pmcd(1), pmlogger(1), pmlogextract(1), pmrep(1), pmval(1), PMAPI(3), strftime(3) and environ(7).
SGI | Performance Co-Pilot |