|
ptdispSUT graphical display toolDescriptionptdisp is a graphical display tool that reads well formatted data from standard in or a pipe and displays a grid based on that data. It is well-suited to the display of status data from other SUT tools.
Command Line Argumentsptdisp [-hHpPst]
Input Formatptdisp takes input in the form:
<hostname>: <command> [<arguments>]<hostname> is the hostname of the machine to which the data given refers. There is also a special hostname, "$LEGEND$" that allows the user to specify a color coded legend for the display. See the section "Legend" below. <command> is one of the following:
In any of the above commands that accept color arguments, the color may be any that is accepted by XParseColor(3X11), i.e. valid X colors.
LegendA legend can be specified in the input with a special hostname, "$LEGEND$", with the following syntax:
$LEGEND$: [<text1> <foreground1> <background1> [<text2>...]]This input will cause a separate window to appear on the screen with a box for each text item given with the specified foreground and background colors. The legend is most useful in conjuction with the percentage and color commands.
ExamplesTo see which nodes have the file '/home/johndoe/myfile', one might use the following command:
ptpred -all '-f /home/johndoe/myfile' | ptdispThis will display a grid of all the nodes in the current mpd ring, with those nodes where /home/johndoe/myfile exists shown as a green button with black text and those nodes where /home/johndoe/myfile does not exist shown as a red button with black text.
See Alsoptpred(1), XParseColor(3X11), SUT(1)
|