SYNOPSIS

pmfind [-q] [-m mechanism] [-s service]

DESCRIPTION

pmfind searches for instances of the specified PCP service being advertised on the network and prints a list of URLs corresponding to the services discovered.

By default pmfind will search for all supported PCP services, however a specific PCP service to discover can be specified using the -s option. Supported services are pmcd(1), pmproxy(1) and pmwebd(1).

The -m option sets the mechanism that pmfind uses when performing service discovery. By default, or if the keyword "all" is specified, every available mechanism will be used (iteratively). Supported mechanisms are:

avahi

Searches for services which are broadcasting using mDNS via avahi-daemon(8).

probe=<net-address>/<mask-bits>

Actively probes the given subnet for the requested PCP service(s). <net-address> is an inet or ipv6 network address and <mask-bits> is the number of bits used to define the subnet. For example, 192.168.1.0/24 defines an 8 bit subnet consisting of the addresses 192.168.1.0 through 192.168.1.255. An optional suffix ",maxThreads=N" may be added to limit the number of threads used while probing. The default is no fixed limit, which is to say that the process' rlimits for the number of threads and open file descriptors will be respected.

The -q option suppresses all output on the standard output stream.

PCP ENVIRONMENT

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

DIAGNOSTICS

The value of the exit status from the command is zero when services were successfully located, one if no services were found, and two if an error occurred.

In the event of an error, a message will be generated on standard error that is intended to be self-explanatory.

SIGNALS

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

RELATED TO pmfind…