Skip to main content

No project description provided

Project description

Discover contiguous network inventory

Discover all types of connected network equipment using CDP neighbor information.

Installation

Install package using pip

  pip install cisco_discovery

Run Locally

Clone the project

  git clone https://github.com/tkdebnath/cisco_discovery.git

Go to the project directory

  cd cisco_discovery

Install dependencies

  pip install -r requirements.txt

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

NETMIKO_USERNAME="<username>"

NETMIKO_PASSWORD="<password>"

Usage/Examples

from cisco_discovery import runner

if __name__=='__main__':
    
    host = input("Enter any IP of cisco router or switch")
    
    # preference of passed username and password argument is higher than env variable
    obj_discovery = runner(host=host, threads=10, username="username", password="password", env=".env")
    
    """
    default value for directory= "output" 
    default value for file_name= datetime.now().strftime(r"%d_%m_%Y__%I-%M_%p")
    """
    # Generate CSV file for nodes and edges
    obj_discovery.to_csv_nodes(directory="output", file_name= "file_name")
    obj_discovery.to_csv_edges(directory="output", file_name= "file_name")
    
    # Generate Excel file for nodes and edges
    obj_discovery.to_excel_nodes(directory="output", file_name= "file_name")
    obj_discovery.to_excel_edges(directory="output", file_name= "file_name")
    
    # Generate CSV for nodes and edges at once
    obj_discovery.to_csv(directory="output", file_name= "file_name")
    
    # Generate CSV for nodes and edges at once
    obj_discovery.to_excel(directory="output", file_name= "file_name")

Authors

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

cisco_discovery-0.0.1.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

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

cisco_discovery-0.0.1-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file cisco_discovery-0.0.1.tar.gz.

File metadata

  • Download URL: cisco_discovery-0.0.1.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cisco_discovery-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d84010a583eafae74b5054479d4ffbd557cb43a79fe6bbcb81f4ee0eef38033d
MD5 9f0b6634b305b11fe6722f23f8c1e543
BLAKE2b-256 ed8003ea983c23ab0a357fbaa8f7c46ff3ffdf372b3d8a5ce70cc87f51851a13

See more details on using hashes here.

File details

Details for the file cisco_discovery-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cisco_discovery-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1dbb904f1b0013e4f01a2a5dde63b46a7aec872d515e89bf6e6fb2c71d9d4a
MD5 7b55de8f349ed9e4041bce8c49091e80
BLAKE2b-256 64cc50f5bf3edb708aec16ecbb3398b27f40f9b3d0c9b7020ea630b1b4bf4c91

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