Skip to main content

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

Metadata

Release files for jitter00-jinfo 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jitter00-jinfo 0.2.8
File Size Uploaded
jitter00_jinfo-0.2.8.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jitter00-jinfo 0.2.8
File Interpreter ABI Platform
jitter00_jinfo-0.2.8-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / jitter00_jinfo-0.2.8.tar.gz

Download URL jitter00_jinfo-0.2.8.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
371160b43d14709518a616b38d4c22fb7e6ddc048d9f896681074e78ceba17dc
BLAKE2b-256 checksum
How to use checksums
a99a4c314bbd6d273097e3022a8f1594cbe51d4be6e3f61f7322f3c8632a40d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / jitter00_jinfo-0.2.8-py3-none-any.whl

Download URL jitter00_jinfo-0.2.8-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3ade9dd192ecadf682e978606e1d3eb868430be14b0727ee551fc4add500c1f
BLAKE2b-256 checksum
How to use checksums
a2550cc6f7adbfc6e25884e8537f2fa1d9cdd322cf7948c0bb4cfd1105fb2a2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page