1PMLOOKUPINDOMARCHIVE(3) Library Functions Manual PMLOOKUPINDOMARCHIVE(3)
2
3
4
6 pmLookupInDomArchive - translate an instance name into an instance
7 identifier
8
10 #include <pcp/pmapi.h>
11
12 int pmLookupInDomArchive(pmInDom indom, const char *name)
13
14 cc ... -lpcp
15
17 Provided the current Performance Metrics Application Programming Inter‐
18 face (PMAPI) context is associated with an archive log, pmLookupInDo‐
19 mArchive will scan the union of all the instance domain metadata for
20 the instance domain indom, locate the first instance with the external
21 identification given by name, and return the internal instance identi‐
22 fier.
23
24 This routine is a specialized version of the more general PMAPI routine
25 pmLookupInDom.
26
27 Only the leading non-space characters of name will be used to identify
28 the instance.
29
30 The value for the instance domain indom is typically extracted from a
31 pmDesc structure, following a call to pmLookupDesc(3) for a particular
32 performance metric.
33
34 pmLookupInDomArchive will return a positive instance identifier on suc‐
35 cess.
36
38 PMAPI(3), pmGetConfig(3), pmGetInDomArchive(3), pmLookupDesc(3),
39 pmLookupInDom(3), pmNameInDomArchive(3), pcp.conf(4) and pcp.env(4).
40
42 PM_ERR_NOTARCHIVE
43 the current PMAPI context is not associated with an archive log
44
45 PM_ERR_INDOM_LOG
46 indom is not a defined instance domain identifier for the ar‐
47 chive log
48
49 PM_ERR_INST_LOG
50 the external instance name is not known for the instance domain
51 indom in the archive log
52
53
54
55Performance Co-Pilot SGI PMLOOKUPINDOMARCHIVE(3)