Skip to main content

Juniper device information retrieval tool via NETCONF

Project description

Jinfo - Juniper Device Information Tool

A Python CLI tool that connects to Juniper devices via NETCONF and retrieves software version information.

Features

  • Connect to Juniper devices via NETCONF
  • Retrieve software version information
  • Output results in JSON format
  • SSH key-based authentication (no password required)

Requirements

  • Python 3.10 or higher
  • SSH key configured on the Juniper device for the user running the script
  • NETCONF enabled on the target Juniper device

Installation

Install the required dependencies:

pip install -e .

Usage

After installation, use the jinfo command:

jinfo <device-hostname>

Arguments

  • hostname: Juniper device hostname or IP address (required)

Examples

# Connect to a device
jinfo router1.example.com

# Connect using IP address
jinfo 192.168.1.1

# Connect to any Juniper device
jinfo juniper-device

Output

The tool outputs software version information in JSON format:

{
  "host-name": "router1",
  "product-model": "MX480",
  "junos-version": "21.2R3-S1.7"
}

Configuration

Before running the tool, ensure:

  1. Your SSH public key is added to the Juniper device
  2. NETCONF is enabled on the device:
    set system services netconf ssh
    commit
    
  3. The device is reachable on the specified port (default: 830)

Versioning

This project uses Semantic Versioning based on Conventional Commits.

Versions are automatically determined from commit messages:

  • feat: → Minor version bump (0.1.0 → 0.2.0)
  • fix: → Patch version bump (0.1.0 → 0.1.1)
  • feat!: or BREAKING CHANGE: → Major version bump (0.1.0 → 1.0.0)

See SEMANTIC_VERSIONING.md for detailed information.

License

MIT

Test

Test feature

Trigger release

Test

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

jitter00_jinfo-0.2.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

jitter00_jinfo-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file jitter00_jinfo-0.2.0.tar.gz.

File metadata

  • Download URL: jitter00_jinfo-0.2.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for jitter00_jinfo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 63d0b1bb7205200d9c653313fac27ed39192890e37cffefb37dad4a004a7541a
MD5 2dd348e1c38b832ff86a3d5a00e76aa0
BLAKE2b-256 bfcceb6a7d9d550ead634cf3ddf93514a5384e559298f6883919f78898208a2e

See more details on using hashes here.

File details

Details for the file jitter00_jinfo-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jitter00_jinfo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for jitter00_jinfo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 678e1e00a0689848e18a61f3b301470c5ebc6b1a9f387535650895eda7d9ae27
MD5 5761d9cffb8700700c959edb9bd0b8c4
BLAKE2b-256 b25431c46708f7f8a26a916d1a475aa8bc5d3c5fb78dbdd70e48ee51522f01bf

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