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

NAME

6       pmfind - find PCP services on the network
7

SYNOPSIS

9       pmfind [-q] [-m mechanism] [-s service] [-r] [-t timeout]
10

DESCRIPTION

12       pmfind searches for instances of the specified PCP service being adver‐
13       tised on the network and prints a list of  URLs  corresponding  to  the
14       services discovered.
15
16       By default pmfind will search for all supported PCP services, however a
17       specific PCP service to discover can be specified using the -s  option.
18       Supported services are pmcd(1), pmproxy(1) and pmwebd(1).
19
20       The  -m option sets the mechanism that pmfind uses when performing ser‐
21       vice discovery.  By default, or if  the  keyword  "all"  is  specified,
22       every  available mechanism will be used (iteratively). Supported mecha‐
23       nisms are:
24
25       avahi  Searches for services which  are  broadcasting  using  mDNS  via
26              avahi-daemon(8).   An  optional suffix ",timeout=N" may be added
27              to limit the amount of time waiting for the avahi-daemon. N is a
28              floating  point number specifying the number of seconds to wait.
29              The default is 0.5 seconds.  This timeout may also be  specified
30              by  setting  the environment variable AVAHI_DISCOVERY_TIMEOUT to
31              the desired number of seconds. If both are specified,  then  the
32              value specified in the environment variable takes precedence.
33
34       probe=<net-address>/<mask-bits>
35              Actively  probes  the  given  subnet  for the requested PCP ser‐
36              vice(s).  <net-address> is an inet or ipv6 network  address  and
37              <mask-bits> is the number of bits used to define the subnet. For
38              example, 192.168.1.0/24 defines an 8 bit  subnet  consisting  of
39              the  addresses  192.168.1.0  through 192.168.1.255.  An optional
40              suffix ",maxThreads=N" may be  added  to  limit  the  number  of
41              threads  used while probing. The default is the value of FD_SET‐
42              SIZE or the number of addresses  in  the  subnet,  whichever  is
43              less.  An optional suffix ",timeout=N" may be added to limit the
44              amount of time waiting for  each  connection  attempt.  N  is  a
45              floating  point number specifying the number of seconds to wait.
46              The default is 20ms.
47
48       The -r option requests that DNS name resolution be  attempted  for  the
49       addresses  of  any  discovered  services. The default is to display the
50       network addresses of any discovered services.
51
52       The -t option sets the maximum amount of time  that  pmfind  will  take
53       before  interrupting  the service discovery. The argument is a floating
54       point number representing the number of seconds before timing out.  The
55       default is to take as much time as is needed to complete the process.
56
57       The -q option suppresses all output on the standard output stream.
58

PCP ENVIRONMENT

60       Environment variables with the prefix PCP_ are used to parameterize the
61       file and directory names used by PCP.  On each installation,  the  file
62       /etc/pcp.conf  contains  the  local  values  for  these variables.  The
63       $PCP_CONF variable may be used to specify an alternative  configuration
64       file, as described in pcp.conf(5).
65

DIAGNOSTICS

67       The  value  of  the  exit status from the command is zero when services
68       were successfully located, one if no services were found, and two if an
69       error occurred.
70
71       In the event of an error, a message will be generated on standard error
72       that is intended to be self-explanatory.
73

SIGNALS

75       pmfind will interrupt the service discovery process  when  one  of  the
76       following  signals  is  received:  SIGHUP,  SIGPIPE,  SIGINT,  SIGTERM,
77       SIGXFSZ, SIGXCPU.  pmfind will report any results which were discovered
78       up to point of the interruption.
79

SEE ALSO

81       PCPIntro(1),  pmcd(1),  pmproxy(1), pmwebd(1), PMAPI(3), pmDiscoverSer‐
82       vices(3), pcp.conf(5) and pcp.env(5).
83
84
85
86Performance Co-Pilot                  PCP                            PMFIND(1)
Impressum