Skip to main content

GNS3Inspector

Overview

A simple python-package to help get an overview of what is configured in a network-project that was created using GNS3. It also allows to configure several routers at the same time.

NOTE: This tool doesn't verify any of the inputs you give to it. You should know what you're doing. Preferably you should run the commands on one router to see if they work. If they work as intended, you can use gns3inspector for an easier way to deploy the same configuration to other routers.

This tool was written to make your life a little easier using GNS3. It doesn't aim to be perfect or solve all the problems GNS3 has. I just wrote it quickly to help my group solve a university assignment easier. Feedback is still welcome, just hmu here on GitHub.

Installation

Simply run pip install gns3inspector to install the package. By adding .local/bin to your PATH variable, you can use the command gns3inspector from any directory.

gns3inspector uses the readline-library, to make it work make sure ncurses-dev is installed via apt.

Usage

Navigate to your GNS3 project directory (where the *.gns3-file is located), and open a terminal there. Then run gns3inspector to start the tool. If you opened a valid GNS3-project-directory, you will now see a terminal input >>> indicating that you can now run gns3inspector commands to see your project.

gns3inspector commands

The letter in parantesis can be used as a shortcut to run the commands, e.g. help will open the help-text, but h will also do that.

  • (h)elp: Shows a list of the available commands
  • (l)ist: Shows all the routers in the current project. It generates abbreviations and id's for each router, which can be used to not have to write out the full router name each time.
  • (s)elect: select the following device(s) as shown in (l)ist. E.g. TeleStar_R1 or TS_R1 or 3. The id's can also be selected as ranges, e.g. 3-5 or 4-9. To select all devices leave the parameter empty, defaults to all devices.
  • (c)config: shows all commands in the configuration starting with the provided prefix, e.g. "interface f/." If no parameter is provided, all the startup configuration is shown.
  • (e)dit: Like c, but now the selected configuration can be edited in a file called tmp_gns3.txt in the current working directory. Make sure that all the devices whose configuration you would like to edit are turned off in GNS3 before using this command!
  • (r)eload: reloads all the router's startup config files from disk
  • exit: or quit, ends the shell

Metadata

Release files for gns3inspector 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gns3inspector 1.0.2
File Size Uploaded
GNS3Inspector-1.0.2.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gns3inspector 1.0.2
File Interpreter ABI Platform
gns3inspector-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / GNS3Inspector-1.0.2.tar.gz

Download URL GNS3Inspector-1.0.2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
89cc926ccb839af91f8d737e4bc9c9efd7ccb8eece0425635cc42db2e13abf9a
BLAKE2b-256 checksum
How to use checksums
1f35fcdafe63737f05f41d26c0aa5656ae2524cf0004b0dc2f51299783590d02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-50-generic

Release files / gns3inspector-1.0.2-py3-none-any.whl

Download URL gns3inspector-1.0.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba4489365966a784a055b0648d628db905c45d1f191535c1d5c3442ece5ad744
BLAKE2b-256 checksum
How to use checksums
b9f5b7d6732c93425c5adbfa00d2ab9dcfc96e15e196221417ee7058717975dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-50-generic

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page