Skip to main content

A simple python package aimed at simplifying the vendor resolution process for network devices

Project description

Overview

Resolv3r is a simple python package aimed at resolving the vendor associated with a given ip

Note: this package only resolves devices as either cisco or aruba!

To install using pip, simply run:

pip3 install resolv3r

Dependencies

Tested in 3.10 (Use in older versions of python at your own risk)

Look in pyproject.toml for more details into the project dependencies:

  • asyncssh
  • netmiko

How to use?

In your python project, simply write:

from resolv3r import Resolver

Now, to resolve a given ip to a vendor, you first need to create a Resolver object:

resolver = Resolver("192.168.0.1", "username", "password")

Now, begin the resolution process using:

device_vendor = resolver.detect_vendor()

This should return the correct vendor of the ip in question: either "cisco_ios" or "hp_procurve"

How does this work?

First, resolv3r uses asyncssh to connect to the device in question and determine device type using a single command ("sh version")

If that fails, resolv3r moves onto using netmiko's autodetection feature to resolve the vendor.

Finally, if that doesn't work, resolv3r raises a LookupError, indicating that the vendor resolution process was not successful.

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

resolv3r-1.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

resolv3r-1.0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file resolv3r-1.0.2.tar.gz.

File metadata

  • Download URL: resolv3r-1.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.18.11-200.fc36.x86_64

File hashes

Hashes for resolv3r-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3b8c4c860b413106f516f5f567e4dfa31526165ecdff9acd912711df0a9f6b6f
MD5 1d40c753d0a5dd7f9d3745136e01c1c7
BLAKE2b-256 339c3929d144e28cf5f6a7c75fe65c9b28e7e31100f1a5a48bb3b567d2fdcd32

See more details on using hashes here.

File details

Details for the file resolv3r-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: resolv3r-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.18.11-200.fc36.x86_64

File hashes

Hashes for resolv3r-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 11fdfc3e29744be8d962f1bd43f2aa95aae44b7650d6b0c09a641ca26a61b246
MD5 e8cf25cb6f443443473a4ea1c9924ff7
BLAKE2b-256 ddc46210edb664dc125fa40c2a454b185833808485ade8ea118f7543124ee3e7

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