IBM Books

Administration Guide

dshbak Command

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

-c
Collapses identical output from more than one node so that it is displayed only once.

Examples

  1. To display the results of a command issued on several nodes, in the format used in the Description section above, enter:
    dsh -n node1,node2,node3 cat /etc/passwd | dshbak
    
  2. To display the results of a command issued on several nodes with identical output displayed only once, enter:
    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

/opt/csm/bin/dshbak
Location of the dshbak command.

See Also

The dsh man page.

Author

Patrick Ladd- cluster@us.ibm.com


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]