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.1.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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: resolv3r-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4d433dc0d87de01bc2e4cc4e31a417fdad0faaab4452c5409ceeddee5357f1e3
MD5 4a17289addf2d9c82916082292511a0b
BLAKE2b-256 f0a98acdada676f68e9e9c8fedf23dbc16614c180b8951458edb51be1d29a43e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resolv3r-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de4f1169069fca6dafb856c2f302b2cf71d0df7c14ed5c2d8dfd95964d2799f8
MD5 6f0c8e38bd26c458895fbe90880b0343
BLAKE2b-256 cecc2862e4508fc4d36302ef382e8799467e4b2467fa188adde056c6aa76ec58

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