Name
dshbak - Presents formatted output from the dsh command.
Synopsis
dshbak [-c]
Description
The dshbak command is used to format output from the dsh command. The dshbak command takes lines in the following format:
host_name: line of output from remote command
The dshbak command formats the lines as follows and writes them to standard output. Assume that the output from host_name3 and host_name4 is identical, and the -c option was specified:
HOSTS ------------------------------------------------------------- host_name1 ------------------------------------------------------------------- . . lines from dsh with host_names stripped off . . HOSTS ------------------------------------------------------------- host_name2 ------------------------------------------------------------------- . . lines from dsh with host_names stripped off . . HOSTS ------------------------------------------------------------- host_name3 host_name4 ------------------------------------------------------------------- . . lines from dsh with host_names stripped off . .
When output is displayed from more than one node in collapsed form, the host names are displayed alphabetically.
When output is not collapsed, output is displayed sorted alphabetically by host name.
The dshbak command writes "." for each 1000 lines of output filtered.
Options
Examples
dsh -n node1,node2,node3 cat /etc/passwd | dshbak
dsh -w host1,host2,host3 pwd | dshbak -c
Diagnostics
When the dshbak filter is used and standard error messages are generated, all error messages on standard error appear before all standard output messages. This is true with and without the -c option.
Files
See Also
The dsh man page.
Author
Patrick Ladd- cluster@us.ibm.com