Book Image

Cisco ACI Cookbook

By : Stuart Fordham
Book Image

Cisco ACI Cookbook

By: Stuart Fordham

Overview of this book

Cisco Application Centric Infrastructure (ACI) is a tough architecture that automates IT tasks and accelerates data-center application deployments. This book focuses on practical recipes to help you quickly build, manage, and customize hybrid environment for your organization using Cisco ACI. You will begin by understanding the Cisco ACI architecture and its major components. You will then configure Cisco ACI policies and tenants. Next you will connect to hypervisors and other third-party devices. Moving on, you will configure routing to external networks and within ACI tenants and also learn to secure ACI through RBAC. Furthermore, you will understand how to set up quality of service and network programming with REST, XML, Python and so on. Finally you will learn to monitor and troubleshoot ACI in the event of any issues that arise. By the end of the book, you will gain have mastered automating your IT tasks and accelerating the deployment of your applications.
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Tracking ACI endpoints


Once the number of tenants increases, it is likely that the number of virtual machines will also increase. How, then, do you keep track of all the VMs and to which tenant they belong?

Thankfully, the ACI Toolkit can help you with this (and a host of other scenarios).

How to do it…

  1. Download the ACI Toolkit virtual machine from http://bit.ly/1IzliZY.
  2. Deploy the OVA file to create the VMWare guest virtual machine.
  3. Update the packages by logging in to the virtual machine using the username and password of acitoolkit, then run the command sudo ~/install.
  4. Connect the APIC to the ACI Toolkit’s MySQL database by running the following command:
      python aci-endpoint-tracker.py 
      -u https://192.168.1.205 -l admin -p apicpassword -i
      127.0.0.1 -a root -s mysqlpassword
  1. Log in to MySQL using this command:
      mysql –u root –p

You will be prompted for the password.

  1. Switch to the ACI Toolkit database:
      use acitoolkit;
  1. We can then query the endpoint table by using the following...