python3/python2 SSH module for session management for multivendor network devices (Juniper, Cisco IOS, Cisco ASA, Arista). Based on Netmiko
sshEOS provides a ready-to-go ssh module, asking for Username, Password and Enable Password. Error handling and promt information are also provided to facilitate the user in case of wrong username or password
All netmiko commands are available with this module
Example:
#!/usr/bin/env python3
import sys
from sshEOS import sshHost as ssh
def showVersion(host):
out = host.send_command("show version")
print(out)
showVersion(ssh(sys.argv[1]))
How to run it:
federico@federico:~/git/github/python/modules/python3 $ python3 importTest.py SWITCH01 Username: olivierif Password: Enable password: Session established with Hostname:SWITCH01 IP:10.10.10.92 Arista DCS-7048T-4S-R Hardware version: 04.10 [...]
Release files for sshEOS 2.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 | |
|---|---|---|---|
| sshEOS-2.0.tar.gz | 2.1 kB | Details |
Release files / sshEOS-2.0.tar.gz
| Download URL | sshEOS-2.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17703d8e352a86f0064ebb8662df168e7770ed7f3c8fa6af35248091909d1940
|
|
BLAKE2b-256 checksum How to use checksums |
eab07afd26c9be3f7a631261cda94d2f46ddf2ee93f05ac903f27a8bbf8d7291
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |