Skip to main content

nac-analytics

Today this tool covers Cisco ACI via Nexus Dashboard 4.2.1+; the intent is to grow beyond Nexus Dashboard and add support for additional Cisco products, so one tool can drive change analytics across platforms.

CLI for change analysis on Cisco ACI fabrics via Nexus Dashboard 4.2.1+.

Commands are grouped per Cisco product: nac-analytics <product> <command>.

Example output

delta — compare snapshots after a change:

$ nac-analytics nd delta -output text

command: delta
fabric: FABRIC-A
pre_snapshot: snap-pre
post_snapshot: snap-post

=== Summary (/deltaAnalysis/summary) ===

New anomalies by severity:
  major     2

FAIL: New anomalies at or above the failure threshold: 2 major.

=== Resources (/deltaAnalysis/resources) ===
resourceType           new       removed       earlier         later
      tenant             1             0            12            13

=== Anomalies (/anomalies/details) ===
  severity     mnemonic                         resource              reason
  major        ENDPOINT_DUPLICATE_IP            web-epg              duplicate ip detected

compliance — rule status for the latest snapshot (by default, latest snapshot is used):

$ nac-analytics nd compliance -output text

command: compliance
fabric: FABRIC-A
snapshot: latest

Compliance:
  scope: latest snapshot
  enforced_rules: 42
  violated_rules: 1
  violating_rules:
    ruleName=no-open-tenant  ruleType=configuration  violationsCount=1

See prechange, delta, and compliance for usage.

Installation

Requirements: Nexus Dashboard 4.2.1+, Python 3.10+, an ACI fabric registered in Nexus Dashboard.

Install from PyPI:

pip install nac-analytics
nac-analytics --help

Or with uv:

uv tool install nac-analytics
nac-analytics --help

Quick start

nac-analytics init
# edit nac-analytics.yaml and .env
nac-analytics nd doctor

After pip install, init writes ./nac-analytics.yaml and ./.env from bundled templates. Git clone users can copy from examples/nexus_dashboard/config/ instead. See examples only for optional lab scripts (Terraform, CI walkthrough).

Documentation

Topic Link
Documentation hub docs/README.md
Nexus Dashboard docs/nexus-dashboard.md
Command reference docs/commands/README.md
Exit codes docs/exit-codes.md
Configuration docs/configuration.md
Examples (optional lab scripts) examples/README.md

Metadata

Release files for nac-analytics 0.2.0

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

Source distribution (sdist)

Source distribution for nac-analytics 0.2.0
File Size Uploaded
nac_analytics-0.2.0.tar.gz 52.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nac-analytics 0.2.0
File Interpreter ABI Platform
nac_analytics-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 120.5 kB

Release files / nac_analytics-0.2.0.tar.gz

Download URL nac_analytics-0.2.0.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b4c55b4e5fcf205c491e6fbf010fe5f36633b0044e6b1b38d2f7862291ca6bdd
BLAKE2b-256 checksum
How to use checksums
9c59c74c7bdcca2c10f37fa45ce504fbb34d79beaeb4a8125d2695f4e49478c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nac_analytics-0.2.0-py3-none-any.whl

Download URL nac_analytics-0.2.0-py3-none-any.whl
Size 68.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86a17befa95e47faf0ad75af156e9c52faa42a6953f07c69b5970b7df7581cea
BLAKE2b-256 checksum
How to use checksums
e5ef175867427a6d58bd4fbde8cf45d275e52b4c5779cf456b1fc9971dd31d8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.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