This plugin enable to interact with remote system throught the SSH protocol.
-
Run the following command
pip install extensiveautomation_plugin_cli -
Execute the following command to take in account this new plugin
./extensiveautomation --reload -
Samples are deployed on data storage.
-
Clone the following repository
git clone https://github.com/ExtensiveAutomation/extensiveautomation-plugin-cli.git cd extensiveautomation-plugin-cli/src/ea/ -
Copy the folder
sutadaptersin the source code server and overwrite-itcp -rf sutadapters/ /<install_path_project>/src/ea/ -
Copy the folder
varin the source code server/ and overwrite-itcp -rf var/ /<install_path_project>/src/ea/ -
Finally execute the following command to install depandencies
cd /<install_path_project>/src/ python3 extensiveautomation.py --install-adapter CLI python3 extensiveautomation.py --reload
Send ssh commands on one or severals hosts.
Parameter(s):
- ssh-commands (text): bash commands
- name: ssh-commands
value: |-
echo "hello world" >> /var/log/messages
echo "hola mondu" >> /var/log/messages- ssh-hosts (list): ssh remote addresses
- name: ssh-hosts
value:
- ssh-host: 10.0.0.55
ssh-login: root
ssh-password: bonjour- agent (text): agent name to use
- name: ssh-agent
value: agent02.sshSend ssh commands on one or severals hosts and expect outputs.
Parameter(s):
- ssh-commands (text): bash commands
- name: ssh-commands
value: |-
# get hostname
uname -n
.*\n[!CAPTURE:MACHINE_HOSTNAME:]\n.*- ssh-hosts (dict): ssh remote addresses
- name: ssh-hosts
value:
- ssh-host: 10.0.0.55
ssh-login: root
ssh-password: bonjour- agent (text): agent name to use
- name: ssh-agent
value: agent02.sshThis worflow show how to use ssh actions.
This worflow show how to use ssh actions.