published

Tar Shooter

Tar Shooter is a Python script to help you by uncompressing ".tar.gz" files and parsing Cisco outputs inside the tar file.

Contacts

Solution Components

  • Python

Installation:

Clone the repo

git clone https://github.com/RenanHingel/tarshooter.git

Install required modules

pip install -r requirements.txt

Python

The script was written with default Python modules, no extra modules are required!

Usage:

  1. Locate the .gz compressed archive, to make this step easier simply put the archive in the same folder as the Python script.
  2. Run the Python script and select the option you need, 1 to uncompress and 2 to parse a Cisco tech file.

Oooooor, simply watch the gif 😃:
Guide

A sample .gz file was provided containing a simple file with three outputs, so you can test this script.

Other info:

I'm developing this project to improve my Python skills. It was my first time parsing a big file and also working with gz compressed files, I am sure this can be improved a LOT if you have Python skills, feel free to improve upon this source code.

Special thanks to Willians Crisanto @willoR2 who approached me with the need to have a script to improve his work routine.

License

This source code is provided under MIT License, for details see LICENSE

View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Programming Languages

    Python
  • License

    MIT License

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.