'\"macro stdmacro .\" .\" Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. .\" .\" This program is free software; you can redistribute it and/or modify it .\" under the terms of the GNU General Public License as published by the .\" Free Software Foundation; either version 2 of the License, or (at your .\" option) any later version. .\" .\" This program is distributed in the hope that it will be useful, but .\" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY .\" or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License .\" for more details. .\" .\" .TH PMIE2COL 1 "PCP" "Performance Co-Pilot" .SH NAME \f3pmie2col\f1 \- convert pmie output to multi-column format .SH SYNOPSIS \f3pmie2col\f1 [\f3\-?\f1] [\f3\-d\f1 \f2delimiter\f1] [\f3\-p\f1 \f2precision\f1] [\f3\-w\f1 \f2width\f1] .SH DESCRIPTION .de EX .in +0.5i .ie t .ft CB .el .ft B .ie t .sp .5v .el .sp .ta \\w' 'u*8 .nf .. .de EE .fi .ie t .sp .5v .el .sp .ft R .in .. .B pmie2col is a simple tool that converts output from .BR pmie (1) into regular column format. Each column is 7 characters wide (by default, may be changed with the .B \-w option) with a single space between columns. That single space can be substituted with an alternate delimiter using the .B \-d option (this is useful for importing the data into a spreadsheet, for example). .PP The precision of the tabulated values from .B pmie can be specified with the .B \-p option (default is 2 decimal places). This option can and will override any width setting in order to present the requested precision. .PP The .BR pmie (1) configuration must follow these rules: .IP (1) Each .BR pmie (1) expression is of the form ``NAME = expr;''. NAME will be used as the column heading, and must contain no white space, although special characters can be escaped by enclosing NAME in single quotes. .IP (2) The ``expr'' must be a valid .BR pmie (1) expression that produces a singular value. .PP In addition, .BR pmie (1) must be run with the .B \-v command line option. .PP It is also possible to use the .B \-e command line to .BR pmie (1) and output lines will be prefixed by a timestamp. .SH OPTIONS The available command line options are: .TP 5 \fB\-d\fR \fIchar\fR, \fB\-\-delimiter\fR=\fIchar\fR Use \fIchar\fR as output delimiter. .TP \fB\-p\fR \fIN\fR, \fB\-\-precision\fR=\fIN\fR Use \fIn\fR as output floating point precision. .TP \fB\-w\fR \fIN\fR, \fB\-\-width\fR=\fIN\fR Use \fIn\fR as output column width. .TP \fB\-?\fR, \fB\-\-help\fR Display usage message and exit. .SH EXAMPLES Given this .BR pmie (1) configuration file .IR (config) : .EX loadav = kernel.all.load #'1 minute'; \&'%usr' = kernel.all.cpu.user; \&'%sys' = kernel.all.cpu.sys; \&'%wio' = kernel.all.cpu.wait.total; \&'%idle' = kernel.all.cpu.idle; \&'max-iops' = max_inst(disk.dev.total); .EE Then this command pipeline: .EX $ pmie \-v \-t 5