Skip to main content

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.

RSI CLI Demo

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 ver for show version)
  • Flexible argument ordershow interfaces terse ge-0/0/0 and show interfaces ge-0/0/0 terse both 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rsi_cli-1.0.1.tar.gz (64.3 kB view details)

Uploaded Source

Built Distribution

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

rsi_cli-1.0.1-py3-none-any.whl (78.3 kB view details)

Uploaded Python 3

File details

Details for the file rsi_cli-1.0.1.tar.gz.

File metadata

  • Download URL: rsi_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 64.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.16

File hashes

Hashes for rsi_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6c6b477087f26da0a3b51eaecd6f8cdede1823c84a0b82db3291e4532a89eebb
MD5 b2c4f9355b1b038e4517477260301f1f
BLAKE2b-256 8e16c9eadbb58181c261173db7c0bb17cc187f03df66188060f87c6650885dd7

See more details on using hashes here.

File details

Details for the file rsi_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: rsi_cli-1.0.1-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

Hashes for rsi_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cca57ef5822c36378700960876e5c02f46ae6663f4e166303ce821d93d13dde
MD5 4c3a3d0fc00155111854b77ab8af1420
BLAKE2b-256 bf56b6af362225a97bf474ab23be34aa7e5ffb3fc8e35a11cbc185b0ebc9f70a

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