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.3.tar.gz (3.1 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.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: resolv3r-1.0.3.tar.gz
  • Upload date:
  • Size: 3.1 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.3.tar.gz
Algorithm Hash digest
SHA256 a62b9192ea6b127677e7462b62af5536f20e1a00bf4a2c4e58cc17f3fbbbbfe5
MD5 d73dd868b5b4c7e65160c131c78ea354
BLAKE2b-256 0623caad19dbd7671be054f922a499c42ddb47ba8ac41b19c7a9750b8d5a5ba0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resolv3r-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 add95d51127d917ff816c927066d6bcf6b7035a3065a33811da546b9c5501a63
MD5 aa58d20001d66cba1459b0e5068a57e4
BLAKE2b-256 2b0bc618c02ae297043ef0b3b9ea5c5c124d0ffdce57324baf1d6f9b4d93134a

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