Overview
In this episode of our ongoing 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;
- PnP Preparation – explains the overall Plug and Play set up steps
- Onboarding Templates – explains in-depth how to deploy Day 0 templates
- Day N Templates – dives into Day N template constructs with both regular and composite templates and use cases
- Application Policys – explores Application Policys and SD-AVC in Catalyst Center and their use
- Telemetry – explains how to deploy Telemetry for assurance
- Advanced Automation – explores Advanced Automation techniques
- Dynamic Automation – a deployment lab for dynamic automation
What will I learn in the PnP Preparation Lab?
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:
Seed Device
Initially 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.
DHCP and DNS Services
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.
Discovery Methodology
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:
DHCP with Option 43 – ASCII connection string giving the Target device the address to Catalyst Center DNS lookup – pnpserver host entry allowing Target to resolve the address to Catalyst Center
Each of these methods has dependencies and configuration, and we cover those equally within the lab.
Testing Methods
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.
How can I get started?
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.
Where can I test and try these labs?
DCLOUD Lab Environment
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:
- Cisco Enterprise Networks Hardware Sandbox West DC
- Cisco Enterprise Networks Hardware Sandbox East DC
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.
Lab Connectivity
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.
Content
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.
Additional Information
Catalyst Center Template Labs
The previously named DNAC Template LABS within the DNAC-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.
Catalyst Center Labs
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.
New Catalyst Center Lab Content
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.
- Lab 1 Wired Automation – Covers green and brownfield use cases (allow 4.0 hrs)
- Lab 2 Wireless Automation – Covers traditional wireless automation (allow 4.0 hrs)
Legacy Lab Content
In this section you will continue to find all the existing labs which deal with specifics in separate easy to do labs.
- PnP Preparation – The lab covers setup for Plug and Play (allow 1.5 hrs)
- Onboarding Templates – The lab covers in depth topics in deploying Day 0 templates (allow 1.5 hrs)
- Day N Templates – The lab covers Day N template constructs and use cases (allow 0.5 hrs)
- Composite Templates – This lab covers building a composite template on Cisco Catalyst Center (allow 0.5 hrs)
- Application Policys – This lab covers Application Policy & SDAVC in Cisco Catalyst Center (allow 1.0 hrs)
- Telemetry – This lab explains how to deploy Streaming Telemetry for Cisco Catalyst Center Assurance (allow 0.5 hrs)
- Advanced Automation – This lab will explore Advanced Automation examples (allow 1.5 hrs)
- Dynamic Automation – This lab will explore additional Advanced Automation examples (allow 2.0 hrs)
- Rest-API Orchestration – This lab uses Postman Collections to automate Cisco Catalyst Center (allow 2.0 hrs)
- Wireless Automation – This lab covers Traditional Wireless Automation (allow 6.0 hrs)
- Orchestration – This lab covers Postman and Ansible orchestration (allow 4.0 hrs)
- CICD Orchestration This lab covers Python, Ansible and JENKINS to orchestrate via REST-API (allow 4.0 hrs)
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
CONNECT WITH US