1PMISETHOSTNAME(3) Library Functions Manual PMISETHOSTNAME(3)
2
3
4
6 pmiSetHostname - set the source host name for a LOGIMPORT archive
7
9 #include <pcp/pmapi.h>
10 #include <pcp/import.h>
11
12 int pmiSetHostname(const char *value);
13
14 cc ... -lpcp_import -lpcp
15
17 use PCP::LogImport;
18
19 pmiSetHostname($value);
20
22 As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)),
23 pmiSetHostname sets the source hostname in the current context to be
24 value.
25
26 In the absence of a call to pmiSetHostname the source hostname defaults
27 to the hostname of the localhost.
28
30 pmiSetHostname returns zero on success else a negative value that can
31 be turned into an error message by calling pmiErrStr(3).
32
34 LOGIMPORT(3), pmiErrStr(3), pmiSetTimezone(3) and pmiStart(3).
35
36
37
38Performance Co-Pilot PMISETHOSTNAME(3)