HP-UX Workload Manager User's Guide

Advanced WLM usage: Using performance metrics
Supplying data to WLM
Appendix H 511
Figure H-2 illustrates the command-pipe mode of operation for
wlmrcvdc. In this mode, wlmrcvdc starts a command, reads its stdout,
and forwards that data to the WLM daemon, wlmd.
Figure H-2 wlmrcvdc: command-pipe mode (wlmrcvdc command [args])
Consider the following example, in which an instance of wlmrcvdc starts
a data collector named ordercounter. As ordercounter writes values to
its sdtout, wlmrcvdc reads those values and forwards them to the WLM
daemon on behalf of the metric order_cnt:
tune order_cnt books {
coll_argv = wlmrcvdc /opt/books/ordercounter;
...
}
While using the program ordercounter to send data, you can also use
wlmsend to forward data for the metric order_cnt.
Figure H-3 illustrates the FIFO-file mode of operation for wlmrcvdc. In
this mode, wlmrcvdc monitors a FIFO rendezvous point it created.
wlmsend makes data available at the rendezvous point. wlmrcvdc picks
up the data and forwards it to the WLM daemon.
Each wlmrcvdc process has its own FIFO rendezvous point based on the
metric name used in the tune structure that invokes that particular
wlmrcvdc process. wlmsend determines the correct rendezvous point
from its metric argument.
command
wlmrcvdc creates
a child process
running command
stdout is read
by wlmrcvdc
wlmd
wlmrcvdc forwards
the data to wlmd
wlmrcvdc
stdout