HP-UX Workload Manager User's Guide

Advanced WLM usage: Using performance metrics
Supplying data to WLM
Appendix H 495
Sending data from the command line
If you have data you want to send to WLM from the command line, use
wlmsend on the command line and an associated wlmrcvdc in your
configuration file. This method of sending data works for a single metric
value that is specified on the wlmsend command line or for a stream of
metric values that is piped to wlmsend, as shown in the following
example:
/opt/wlm/bin/wlmsend metric value
or
cmnd1 | cmnd2 | [... |] /opt/wlm/bin/wlmsend metric
Place a wlmrcvdc in the configuration file that is associated with the
wlmsend by metric:
tune metric {
...
coll_argv = wlmrcvdc;
...
}
In the following example, we have an slo structure to specify our goal.
The tune structure invokes wlmrcvdc to monitor job_time values
forwarded by wlmsend:
stdout of command A tune structure in the configuration file:
tune metric {
...
coll_argv = wlmrcvdc command;
...
}
program that uses
WLM API (libwlm.sl)
A tune structure in the configuration file:
tune metric {
...
coll_argv = program;
...
}
Table H-2 Available transport methods (Continued)
For sending data from The transport method is