pGraph Batch Mode
The tool can be used in batch mode to create PNG pictures of all available performance variables (the same PNG of interactive mode) with an HTML wrapping that can be used to publish them on a web site.
Due to Java limitations, a graphical adapter or a virtual frame buffer is required.
The syntax is:
pGraph.Viewer - Version 1.5.0
Usage: pGraph.Viewer [ -l begin end ] [ -d | -D ] <source> <output dir>
-l limits time frame: begin and end in YYYYMMDDhhmmss format.
-d source=directory : multiple hosts in multiple source files.
-D source=directory : single host with multiple source files.
<source> is by default a single file. Use -d or -D to select a directory
.
Valid input files are: "nmon", "vmstat -t",
"topasout <xmtrend file>", "topasout <topas_cec>",
"iostat -alDT", "lslparutil"
<output dir> is where system usage reports in PNG format are written.
By default the entire time period contained in the file(s) is examined, but user can change it using the "-l" switch.
If multiple input files are available, place them in the same source directory. If they belong to the same operating system, use the -D switch and pGraph will merge them providing all contained information. If the files belong to different operating systems and a global view of CPU usage is required, use the -d switch and pGraph will provide a CPU graph for each file, all related to the same time frame.
In the output directory, a PNG picture is created for each available graph. For web publishing, an "index.html" frame is provided to ease browsing among pictures.