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(3N).
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(3N).
17
18       pmhostname  provides  a service for shell scripts that mimics the logic
19       used by Performance Co-Pilot applications when trying to determine  the
20       official name of a host.
21
22       If gethostbyname(3N) fails, the input host name (either hostname or the
23       result from calling gethostname(2)) is reported.
24

PCP ENVIRONMENT

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

SEE ALSO

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