User`s guide
Reporter
Setting Up Report Output
138 5967–9446
Figure 28 Output to a Command
Choose Command
Select the format:
PostScript, XWD, or
Text
This example processes XWD output through two NetPBM utilities that convert
the image to GIF format, storing the result in a file with a name that reflects the
start date for the report. To create the file name, the $STARTDATE variable’s
value is piped through a sed command that substitutes hyphens for the slashes
in the date. The result is a GIF file with a name such as 06-15-95.gif.
The complete command in this example is:
xwdtopnm $OUTPUTFILE | ppmtogif >
/usr/reports/‘echo $STARTDATE |
sed ’s/\//-/g’‘.gif; rm $OUTPUTFILE
The sample files baseutil-std-eth.rpt and baseutil-std-tr.rpt use a
similar command to convert the date to a file name. These files are located in
/usr/netm/data/reporter_sample/.
Indicate the command to
use; for a list of variables, see
page 149
Last part of
command removes
$OUTPUTFILE
The items available in the
output combo box can be
configured in the Netm file;
refer to the file for details