Skip to main content

python3 ssh module for Arista EOS

Project description

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
[...]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sshEOS-2.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file sshEOS-2.0.tar.gz.

File metadata

  • Download URL: sshEOS-2.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sshEOS-2.0.tar.gz
Algorithm Hash digest
SHA256 17703d8e352a86f0064ebb8662df168e7770ed7f3c8fa6af35248091909d1940
MD5 e662e21a401cd77981286df4eb22535f
BLAKE2b-256 eab07afd26c9be3f7a631261cda94d2f46ddf2ee93f05ac903f27a8bbf8d7291

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page