Skip to main content

python3/python2 SSH module for session management for multivendor network devices (Juniper, Cisco IOS, Cisco ASA, Arista). Based on Netmiko

sshIOS 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 sshIOS 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 ios.sw11.lab
Username: root
Password:
Session established with Hostname: Hostname: ios.sw11.lab IP: 192.168.255.50

Cisco IOS Software, C2600 Software (C2600-ADVIPSERVICESK9-M), Version 12.3(4)T4,  RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2004 by Cisco Systems, Inc.
[...]

Metadata

Release files for sshIOS 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sshIOS 2.0
File Size Uploaded
sshIOS-2.0.tar.gz 2.2 kB Details

Release files / sshIOS-2.0.tar.gz

Download URL sshIOS-2.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
29359f7ba349940c8376d64ff67e25cde00c3ab76e482103bdd254b56bf3d58e
BLAKE2b-256 checksum
How to use checksums
794731e3695382cdad1c44dc472e14839013f1cbc3f08e8df7df165bd4124702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.0 This release

1 release file

1.0.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page