Skip to content

Sherlog is an innovative web application designed to emulate a switch CLI for streamlined interaction with tech-support files. It allows users to effortlessly upload and run switch commands with advanced features such as tab autocompletion, command prompts using ‘?’, Linux-style piping and ‘intuitive search’.

Notifications You must be signed in to change notification settings

narrowendrun/sherlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sherlog

An innovative web application designed to emulate a switch CLI for streamlined interaction with tech-support files. It allows users to effortlessly upload and run switch commands with advanced features such as tab autocompletion, command prompts using ‘?’, Linux-style piping and ‘intuitive search’.

A modified version of sherlog is present at Arista Networks as an internal tool that has the added functionality of pulling files from a central repository.

Features

  • upload your tech-support file(s) (.gz and .log)
  • 'tab'for autocomplete and '?' for command prompts
  • intuitive command search with Shift + Enter
  • notes for keeping track of quick pointers
  • command history to keep track of your commands
  • fileswitcher to keep the files you have uploaded organized

Deployment

Clone the project

   git clone https://github.com/narrowendrun/sherlog.git

This project can be run as a docker container (recommended) and locally

Docker

Please ensure to install docker and have the daemon running

   cd /path/to/sherlog
   docker-compose up -d --build

Access sherlog from http://localhost:3000/

Run Locally

Go to the reactpage directory

   cd /path/to/sherlog
   cd reactpage

Edit the target URL in vite.config.js by uncommenting the target key-value pair that correspondds to running locally

//for running locally using npm run dev
//target: "http://127.0.0.1:5000",

Install dependencies on the reactpage directory

   npm install

Go to the flaskserver directory

   cd /path/to/sherlog
   cd flaskserver

Install dependencies

note: if your shell does not recognise pip try using pip3
  pip install -r requirements.txt

Start the servers from the appropriate directories

   cd /path/to/sherlog/reactpage
   npm run build
   npm run preview
note: if your shell does not recognise flask try executing python app.py
   cd /path/to/sherlog/flaskserver/
   flask run

About

Sherlog is an innovative web application designed to emulate a switch CLI for streamlined interaction with tech-support files. It allows users to effortlessly upload and run switch commands with advanced features such as tab autocompletion, command prompts using ‘?’, Linux-style piping and ‘intuitive search’.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published