1PMHOSTNAME(1)               General Commands Manual              PMHOSTNAME(1)
2
3
4

NAME

6       pmhostname - report hostname
7

SYNOPSIS

9       $PCP_BINADM_DIR/pmhostname [hostname]
10

DESCRIPTION

12       pmhostname  reports  the name of the host hostname as returned by geth‐
13       ostbyname(3).
14
15       If hostname is not specified, then the local  host  name  is  retrieved
16       using gethostname(2) and this is than passed to gethostbyname(3).
17
18       pmhostname  provides  a service for shell scripts that mimics the logic
19       formerly used by  Performance  Co-Pilot  applications  when  trying  to
20       determine  the official name of a host.  PCP applications no longer use
21       DNS-based heuristics, and therefore this command is deprecated.
22
23       If gethostbyname(3) fails, the input host name (either hostname or  the
24       result from calling gethostname(2)) is reported.
25

PCP ENVIRONMENT

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

SEE ALSO

34       named(1),   nsd(1),   nslookup(1),   gethostname(2),  gethostbyname(3),
35       pcp.conf(5), pcp.env(5) and resolver(5).
36
37
38
39Performance Co-Pilot                  PCP                        PMHOSTNAME(1)
Impressum