pcp.env man page

pcp.env — script to set Performance Co-Pilot run-time environment variables




The pcp.env script is sourced by assorted Performance Co-Pilot (PCP) scripts and utilities to define the PCP operating environment variables. The conjugate for executable programs using the PCP libraries is the __pmGetConfig(3) function.

Typical usage of pcp.env in a script is as follows :

#! /bin/sh

# source the PCP environment variables
. /etc/pcp.env
rest of script ...

The full syntax and semantics of the pcp.conf file and the __pmGetConfig function are described in their respective reference pages.

If the file $HOME/.pcp/pcp.conf exists then this will be processed after the system-wide pcp.conf file. This provides a mechanism to selectively modify or augment the environment settings for PCP scripts, which maybe useful if the scripts are run with sudo(1) which cleans the environment of important settings that are required to ensure the correct execution of the PCP scripts, e.g. $PATH or $PERL5LIB.


The PCP_CONF environment variable specifies an alternative path to the pcp.conf file.

See Also

PCPIntro(1), sudo(1), PCPIntro(3), PMAPI(3), __pmGetConfig(3) and pcp.conf(5).

Referenced By

chkhelp(1), collectl2pcp(1), dbpmda(1), genpmda(1), mkaf(1), mmv(5), newhelp(1), pcp(1), pcp-archive(5), pcp.conf(5), pcpintro(3), PCPIntro(1), PCPIntro(3), pcp-iostat(1), pmafm(1), PMAPI(3), pmcd(1), pmcd_wait(1), pmchart(1), pmclient(1), pmconfig(1), pmcpp(1), pmdaaix(1), pmdaapache(1), pmdacisco(1), pmdajbd2(1), pmdalmsensors(1), pmdalogger(1), pmdalustrecomm(1), pmdamailq(1), pmdammv(1), pmdamounts(1), pmdanvidia(1), pmdapapi(1), pmdaperfevent(1), pmdapipe(1), pmdaproc(1), pmdaroomtemp(1), pmdasample(1), pmdasimple(1), pmdasystemd(1), pmdate(1), pmdaxfs(1), pmdbg(1), pmdiff(1), pmDiscoverServices(3), pmdumplog(1), pmerr(1), pmfind(1), pmgenmap(1), pmGetArchiveEnd(3), pmGetArchiveLabel(3), pmGetChildren(3), pmGetChildrenStatus(3), pmGetConfig(3), pmGetContextHostName(3), pmGetInDom(3), pmGetInDomArchive(3), pmgetopt(1), pmGetPMNSLocation(3), pmhostname(1), pmIDStr(3), pmie(1), pmiestatus(1), pmInDomStr(3), pminfo(1), pmlc(1), pmLoadASCIINameSpace(3), pmLoadNameSpace(3), pmLocaltime(3), pmlogcheck(1), pmlogconf(1), pmlogextract(1), pmlogger(1), pmloglabel(1), pmlogreduce(1), pmlogrewrite(1), pmLookupDesc(3), pmLookupInDom(3), pmLookupInDomArchive(3), pmLookupInDomText(3), pmLookupName(3), pmLookupText(3), pmmgr(1), pmNameAll(3), pmNameID(3), pmNameInDom(3), pmNameInDomArchive(3), pmNewContext(3), pmNewContextZone(3), pmnewlog(1), pmNewZone(3), pmns(5), pmnsadd(1), pmnsdel(1), pmnsmerge(1), pmpost(1), pmprobe(1), pmproxy(1), pmsignal(1), pmstat(1), pmval(1), pmwebd(1).

Explore man page connections for pcp.env(5).

PCP Performance Co-Pilot