This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

ACI-error-checking

Connects to the ACI's API finds ports with an error # higher than what is listed, then pulls LLDP data down and reports on what it is seeing.
Then it will email the results to a list of people who should resolve the issues.

The main thing you'll need to do is edit ACI_sites in ACI_functions.py to reflect what ACIs you'll be logging into

Also for our ACI you have to prepend some stuff onto your username. That's also in ACI_functions.py.

The email should look something like this (Had to change it a little as the HTML was killing it):


Data_Center: (DC_NAME)

Device with errors:

Node: node-15

SN: FAKESN1 

Port:eth1/1

Error Count:188

Neighbor Device:

Name: Fake_name.fake-company.com

Desc: topology/pod-1/node-16

Node: node-16

SN: FAKESN2

Port: eth1/50

LLDP Neighbor not found for this entry

Device with errors:

Data_Center: (DC_NAME)

Node: node-15

SN: FAKESN3

Port:eth101/1/6

Error Count:1131

View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Products

    ACI
  • Programming Languages

    Python
  • License

    Apache License 2.0

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.