CLI plugin for ExtensiveAutomation server
This plugin enable to interact with remote system throught the SSH protocol.
Table of contents
Installing from pypi
-
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.
Installing from source
-
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
About actions
ssh/send_commands.yml
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.ssh
ssh/send_expect.yml
Send 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.ssh
About workflows
ssh/send_commands.yml
This worflow show how to use ssh actions.
ssh/send_expect.yml
This worflow show how to use ssh actions.
Metadata
Release files for extensiveautomation-plugin-cli 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| extensiveautomation_plugin_cli-1.5.0.tar.gz | 22.7 kB | Details |
Release files / extensiveautomation_plugin_cli-1.5.0.tar.gz
| Download URL | extensiveautomation_plugin_cli-1.5.0.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85c49dd36cc641988fb7b47316f649ffffe11c20faead5c250e1ccd9b28c00b2
|
|
BLAKE2b-256 checksum How to use checksums |
269a9ccdf76e1afc876ad4ae0f0a1d1a53810a12a6ee4fb070a04ad8da095d11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|