* last success - timestamp of the last execution of the set command with exitcode 0. If the field is empty the command was not executed yet. This field helps you to see if a command was executed on all servers alreadyor not.
* last success - timestamp of the last execution of the set command with exitcode 0. If the field is empty the command was not executed yet. This field helps you to see if a command was executed on all servers alreadyor not.
* Running - Info for curently running job or fisnished job and the terminal window is still open. If it is empty then the job is not running
* Running - Info for curently running job or fisnished job and the terminal window is still open. If it is empty then the job is not running
```txt
Server Bastion (20 chars) last success Running
1 www.example.com
2 db.example.com
:
Special commands:
':c' change command hostname -f
':t' change tags tue
':p' change profile iml
Enter numbers or parts of servernames. Use space as divider.
Just press return to update server infos amd running status.
>
```
Behind the prompt you can type an action and press Return.
Behind the prompt you can type an action and press Return.
...
@@ -71,9 +85,63 @@ Mark it with the mouse and paste it with middle mouse key.
...
@@ -71,9 +85,63 @@ Mark it with the mouse and paste it with middle mouse key.
In the menu enter a single number - or multiple numbers separated by space.
In the menu enter a single number - or multiple numbers separated by space.
#### Prepare
The current commad will be started on the given host in an extra terminal window.
The current commad will be started on the given host in an extra terminal window.
The terminal to open can be configured, eg gnome-terminal or konsole.
see ../config/userconfig.sh - `export MRE_TERMINAL=<appname>`
A given ssh user will connect to the target host.
see ../config/userconfig.sh - `export MRE_SSHUSER=<sshuser>`
#### Execute
When the terminal window started you see starting time, the executed statement followed by the output of the command.
As long the command is running you will see `TERM` in the server list.
```text
>>>>> List of servers - Fri Nov 1 13:13:55 CET 2024
Server Bastion (20 chars) last success Running
1 www.example.com TERM
2 db.example.com
```
#### On finish
If the command is finished you get a line with finishing time and command.
In the last line you see
* "OK" on exitcode 0
* "ERROR" on non zero exitcode
The finished execution is tracked in `logs/returncodes.log`
If the command is `hostname -f`to be executed on www.example.com:
```text
Fri Nov 1 13:13:49 CET 2024 START ssh admin@www.example.com hostname -f ...