RSI (Request Support Information) parser and Junos CLI simulator
Project description
rsi-explorer
A Juniper RSI (Request Support Information) parser and interactive Junos CLI simulator. Load an RSI file and explore its contents as if you were on the actual device, with tab completion, pipe commands, and contextual help.
Quick Start
uvx rsi-cli <rsi-file>
Installation
Install as a persistent tool with uv:
uv tool install rsi-cli
Or clone and install from source:
git clone git@github.hpe.com:michael-tucker1/rsi-device.git
cd rsi-device
uv sync
For Junos device integration (optional):
uv sync --extra junos
Usage
After installing with uv tool install:
rsi-cli <rsi-file>
From a cloned source checkout (after uv sync):
uv run rsi-cli <rsi-file>
CLI Features
- Tab completion — press TAB to autocomplete commands at any level
- Contextual help — append
?to any command to see available subcommands - Command history — arrow keys to recall previous commands
- Partial matching — abbreviate commands (e.g.,
sh verforshow version) - Flexible argument order —
show interfaces terse ge-0/0/0andshow interfaces ge-0/0/0 terseboth work
Pipe Commands
Chain output through filters using |, just like on a Junos device:
show interfaces terse | match ge-0
show config | display set | save backup.conf
show interfaces | count
show route | except 0.0.0.0 | last 20
Available pipes: no-more, save <file>, count, match <pattern>, except <pattern>, last <N>, find <pattern>, trim <N>, display set
CLI Options
rsi-cli <rsi-file> # interactive mode
rsi-cli <rsi-file> --no-pager # disable paging
Development
uv sync --dev
uv run pytest
uv run ruff check rsi/
uv run ruff format rsi/
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 rsi_cli-1.0.2.tar.gz.
File metadata
- Download URL: rsi_cli-1.0.2.tar.gz
- Upload date:
- Size: 64.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4680151524253d681e51de86559d60e299f96fcf22075c003c8bb1c620fea16a
|
|
| MD5 |
8df2b80d5517538fd5e1550494821a60
|
|
| BLAKE2b-256 |
340a449247c0d98550b9313a5ee85a74e8a16ffd0ec58e2442d3b51ee5cfb589
|
File details
Details for the file rsi_cli-1.0.2-py3-none-any.whl.
File metadata
- Download URL: rsi_cli-1.0.2-py3-none-any.whl
- Upload date:
- Size: 78.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1a454b3099822688a3c6ee43d6eba4bb42a315e04b6654c51f176f6dce5f8ab
|
|
| MD5 |
868ad4279b1b2135046749f08a488116
|
|
| BLAKE2b-256 |
8fdb036e90413b88474254e2b2c869e19a54e1b2defd7ea70153700575a9777a
|