Skip to main content

Go Forth and Gather

Gather - The Ultimate Source of Truth. Gather everything you ever wanted to know about your IT infrastructure into one simple searchable file, the GatherDB. Gather is a tool that creates a comprehensive Source of Truth (SOT) for your IT infrastructure. The GatherDB contains an unlimited amount of configuration management data as well as configuration state data.

One of the prime features of Gather is its speed. Gather allows you to get a deep understanding of the configuration and state of an infrastructure in a few minutes. In addition, Gather allows you to run ad hoc commands such as "show running-config" on a large campus environment in a few seconds.

GATHER

  • Three files are required. A target file, a command file, and an output file (does not need to exist before running script).
  • The target file is a list of network devices. One device per line.
  • The command file is a list of SHOW commands you want to issue to each one of the the devices in the target file. One command per line.
  • The output file is a file that you want to output the text DB to. This is file does not need to exist prior to running the script.

INSTALLATION

First make sure you are running the latest version of pip3 by upgrading your version of pip using the following command.

"pip3 install --upgrade pip" OR "python3 -m pip install --upgrade pip"

After uprading pip to the latest version, install gather using the following command:

"pip3 install gogather" OR "pip install gogather" if you only running python3 on your device

USAGE:

gather -h
usage: gather [-h] [-c COMMANDFILE] [-sc SINGLECOMMAND] [-o OUTFILE] [-u USERNAME] [-t TARGETFILE] [-st SINGLETARGET] [-p PASSWD] [-notag]

optional arguments:
-h, --help show this help message and exit
-c COMMANDFILE Enter Command File - One Per Line
-sc SINGLECOMMAND Enter A Single Command Enclosed in Quotes - Example "show version"
-o OUTFILE Enter Output Log File Name - If not specified default is GatherDB...
-u USERNAME Username
-t TARGETFILE Host File - One Per Line
-st SINGLETARGET Enter One Target Host Only
-p PASSWD Enter Password
-notag NO TAG places untagged output into seperate files

CLI Examples:

gather -u -p -t <target_file> -c <command_file> -o <output_file>
gather -u -p -st -sc "command" <--- Output file will be defaulted to GatherDB
gather -u -p -st -sc "command" -o <output_file>
gather -u -p -st -sc "command" -o <output_file> -notag <--- -notag places untagged output into seperate files

OR run gather in interactive mode:

VIRTUALENV % gather
Username? username
Password: password (not visible on terminal)
command file? command_file
target file? target_file
output filename? output_file

Gather logs in via SSH and issues the commands placed in the command file. Additionally, Gather tags the output flowing to output file with the target name as well as the command issued. I suggest placing every device in your data center in the target file.

HOWTO and DEMONSTRATION VIDEOS

Suggested Command File:

SEE: commands.txt

  • show version

  • show running-config

  • show running-config section bgp

  • show interface status

  • show vlan

  • show ip int brief

  • show running-config section ospf

  • show lldp neighbor

  • Any other command that is relevant to your specific equipment

  • A commands.txt sample file is included in this repo.

Capabilities

Gather tags every line of the output with the name of device and the name of the command, every line is searchable. Unix text search and manipulation tools such as: AWK, SED, GREP (-v, -i), uniq, uniq -c, wc -l (count number of lines), allow you to easily search your entire infrastructure at once for permanent and semi permanent data.

SEE: SAMPLE_QUERIES.md file for examples

Examples of GatherDB search

  • Gather all the serial numbers of every device and module.
  • Sort and count things, such as compile and count the number and type of wireless access points installed
  • Drill down searches to level of specificity required. Example: Once all types of wireless access points are discovered list all the instances and locations of a particular type of AP.
  • During an outage, you can query and trouble shoot the device as if it was still operating.
  • Run a complete configuration backup on all of your campus devices in a few seconds.
  • Find all unused ports on all tors
  • Verify the consistent mlag configs on all devices
  • Display all VLANS defined on all TORS and Spines.
  • Display all unique version of code running and then identify devices that are not running the standard

Metadata

Release files for gogather 0.1.6

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

Source distribution (sdist)

Source distribution for gogather 0.1.6
File Size Uploaded Provenance Actions
gogather-0.1.6.tar.gz 8.2 kB Without provenance Details for gogather-0.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 20.3 kB

Release files / gogather-0.1.6.tar.gz

Download URL gogather-0.1.6.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
85786ba33037a3ff8463becc9b5e8af2ca094830b81baec6aaf8b0ed9a66452d
BLAKE2b-256 checksum
How to use checksums
7daffcca23a724c756508d5a52c7322f34abdad3e6f770a9a68c20be1dac834f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.2

Release files / gogather-0.1.6-py3-none-any.whl

Download URL gogather-0.1.6-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c607f559286da16417b4518862237ae9b1da84be1167df8caa0dd3518480b6a2
BLAKE2b-256 checksum
How to use checksums
5d89aa69f745714a6823c733b800e2779a8677a98fe1d5fe48debca34326f50a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.2

Security for gogather 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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