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:
- Your SSH public key is added to the Juniper device
- NETCONF is enabled on the device:
set system services netconf ssh commit - 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!:orBREAKING 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
371160b43d14709518a616b38d4c22fb7e6ddc048d9f896681074e78ceba17dc
|
|
| MD5 |
b7a61df0758c628b6256863dcc303d5e
|
|
| BLAKE2b-256 |
a99a4c314bbd6d273097e3022a8f1594cbe51d4be6e3f61f7322f3c8632a40d1
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3ade9dd192ecadf682e978606e1d3eb868430be14b0727ee551fc4add500c1f
|
|
| MD5 |
2505acfe600e3f8430c4b29e6dc9b5d5
|
|
| BLAKE2b-256 |
a2550cc6f7adbfc6e25884e8537f2fa1d9cdd322cf7948c0bb4cfd1105fb2a2f
|