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

DIAGNOSTICS

25       PM_ERR_NOPMNS
26              If  is  not possible to determine where the location of the PMNS
27              is.  This could be due to problems with the current  context  or
28              being unable to load a local PMNS.
29

PCP ENVIRONMENT

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

SEE ALSO

39       PMAPI(3), pmGetConfig(3), pmLoadASCIINameSpace(3),  pmLoadNameSpace(3),
40       pmTrimNameSpace(3), pcp.conf(5), pcp.env(5) and PMNS(5).
41
42
43
44Performance Co-Pilot                  PCP                 PMGETPMNSLOCATION(3)
Impressum