Skip to main content

Dail_API

Project description

Cisco Router NETCONF Script

This Python script retrieves configuration data from a Cisco router using NETCONF. It utilizes the ncclient library for NETCONF communication and optionally leverages Google's Generative AI service (currently Gemini) for XML request generation.

Features:

Connects to Cisco IOS XE or IOS XR routers.
Retrieves configuration data using NETCONF.
Extracts leaf nodes from the configuration data.
Allows user selection of specific attributes through:
    Line number from a generated file.
    Attribute name search.
Creates the corresponding NETCONF XML request (optional, uses Google Generative AI).

Installation:

Bash

Plain Text

pip install -r requirements.txt

Usage:

Configure Script:
    Update GOOGLE_API_KEY environment variable with your Google API key (optional for Generative AI).
    Edit main function to specify Cisco router version (IOS XE or IOS XR).
Run Script:
    Execute python main.py
Follow Prompts:
    Provide router details (IP, username, password).
    Select attributes for retrieval (optional, uses Google Generative AI).

Dependencies:

ncclient
xmltodict
argparse
langchain (optional, for Generative AI)

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

DIAL_API_THULASI24-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

DIAL_API_THULASI24-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file DIAL_API_THULASI24-1.0.0.tar.gz.

File metadata

  • Download URL: DIAL_API_THULASI24-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for DIAL_API_THULASI24-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7c23e45b90b2c1e8e836fec4e798b99ebc3ed220de530a89065ac853bf727112
MD5 05f6567a32279905fe974f3cde72442c
BLAKE2b-256 dfa28485bd811d2c6f8c0b9b0e53504958f58237f4cc9af2d29142a16a94b6bd

See more details on using hashes here.

File details

Details for the file DIAL_API_THULASI24-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for DIAL_API_THULASI24-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5819da0627e0a14bbcabc78f26e57c2e76a467d52a77c6ade960e57de6c45a
MD5 16d106b2755d53e598d8335085e4b2de
BLAKE2b-256 c7ae195abe5c7f79aae609de628df92a75bf793a7ae7b96b5cc6a310c28a0fba

See more details on using hashes here.

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