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.8.tar.gz (6.2 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.8-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jitter00_jinfo-0.2.8.tar.gz
  • Upload date:
  • Size: 6.2 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.8.tar.gz
Algorithm Hash digest
SHA256 371160b43d14709518a616b38d4c22fb7e6ddc048d9f896681074e78ceba17dc
MD5 b7a61df0758c628b6256863dcc303d5e
BLAKE2b-256 a99a4c314bbd6d273097e3022a8f1594cbe51d4be6e3f61f7322f3c8632a40d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jitter00_jinfo-0.2.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c3ade9dd192ecadf682e978606e1d3eb868430be14b0727ee551fc4add500c1f
MD5 2505acfe600e3f8430c4b29e6dc9b5d5
BLAKE2b-256 a2550cc6f7adbfc6e25884e8537f2fa1d9cdd322cf7948c0bb4cfd1105fb2a2f

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