Parallel shell


To use the parallel shell, enter the Multi-server menu (press F7 key or *) to get the lists of server or different server groups. Select the mExec list or ServerGroup and press Enter key to enter the parallel shell command prompt. Type the command you want to execute on servers in the list/group and press Enter key. The command will be executed on all the servers in the list/group in parallel and output will be displayed one after the other. The server hostname on which the command was executed will be highlighted followed by the command execution result for each server in the list/group.




You can navigate through the previous commands entered in Multi-server shell using the up/down arrow keys or just like you would in a bash shell (Crtl+r for reverse incremental search etcetera). The special command mxhistory will display all the commands in Multi-server shell history tagged with date and time.



To quit from the Multi-server shell, type exit and press Enter key or press Crtl+d (hold down 'Ctrl' key and press 'd')


If the command needs long time for execution such as a  yum update, live status can be viewed in the web panel. See Viewing SSH logs, mExec outputs and mCopy status.


NOTES:

  • Currently, multi-line commands are not supported. However, you may enter multiple commands or tiny shell scripts in one line. For executing multiple commands, separate them with ';' (semi-colon).
  • This is only a virtual shell. This is non-interactive shell. Interactive activities such as file editors, top etc. will not work in parallel shell as in a regular shell.