1PMGETPMNSLOCATION(3)       Library Functions Manual       PMGETPMNSLOCATION(3)
2
3
4

NAME

6       pmGetPMNSLocation - determine the location of the currently used PMNS
7

C SYNOPSIS

9       #include <pcp/pmapi.h>
10
11       int pmGetPMNSLocation(void);
12
13       cc ... -lpcp
14

DESCRIPTION

16       If  an  application  needs  to  know where the Performance Metrics Name
17       Space (PMNS) is coming from then pmGetPMNSLocation will return  whether
18       it  is  from  an  archive,  PMNS_ARCHIVE,  or  from  a local PMNS file,
19       PMNS_LOCAL, or from a remote pmcd, PMNS_REMOTE.
20
21       This information may be useful in determining an appropriate error mes‐
22       sage depending on the PMNS' location.
23

PCP ENVIRONMENT

25       Environment variables with the prefix PCP_ are used to parameterize the
26       file and directory names used by PCP.  On each installation,  the  file
27       /etc/pcp.conf  contains  the  local  values  for  these variables.  The
28       $PCP_CONF variable may be used to specify an alternative  configuration
29       file,  as  described in pcp.conf(5).  Values for these variables may be
30       obtained programmatically using the pmGetConfig(3) function.
31

SEE ALSO

33       PMAPI(3), pmGetConfig(3), pmLoadASCIINameSpace(3),  pmLoadNameSpace(3),
34       pmTrimNameSpace(3), pcp.conf(5), pcp.env(5) and pmns(5).
35

DIAGNOSTICS

37       PM_ERR_NOPMNS
38              If  is  not possible to determine where the location of the PMNS
39              is.  This could be due to problems with the current  context  or
40              being unable to load a local PMNS.
41
42
43
44Performance Co-Pilot                  PCP                 PMGETPMNSLOCATION(3)
Impressum