A library to simplify telnet connections to Cisco IOS devices
Project description
A library to simplify telnet connections to Cisco IOS devices
Installation
Unha is distributed on PyPI and is available on Linux/macOS and Windows and supports Python 3.6+.
$ pip install -U unha
Why not just use Netmiko?
I use Netmiko whenever possible. Unfortunately I have some old cisco devices that just refuse to work with Netmiko. I spent a lot of time trying to make it work but eventually gave up.
Unha is a fallback library that I use when Netmiko with cisco_ios_telnet fails to connect to my stuborn devices.
Usually my scripts will try to connect to the devices using the fololwing methods:
Netmiko with device_type cisco_ios
Netmiko with device_type cisco_ios_telnet
Unha
Usage
I try to emulate the Netmiko methods.
>>> device = Unha('10.0.0.1', 'username', 'password')
>>> output = device.send_command('show version')
>>> device.send_config_set(['snmp ifmib ifindex persist', 'snmp-server enable traps cpu threshold'])
>>> device.disconnect()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unha-0.1.3.tar.gz.
File metadata
- Download URL: unha-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eaf7d4f05a01218ab68030ed22d1a63e414d3e9d62b0685e42a76540c13cbbb
|
|
| MD5 |
aea9996958f26f31357ec29dde1b7607
|
|
| BLAKE2b-256 |
ba550ac489f065e06617f8925087ec26acadb5418aa6a6c6aaec466a93bffbdd
|
File details
Details for the file unha-0.1.3-py3-none-any.whl.
File metadata
- Download URL: unha-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59284fc9956e2515327fda08f6d8883502600ca15062f1d540c5c8ce51c71492
|
|
| MD5 |
80c8aaaff0e55abee9bdb60d2fdf8d7f
|
|
| BLAKE2b-256 |
c3ee9b38b6cf2432a4948798e75779c389156c0116ae7599ba89d02733855dc3
|