Skip to main content

A Python package for visualizing ACI vetR JSON data

Project description

published PyPI - Python Version Code style: black Imports: isort PyPI - License PyPI - Version PyPI - Status Pepy Total Downlods Commit Activity Say Thanks!

Table of Contents

  1. vetR Summarizer
  2. Objective
  3. How it Works
  4. Installation
  5. Usage
  6. Use Case

ACI

vetR Summarizer

This tool summarizes data from any APIC collected by vetr-collector.

Objective

This tool processes data collected by vetr-collector for the ACI health check and displays it in a pretty HTML tabluar format. This tool can also be run from any computer having aci-vetr-data collected from any APIC.

The aci-vetr-data directory you get from vetr-collector v3.3.0 includes 91 raw JSON files.

$ ls aci-vetr-data
apPlugin.json
bgpRRNodePEp.json
configRsRemotePath.json
coopPol.json
ctxClassCnt.json
datetimeNtpProv.json
datetimePol.json
epControlP.json
epIpAgingP.json
epLoopProtectP.json
...
<output_truncated>

A sample preview of the output HTML

Preview

How it works

This tool visualizes data collection for the ACI health check from vetr-collector.

Once the analysis is complete, the tool creates a vetr-summary.html file. This file displays the raw JSON data in a DataTable tabular format. DataTable adds the ability to easily search for properties in concern.

Almost all MOs include unnecessary configuration properties. Some of these properties: extMngdBy, childAction, userdom, etc. These unnecessary properties (key-value pairs) are excluded from the report for a neater representation of the output in the HTML file.

All excluded keys can be found in config/excluded_keys file. You can also customize these keys-to-exclude according to your own case. An empty excluded_keys file will not exclude any keys.

Raw JSON files with empty imdata and totalCount equal to 0 are not presented in the HTML vetr-summary.html summary report.

Installation

Install from PyPi

$ pip install --user vetr-summarizer

Usage

Both keyword arguments are optional. Currently html is the only supported output format.

$ vetr-summarizer --help
usage: vetr-summarizer [-h] [-f {html}] [-x EXCLUDE_FILE] [-v] directory  

Process and summarize aci-vetr-data JSON files into HTML reports.

positional arguments:
  directory             A path to the directory containing the JSON files.

options:
  -h, --help            show this help message and exit
  -f {html}, --format {html}
                        Output format (html).
  -x EXCLUDE_FILE, --exclude-file EXCLUDE_FILE
                        File containing keys to exclude from the summary HTML report.
  -v, --version         show program's version number and exit

Thanks for using vetr-summarizer! :)
$ vetr-summarizer "/path/to/aci-vetr-data"

HTML output is written to /path/to/vetr-summary.html

With custom excluded keys

$ vetr-summarizer -x custom_excluded_keys "/path/to/aci-vetr-data"

HTML output is written to /path/to/vetr-summary.html

Use Case

I was once going through the Cisco Community and found a question, what is actually vetr zip logs?

Question

So, I decided to try vetr-collector on an environment. But, I got to open each raw JSON file to check whether it has objects and was time-consuming going through all the files. So, I made this package to summarize the output from vetr-collector in a pretty HTML tabular format.

Author

Osama Abbas

Contributions

As there is always a room for imporovment, you are welcome to contribute to vetr-summarizer.

Project details


Download files

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

Source Distribution

vetr_summarizer-0.2.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

vetr_summarizer-0.2.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file vetr_summarizer-0.2.0.tar.gz.

File metadata

  • Download URL: vetr_summarizer-0.2.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for vetr_summarizer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 47af7b657f6add293ba7ed6cf8eeff74a325bcc932e29906fc617afc96cb7d50
MD5 121c25b46194912868973d15b74e824f
BLAKE2b-256 2f4afd643930574e79000a92a80fb1cdbf74bea29e98538b90f41411ecae7b64

See more details on using hashes here.

File details

Details for the file vetr_summarizer-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vetr_summarizer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b37057a7c70b352c8ee6daaa886e82292e7d87330cc24d39135ad82628a80ab
MD5 7ec0b75a2d6889a5c8e9c8420370df8e
BLAKE2b-256 d1e54f479422f92faec1192de5519e5651658ef0c18b399eefb678ef673f309f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page