Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
1 result

Target

Select target project
No results found
Select Git revision
  • main
1 result
Show changes

Commits on Source 2

4 files
+ 37
7
Compare changes
  • Side-by-side
  • Inline

Files

+0 −1
Original line number Original line Diff line number Diff line
@@ -4,7 +4,6 @@ Send a command via ssh to one or multiple servers


This is a shellscript written in Bash to execute a single command on one or many target hosts via ssh - optional via jumphost.
This is a shellscript written in Bash to execute a single command on one or many target hosts via ssh - optional via jumphost.



Free software and Open Source from University of Bern :: IML - Institute for Medical Education
Free software and Open Source from University of Bern :: IML - Institute for Medical Education


📄 Source: <https://git-repo.iml.unibe.ch/iml-open-source/multi_ssh/> \
📄 Source: <https://git-repo.iml.unibe.ch/iml-open-source/multi_ssh/> \
Original line number Original line Diff line number Diff line
@@ -19,9 +19,15 @@ You get these files in the multi_ssh directory:
├── color.class.sh          needed file with functions for coloring
├── color.class.sh          needed file with functions for coloring
├── config
├── config
│   ├── commands.txt.dist
│   ├── commands.txt.dist
│   └── default
│   │
│   ├── default
│   │   ├── commands.txt.dist
│   │   └── serverlist.json.dist
│   :
|   └── <profile-dir-N>
│       ├── commands.txt.dist
│       ├── commands.txt.dist
│       └── serverlist.json.dist
│       └── serverlist.json.dist

├── docs
├── docs
│   ...
│   ...
├── logs
├── logs
@@ -41,7 +47,7 @@ The script stops because a list of servers is missed.
_______________________________________________________________________________
_______________________________________________________________________________


 MULTI REMOTE EXECUTION WITH SSH                                         ______
 MULTI REMOTE EXECUTION WITH SSH                                         ______
________________________________________________________________________/ v0.17
________________________________________________________________________/ v0.18


INIT: Creating user config...
INIT: Creating user config...
saved:
saved:
+11 −1
Original line number Original line Diff line number Diff line
@@ -9,7 +9,17 @@ To see the parameters start `multi_ssh.sh -h`
_______________________________________________________________________________
_______________________________________________________________________________


 MULTI REMOTE EXECUTION WITH SSH                                         ______
 MULTI REMOTE EXECUTION WITH SSH                                         ______
________________________________________________________________________/ v0.17
________________________________________________________________________/ v0.18


A remote execution tool to run a command on multiple servers.
Its main usage is in interactive mode and command line parameters.

    Source:  <https://git-repo.iml.unibe.ch/iml-open-source/multi_ssh/>
    License: GNU GPL 3.0
    Docs:    <https://os-docs.iml.unibe.ch/multi_ssh/>

    2023-2024 Institute for Medical Education; University of Bern


SYNTAX:
SYNTAX:
    multi_ssh.sh [OPTIONS] [SERVERLIST]
    multi_ssh.sh [OPTIONS] [SERVERLIST]
+18 −3
Original line number Original line Diff line number Diff line
@@ -3,6 +3,10 @@
#
#
# MULTI REMOTE EXECUTION
# MULTI REMOTE EXECUTION
#
#
# Source: <https://git-repo.iml.unibe.ch/iml-open-source/multi_ssh/>
# License: GNU GPL 3.0 \
# Docs: <https://os-docs.iml.unibe.ch/multi_ssh/>
# 
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# 2023-03-13       <axel.hahn@unibe.ch>  WIP
# 2023-03-13       <axel.hahn@unibe.ch>  WIP
# 2023-03-24  0.3  <axel.hahn@unibe.ch>  show last execution
# 2023-03-24  0.3  <axel.hahn@unibe.ch>  show last execution
@@ -19,10 +23,10 @@
# 2023-10-18  0.14 <axel.hahn@unibe.ch>  automatically init of userconfig; check terminal
# 2023-10-18  0.14 <axel.hahn@unibe.ch>  automatically init of userconfig; check terminal
# 2023-10-19  0.15 <axel.hahn@unibe.ch>  Fix: Show running terminal in server list
# 2023-10-19  0.15 <axel.hahn@unibe.ch>  Fix: Show running terminal in server list
# 2024-05-15  0.16 <axel.hahn@unibe.ch>  add profiles; rename internal variables
# 2024-05-15  0.16 <axel.hahn@unibe.ch>  add profiles; rename internal variables
# 2024-05-24  0.17 <axel.hahn@unibe.ch>  update headlines; fix param -t
# 2024-06-19  0.18 <axel.hahn@unibe.ch>  fix syntax error from missing comment line; update help
 ======================================================================
# ======================================================================


_version=0.17
_version=0.18
_self=$( basename $0 )
_self=$( basename $0 )
cd "$( dirname $0 )"
cd "$( dirname $0 )"


@@ -55,6 +59,17 @@ COLOR_PRESET_error=("red")
. "${MRE_CONFIGFILE}" 2>/dev/null
. "${MRE_CONFIGFILE}" 2>/dev/null


USAGE="
USAGE="

A remote execution tool to run a command on multiple servers.
Its main usage is in interactive mode and command line parameters.

    Source:  <https://git-repo.iml.unibe.ch/iml-open-source/multi_ssh/>
    License: GNU GPL 3.0
    Docs:    <https://os-docs.iml.unibe.ch/multi_ssh/>

    2023-2024 Institute for Medical Education; University of Bern


SYNTAX:
SYNTAX:
    $_self [OPTIONS] [SERVERLIST]
    $_self [OPTIONS] [SERVERLIST]