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

NAME

6       pmhostname - report hostname
7

SYNOPSIS

9       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 us‐
16       ing 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  de‐
20       termine  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

OPTIONS

27       The available command line options are:
28
29       -?, --help
30            Display usage message and exit.
31

PCP ENVIRONMENT

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

SEE ALSO

40       nslookup(1),  gethostname(2), gethostbyname(3), pcp.conf(5), pcp.env(5)
41       and resolver(5).
42
43
44
45Performance Co-Pilot                  PCP                        PMHOSTNAME(1)
Impressum