App-ClusterSSH
view release on metacpan or search on metacpan
lib/App/ClusterSSH/Getopt.pm view on Meta::CPAN
q{Paste in the hostname part of the specific connection string to each client, minus any username or port, e.g.
C<< scp /etc/hosts server:files/<Alt-n>.hosts >>
would replace the <Alt-n> with the client's name in each window.}
);
output '=item ', $self->parent->config->{key_localname};
output $self->loc(
q{Paste in the hostname of the server cssh is being run on});
output '=item ', $self->parent->config->{key_quit};
output $self->loc(
'Quit the program and close all connections and windows.');
output '=item ', $self->parent->config->{key_retilehosts};
output $self->loc(q{Retile all the client windows.});
output '=item ', $self->parent->config->{key_username};
output $self->loc(q{Paste in the username for the connection});
output '=back';
output '=head1 ' . $self->loc('EXAMPLES');
output '=over';
output '=item ', $self->loc(q{Open up a session to 3 servers});
output q{S<$ } . $Script . q{ server1 server2 server3>};
output '=item ',
$self->loc(
q{Open up a session to a cluster of servers identified by the tag 'farm1' and give the controlling window a specific title, where the tag is defined in one of the default configuration files}
);
output q{S<$ } . $Script . q{ -T 'Web Farm Cluster 1' farm1>};
output '=item ',
$self->loc(
q{Connect to different servers using different login names. NOTE: this can also be achieved by setting up appropriate options in the configuration files. Do not close the console when the last terminal exits.}
);
output q{S<$ } . $Script . q{ user1@server1 admin@server2>};
output '=item ',
$self->loc(
q{Open up a cluster defined in a non-default configuration file});
output q{S<$ } . $Script . q{ -c $HOME/cssh.extra_clusters db_cluster>};
output '=item ',
$self->loc(
q{Override the configured/default port to use 2022 instead});
output q{S<$ } . $Script . q{ -p 2022 server1 server2>};
output '=back';
output '=head1 ' . $self->loc('FILES');
output '=over';
output q{=item F</etc/clusters>, F<$HOME/.clusterssh/clusters>};
output $self->loc(
q{These files contain a list of tags to server names mappings. When any name is used on the command line it is checked to see if it is a tag. If it is a tag, then the tag is replaced with the list of servers. The format is as follows:}
);
output 'S<< <tag> [user@]<server>[:port] [user@]<server>[:port] [...] >>';
output $self->loc(
'e.g.
# List of servers in live
live admin1@server1 admin2@server2:2022 server3 server4'
);
output $self->loc(
q{All comments (marked by a #) and blank lines are ignored. Tags may be nested, but be aware of using recursive tags as they are not checked for.}
);
output $self->loc(q{Servers can be defined using expansion macros:});
output 'C<< webservers websvr{a,b,c} >>';
output $self->loc(q{would be expanded to});
output 'C<< webservers websvra websvrb websvrc >>';
output $self->loc(q{and});
output 'C<< webservers websvr{6..9} >>';
output $self->loc(q{would be expanded to});
output 'C<< webservers websvr6 websvr7 websvr8 websvr9 >>';
output $self->loc(
q{Extra cluster files may also be specified either as an option on the command line (see [_1]) or in the user's [_2] file (see [_3] configuration option).},
'C<cluster-file>',
'F<$HOME/.clusterssh/config>',
'L</extra_cluster_file>'
);
output $self->loc(
'B<NOTE:> the last tag read overwrites any pre-existing tag of that name.'
);
output $self->loc(
'B<NOTE:> there is a special cluster tag called [_1] - any tags or hosts included within this tag will be automatically opened if nothing is specified on the command line.',
'C<default>'
);
output q{=item F</etc/tags>, F<$HOME/.clusterssh/tags>};
output $self->loc(
q{Very similar to [_1] files but the definition is reversed. The format is:},
'F<clusters>'
);
output 'S<< <host> <tag> [...] >>';
output $self->loc(
q{This allows one host to be specified as a member of a number of tags. This format can be clearer than using [_1] files.},
'F<clusters>'
);
output $self->loc(
q{Extra tag files may be specified either as an option (see [_1]) or within the user's [_2] file (see [_3] configuration option).},
'C<tag-file>', 'F<$HOME/.clusterssh/config>', 'C<extra_tag_file>'
);
output $self->loc('B<NOTE:> All tags are added together');
output q{=item F</etc/csshrc> & F<$HOME/.clusterssh/config>};
output $self->loc(
q{This file contains configuration overrides - the defaults are as marked. Default options are overwritten first by the global file, and then by the user file.}
);
output $self->loc(
'B<NOTE:> values for entries do not need to be quoted unless it is required for passing arguments, e.g.'
);
output
q{C<< terminal_allow_send_events="-xrm '*.VT100.allowSendEvents:true'" >>};
output $self->loc('should be written as');
output
q{C<< terminal_allow_send_events=-xrm '*.VT100.allowSendEvents:true' >>};
output '=over';
output '=item auto_close = 5';
output $self->loc(
'Close terminal window after this many seconds. If set to 0 will instead wait on input from the user in each window before closing. See also [_1] and [_2]',
'L<--autoclose>', '--no-autoclose'
);
output '=item auto_quit = 1';
output $self->loc(
'Automatically quit after the last client window closes. Set to 0 to disable. See also [_1]',
'L<--autoquit>',
);
output '=item auto_wm_decoration_offsets = no';
( run in 0.438 second using v1.01-cache-2.11-cpan-5623c5533a1 )