Skip to main content

ACIClean is a tool that helps you clean up your Cisco ACI infrastructure by detecting and reporting on unused objects.

Project description

ACIClean is a tool that helps you clean up your Cisco ACI infrastructure by detecting and reporting on unused objects. It uses the ACI COBRA Python SDK provided by Cisco.

ACIClean currently detects and reports on the following objects:

  • VLAN Pools

  • AAEPs

  • Physical Domains

  • Leafswitch Profiles

  • Accessports

  • PCs and VPCs

Installation

To install ACIClean, follow these steps:

  1. Install the ACI COBRA Python SDK by following the instructions here.

If you dont’t have the SDK modules handy, run the following commands to install an ACI v5.2.7 SDK module:

  • pip install https://github.com/cubinet-code/aci_cobra_sdk/raw/main/acicobra-5.2.7.0.7-py2.py3-none-any.whl

  • pip install https://github.com/cubinet-code/aci_cobra_sdk/raw/main/acimodel-5.2.7.0.7-py2.py3-none-any.whl

  1. Run pip install aciclean to install this module and command line script.

Usage

To use ACIClean, run the aciclean.py script. The script will detect and report on any unused objects in your Cisco ACI infrastructure.

The following APIC credentials will be read from the environment, if they exist:

  • ACI_APIC_URL

  • ACI_APIC_USER

  • ACI_APIC_PASSWORD

aciclean --help

Usage: aciclean.py [OPTIONS]

Options:
  --url TEXT       APIC URL including protocol.
  --user TEXT      APIC user.  [default: (admin)]
  --password TEXT  APIC password.
  -w, --write      Write report to aciclean_report.txt
  -r, --remove     WARNING: !!! This will remove all policies without
                   relationships from the APIC !!!
  --help           Show this message and exit.

Contributing

Contributions to ACIClean are welcome! If you find a bug or have a feature request, please open an issue on the GitHub repository. If you would like to contribute code, please fork the repository and submit a pull request.

License

ACIClean is licensed under the MIT License.

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

aciclean-0.1.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

aciclean-0.1.5-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file aciclean-0.1.5.tar.gz.

File metadata

  • Download URL: aciclean-0.1.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for aciclean-0.1.5.tar.gz
Algorithm Hash digest
SHA256 168ec5d4199f72a362a0602448dded2bd34d2d04cd17f3ba25d96075d7f5f30d
MD5 bff8e2fe1e5ebaff1fe820c965a934c2
BLAKE2b-256 9653a40d1879626473e20053fbe40ad3515ee29be58048e203bd688eba25028e

See more details on using hashes here.

File details

Details for the file aciclean-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: aciclean-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for aciclean-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d9afdb1a9ea5d6c83e8426e8b633faee7773436a116d11b0545f9c787a5e21e6
MD5 40ecad95d565ea4a98ca644361e9183e
BLAKE2b-256 34e48f439dfb96035f297e7dfee4786741e9c59b2475e5edf6a0e3cead9f9c02

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