1PMDASAMPLE(1)               General Commands Manual              PMDASAMPLE(1)
2
3
4

NAME

6       pmdasample - sample performance metrics domain agent (PMDA)
7

SYNOPSIS

9       $PCP_PMDAS_DIR/pmdasample  [-d  domain] [-i port] [-l logfile] [-p] [-u
10       socket]
11

DESCRIPTION

13       pmdasample is a sample Performance Metrics Domain  Agent  (PMDA)  which
14       exports a variety of synthetic performance metrics.
15
16       This  PMDA  was  developed as part of the quality assurance testing for
17       the PCP product, but has other uses, most notably in the development of
18       new PCP clients.
19
20       The  metrics  exported  by the sample PMDA cover the full range of data
21       types, data semantics, value cardinality, instance domain stability and
22       error conditions found in real PMDAs.
23
24       A brief description of the pmdasample command line options follows:
25
26       -d   It  is absolutely crucial that the performance metrics domain num‐
27            ber specified here is unique  and  consistent.   That  is,  domain
28            should  be  different for every PMDA on the one host, and the same
29            domain number should be used for the same PMDA on all hosts.
30
31       -i   Expect PMCD to connect to pmdasample on the specified TCP/IP port.
32            port may be a port number or port name.
33
34       -l   Location of the log file.  By default, a log file named sample.log
35            is written in the current directory of pmcd(1) when pmdasample  is
36            started,  i.e.  $PCP_LOG_DIR/pmcd.  If the log file cannot be cre‐
37            ated or is not writable, output is written to the  standard  error
38            instead.
39
40       -p   Expect  PMCD  to create a pipe and the connection to pmdasample is
41            via standard input and standard output.  This is the default  con‐
42            nection mode.
43
44       -u   Expect  PMCD  to  connect  to pmdasample on the Unix domain socket
45            named socket.
46
47       At most one of the options -i, -p and -u may be specified.
48

INSTALLATION

50       If you want access to the names, help text and values  for  the  sample
51       performance metrics, do the following as root:
52
53            # cd $PCP_PMDAS_DIR/sample
54            # ./Install
55
56       Note  that the installation script also installs the DSO version of the
57       sample PMDA, so there are in fact two PMDAs installed, and two sets  of
58       performance metrics, namely sample.*  and sampledso.*.
59
60       If  you  want  to undo the installation (and remove both PMDAs), do the
61       following as root:
62
63            # cd $PCP_PMDAS_DIR/sample
64            # ./Remove
65
66       pmdasample  is  launched  by  pmcd(1)  and  should  never  be  executed
67       directly.  The Install and Remove scripts notify pmcd(1) when the agent
68       is installed or removed.
69

FILES

71       $PCP_PMCDCONF_PATH
72                 command line options used to launch pmdasample
73       $PCP_PMDAS_DIR/sample/help
74                 default help text file for the sample metrics
75       $PCP_PMDAS_DIR/sample/Install
76                 installation script for the pmdasample agent
77       $PCP_PMDAS_DIR/sample/Remove
78                 undo installation script for the pmdasample agent
79       $PCP_LOG_DIR/pmcd/sample.log
80                 default log file for error  messages  and  other  information
81                 from pmdasample
82

PCP ENVIRONMENT

84       Environment variables with the prefix PCP_ are used to parameterize the
85       file and directory names used by PCP.  On each installation,  the  file
86       /etc/pcp.conf  contains  the  local  values  for  these variables.  The
87       $PCP_CONF variable may be used to specify an alternative  configuration
88       file, as described in pcp.conf(4).
89

SEE ALSO

91       PCPIntro(1),   pmcd(1),  pmdasimple(1),  pmdatrivial(1),  pmdatxmon(1),
92       pcp.conf(4) and pcp.env(4).
93
94
95
96Performance Co-Pilot                  SGI                        PMDASAMPLE(1)
Impressum