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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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