Skip to main content

A library to simplify telnet connections to Cisco IOS devices

Project description

https://img.shields.io/pypi/v/unha.svg?style=flat-square https://img.shields.io/pypi/pyversions/unha.svg?style=flat-square https://img.shields.io/pypi/l/unha.svg?style=flat-square

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


Download files

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

Source Distribution

unha-0.1.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unha-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for unha-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9eaf7d4f05a01218ab68030ed22d1a63e414d3e9d62b0685e42a76540c13cbbb
MD5 aea9996958f26f31357ec29dde1b7607
BLAKE2b-256 ba550ac489f065e06617f8925087ec26acadb5418aa6a6c6aaec466a93bffbdd

See more details on using hashes here.

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

Hashes for unha-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59284fc9956e2515327fda08f6d8883502600ca15062f1d540c5c8ce51c71492
MD5 80c8aaaff0e55abee9bdb60d2fdf8d7f
BLAKE2b-256 c3ee9b38b6cf2432a4948798e75779c389156c0116ae7599ba89d02733855dc3

See more details on using hashes here.

Supported by

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