2008-03-14 20:54:31 +00:00
|
|
|
=head1 B<NAME>
|
|
|
|
|
2009-04-21 21:12:15 +00:00
|
|
|
B<xcoll> - Formats and consolidates the output of the B<psh>, B<rinv> commands.
|
2008-03-14 20:54:31 +00:00
|
|
|
|
|
|
|
=head1 B<SYNOPSIS>
|
|
|
|
|
2011-01-13 19:50:50 +00:00
|
|
|
B<xcoll> [B<-n>]
|
2008-03-14 20:54:31 +00:00
|
|
|
|
|
|
|
=head1 B<DESCRIPTION>
|
|
|
|
|
2009-04-20 13:25:14 +00:00
|
|
|
The B<xcoll> command formats and consolidates output from the B<psh,rinv> command. The B<xcoll>
|
2008-03-14 20:54:31 +00:00
|
|
|
command takes, as input, lines in the following format:
|
|
|
|
|
2009-04-20 13:19:56 +00:00
|
|
|
groupname: line of output from remote command, will use group name, if defined
|
2008-03-14 20:54:31 +00:00
|
|
|
|
|
|
|
The B<xcoll> command formats the lines as follows and writes them to
|
|
|
|
standard output. Assume that the output from node3 and node4
|
|
|
|
is identical:
|
|
|
|
|
|
|
|
====================================
|
2009-04-20 13:19:56 +00:00
|
|
|
node1 or nodegroup name
|
2008-03-14 20:54:31 +00:00
|
|
|
====================================
|
|
|
|
.
|
|
|
|
.
|
|
|
|
lines from psh for node1 with hostnames stripped off
|
|
|
|
.
|
|
|
|
.
|
|
|
|
|
|
|
|
====================================
|
2009-04-20 13:19:56 +00:00
|
|
|
node2 or nodegroup name
|
2008-03-14 20:54:31 +00:00
|
|
|
====================================
|
|
|
|
.
|
|
|
|
.
|
|
|
|
lines from psh for node2 with hostnames stripped off
|
|
|
|
.
|
|
|
|
.
|
|
|
|
|
|
|
|
====================================
|
2009-04-20 13:19:56 +00:00
|
|
|
node3, node4 or nodegroup name
|
2008-03-14 20:54:31 +00:00
|
|
|
====================================
|
|
|
|
.
|
|
|
|
.
|
|
|
|
lines from psh for node 3 with hostnames stripped off
|
|
|
|
.
|
|
|
|
.
|
|
|
|
|
2011-01-13 19:50:50 +00:00
|
|
|
=head1 B<OPTIONS>
|
|
|
|
|
|
|
|
=over 3
|
|
|
|
|
|
|
|
=item B<-n>
|
|
|
|
|
|
|
|
Display output as nodenames instead of groupnames.
|
2008-03-14 20:54:31 +00:00
|
|
|
|
|
|
|
=head1 B<EXAMPLES>
|
|
|
|
|
|
|
|
=over 3
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
To display the results of a command issued on several nodes, in
|
|
|
|
the format used in the Description, enter:
|
|
|
|
|
|
|
|
B<psh> I<node1,node2,node3 cat /etc/passwd> | B<xcoll>
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 B<SEE ALSO>
|
|
|
|
|
2009-04-20 13:19:56 +00:00
|
|
|
L<psh(1)|psh.1>, L<xdshbak(1)|xdshbak.1> ,L<xdshcoll(1)|xdshcoll.1>
|