In this episode of ourongoing Catalyst Center Automation Series, we will focus on PnP Preparation lab and setting up a lab or production environment to enable this capability. As this lab is the first one in a series of labs, it aims to understand the various concepts required to support Plug and Play (PnP). The labs referenced within this series, as was previously mentioned, were designed for use in the DCLOUD environment; however, you may equally utilize them as part of a Proof of Concept setup at a customer's lab. These procedures may also help form part of a deployment or implementation. You may use these procedures to ensure that all the necessary steps are complete before onboarding any devices within Catalyst Center.
Within this series, we cover the following;
We will gain a thorough understanding of the various services required to support Plug and Play with Catalyst Center during this lab. Some of those concepts on which we have previously discussed in either the Catalyst Center Template repository or via other Cisco Blogs written by Adam Radford. Within the lab, we will concentrate our efforts on a practical understanding of how to set up the environment to ensure successful testing and facilitate an easier adoption of automation.
The PnP Preparation lab will guide you through setting up the various requirements of Plug and Play. The explanations and the various configuration snippets will ensure that you can have a device successfully discover Catalyst Center. The labs have been built using DCLOUD, as explained in part one of this series. For connection details:
Figure 1. PnP Preparation schematicInitially starting with the upstream device, we set up the required layer 3 and layer 2 connectivity with various examples. Additionally, we set up a seed device to provide direct connectivity to the target. We consider the seed device as a distribution switch with an SVI for the management network in our examples. Moreover, all the configurations are in the form of snippets that may be used in a standalone way or as part of a larger script to aid with PnP Preparation.
The guide will walk you through setting up the required services, which Plug and Play Onboarding utilizes. DHCP is required to automatically configure an address for the device to connect to Catalyst Center. During the lab, we will set up DHCP either on a Switch or on a server. The lab walks through both methods and gives configuration snippets for you to choose from.
Depending on the environment you are working with, you may prefer one discovery method over another. Within the lab and within the other sections of the GitHub repository, we discuss one method over another and give configuration snippets allowing you to quickly set up the desired method ensuring the supporting services are additionally in place. The various methods of discovery range from:
Each of these methods has dependencies and configuration, and we cover those equally within the lab.
The lab then ensures success through various testing methods, which you can utilize to ensure each service is working. Additionally, the device lands on Catalyst Center as the lab concludes.
Within DCLOUD, several sandbox-type labs are available. These self-contained environments are there to allow you to use them as you please within the time scheduled. In addition, this allows us a place to start practicing various concepts without fear of impacting production environments.
Therefore, to aid customers in the transition toward automation, we have put together a set of small helpful labs within a GitHub repository. As a result, we hope to demystify some of the complexities of setting up plug-and-play and help guide customers through the complexities and caveats. In this way, these self-guided labs provide a glimpse into the fundamentals of building velocity templates and provide examples that you can download and expand from. In addition, the sample templates and JSON files supplied are for easy import into Catalyst Centers' template editor for quicker adoption. Lastly, some scripts are ready-made excerpts of code that allow you to build the environment to test.
First, in a practical lab guide, we step by step delve into the concepts of building templates and methodologies for using both Onboarding and DayN templates. Second, we provide answers and explanations to many of the questions that come up during automation workshops. Our hope is that you find the information both helpful and informative. Thus, we hope to give a well-rounded explanation of automation methods and concepts that we can easily expand upon for production purposes. Finally, the lab PnP Preparation content explains the overall Plug and Play setup steps.
To help customers succeed with Cisco Catalyst Center automation, you may utilize the above labs as they have been designed to work within DCLOUD's Cisco Enterprise Networks Hardware Sandbox Labs in either:
The DCLOUD labs allow you to run these labs and gives an environment to try the various code samples. You may choose to develop and export your code for use in production environments. Also, this gives you an environment where you can safely POC/POV methods and steps without harming your production environments. The DCLOUD environment also negates the need for shipping equipment, lead times, and licensing issues needed to get moving rapidly. Please do adhere to the best practices for the DCLOUD environment when using it.
The environment allows for use with a web-based browser client for VPN-less connectivity, access as well as AnyConnect VPN client connectivity for those who prefer it. You may choose from labs hosted out of our San Jose Facilities by selecting US West. Choose the Cisco Enterprise Network Sandbox. To access this or any other content, including demonstrations, labs, and training in DCLOUD please work with your Cisco Account team or Cisco Partner Account Team directly. Your Account teams will schedule the session and share it for you to use. Once booked follow the guide within GitHub to complete the tasks adhering to the best practices of the DCLOUD environment.
The PnP Preparation lab content is located within the existing DNAC-TEMPLATES repository to give a one-stop-shop for all the necessary tools, scripts, templates, and code samples. Within it are four labs, which build upon the tutorials to test the methods in a lab environment. The repository was featured in a previous post on Cisco Blogs about Catalyst Center Templates earlier in May 2021.
The previously named DNAC Template LABS within theDNAC-TEMPLATES GitHub repository aim to guide you through the typical steps required to enable the various automation tasks delivered by Catalyst Center. This lab will give examples of templates used in Catalyst Center that we can modify for our use and test on equipment within the LAB environment. Additional information within the lab provides a well-rounded explanation of Automation methods with Templates. Lastly, the lab allows for customers to use Catalyst Center workflows to practice deploying Onboarding, DayN Templates, and Application Policy automation on both Wired and Wireless Platforms.
This lab PnP Preparation will give examples of templates used in Catalyst Center to modify our use and test on equipment within the LAB environment. Additional information within the lab provides a well-rounded explanation of Automation methods with Templates.
The goal of this lab is for it to be a practical guide to aid engineers to rapidly begin using Catalyst Center automation and help them work towards a template strategy. Additionally, this lab will give customers a permanent place to try out the templates and include configurations for various use cases. Finally, this environment will enable engineers to reduce the time and effort needed to instantiate the network.
As a result, you will gain experience in setting up Plug and Play onboarding and templates. Additionally, you will use advanced templating methods and troubleshooting tools. These may help during faultfinding to determine what is failing in a deployment.
Please use this menu to navigate the various sections of this GitHub repository. Within the multiple folders are examples and explanation readme files for reference. There are now two sets of labs, and these are being continually expanded upon.
This newer and more modular lab approach is designed to deal with and includes concepts from the legacy labs in a newer more modular format.
In this section you will continue to find all the existing labs which deal with specifics in separate easy to do labs.
We will share additional labs and content in an ongoing effort to fulfill all your automation needs with Catalyst Center.
In conclusion, if you found this set of labs and repository helpful,
please fill in comments and feedback on how it could be improved.
We'd love to hear what you think. Ask a question or leave a comment below.
And stay connected with Cisco on social!
Check out our Cisco Networking video channel
Subscribe to the Networking blog