python3 ssh module for Arista EOS
Project description
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. Erro handling and promt information are also provided to facilitate the user in case of wrong username or password
All netmiko commands are available with on 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 [...]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sshEOS-1.0.8.tar.gz
(2.1 kB
view hashes)