Skip to main content

Mister CLI: A multi-router network command-line interface

Project description

Mr. CLI presents a command-line interface similar to network equipment operators are familiar with, giving them access to all of the equipment known by Notch Agents (see http://www.enemesco.net/notch/index.html)

When a command is executed, the individual commands are submitted to all targetted devices in parallel, making for a powerful diagnostic tool for planned events as well as diagnosis during break fix.

It can be used in both command-line mode:

$ mrcli localhost:8080 -t "^[abc].*" -c "sh int desc | i PO"
ar1.mel:
PO5/0                  admin down     down
PO6/0                  admin down     down

cr1.mel:
PO3/0                  up             up
PO4/0                  admin down     down
PO5/0                  admin down     down
PO6/0                  admin down     down

..and interactive mode:

$ mrcli localhost:8080
Welcome to Mr. CLI.  Type 'help' if you need it.
mr.cli [t: 0] > targets ^[ab].*
Targets changed to: ar1.mel, br1.mel
mr.cli [t: 2] > cmd show ver | i IOS
ar1.mel:
IOS (tm) 7200 Software (C7200-K4P-M), Version 12.0(33)S6, RELEASE SOFTWARE
(fc1)

br1.mel:
IOS (tm) 7200 Software (C7200-K4P-M), Version 12.0(33)S6, RELEASE SOFTWARE
(fc1)

Changelog

Version 0.2: 2010-07-21

  • mrcli/mrcli.py: Add documentation note. [0ec1a5dded46] [tip]
  • mrcli/mrcli.py: Correct misterminated error message. [a69a6da59a7f]
  • mrcli/mrcli.py: Can use netmunge router output munging library if available. To use, switch output mode to ‘csv’.

Project details


Download files

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

Files for mrcli, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size mrcli-0.2.tar.bz2 (8.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page