12-16-2024 01:19 PM
I'm running APIC v4.2(7f) and my ACI data center consists of Nexus 9300 Leaf switches. I have over a thousand VPC configurations that need to be cleaned up (removed) and I wanted to ask if there was a site where I can look at scripts in helping do this. I've been using Postman for running some scripts that I've used in the past. Any help is appreciated in directing me to a script site or providing recommendations on completing my task.
Thank you
Solved! Go to Solution.
12-17-2024 10:14 PM
Hello @Ruben31620
Cleaning up a large number of VPC configurations in an ACI environment can be a daunting task, but using automation tools like Postman or Python scripts with the ACI REST API can make the process much more efficient. Since you're already familiar with Postman, you can leverage the ACI REST API to automate the removal of VPC configurations.
Here are some resources and steps to help you find or create scripts for this task:
Cisco DevNet is an excellent resource for finding scripts, APIs, and tools for managing Cisco ACI environments. You can find sample scripts, API documentation, and community-contributed tools.
Cisco ACI API Documentation:
https://developer.cisco.com/docs/aci/
This site provides detailed information about the ACI REST API, including how to interact with VPC configurations.
Code Exchange:
https://developer.cisco.com/codeexchange/
Search for ACI-related scripts here. You might find Python scripts or Postman collections that can help with bulk VPC cleanup.
If you're already using Postman, you can create or download Postman collections for ACI. These collections can include API calls for querying and deleting VPC configurations.
ACI Postman Collections:
Look for pre-built Postman collections for ACI on GitHub or Cisco DevNet. For example:
https://github.com/datacenter/ACI
Steps to Create a Postman Collection for VPC Cleanup:
GitHub is another great place to find community-contributed scripts for ACI. Search for "Cisco ACI VPC cleanup" or similar terms.
The Cisco ACI Toolkit is a Python library that simplifies interactions with the ACI fabric. You can use it to script the removal of VPC configurations.
ACI Toolkit:
https://github.com/datacenter/acitoolkit
Example Python Script for Deleting VPCs:
Replace <APIC-IP>, <USERNAME>, and <PASSWORD> with your APIC details.
If you're using Ansible for automation, Cisco provides ACI modules that can help manage and remove configurations.
Ansible ACI Modules:
https://docs.ansible.com/ansible/latest/collections/cisco/aci/index.html
Example Playbook for Deleting VPCs:
By leveraging these resources and tools, you should be able to efficiently clean up your VPC configurations. If you need further assistance with a specific script or API call, feel free to ask!
12-17-2024 10:14 PM
Hello @Ruben31620
Cleaning up a large number of VPC configurations in an ACI environment can be a daunting task, but using automation tools like Postman or Python scripts with the ACI REST API can make the process much more efficient. Since you're already familiar with Postman, you can leverage the ACI REST API to automate the removal of VPC configurations.
Here are some resources and steps to help you find or create scripts for this task:
Cisco DevNet is an excellent resource for finding scripts, APIs, and tools for managing Cisco ACI environments. You can find sample scripts, API documentation, and community-contributed tools.
Cisco ACI API Documentation:
https://developer.cisco.com/docs/aci/
This site provides detailed information about the ACI REST API, including how to interact with VPC configurations.
Code Exchange:
https://developer.cisco.com/codeexchange/
Search for ACI-related scripts here. You might find Python scripts or Postman collections that can help with bulk VPC cleanup.
If you're already using Postman, you can create or download Postman collections for ACI. These collections can include API calls for querying and deleting VPC configurations.
ACI Postman Collections:
Look for pre-built Postman collections for ACI on GitHub or Cisco DevNet. For example:
https://github.com/datacenter/ACI
Steps to Create a Postman Collection for VPC Cleanup:
GitHub is another great place to find community-contributed scripts for ACI. Search for "Cisco ACI VPC cleanup" or similar terms.
The Cisco ACI Toolkit is a Python library that simplifies interactions with the ACI fabric. You can use it to script the removal of VPC configurations.
ACI Toolkit:
https://github.com/datacenter/acitoolkit
Example Python Script for Deleting VPCs:
Replace <APIC-IP>, <USERNAME>, and <PASSWORD> with your APIC details.
If you're using Ansible for automation, Cisco provides ACI modules that can help manage and remove configurations.
Ansible ACI Modules:
https://docs.ansible.com/ansible/latest/collections/cisco/aci/index.html
Example Playbook for Deleting VPCs:
By leveraging these resources and tools, you should be able to efficiently clean up your VPC configurations. If you need further assistance with a specific script or API call, feel free to ask!
12-18-2024 07:40 AM
Thank you AshSE, very helpful and exactly what I was needing!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide