I need to create a template which identified interfaces with certain descriptions.
For this to work I see 2 possible scenarios.
Create a Database Query to get the information. (no db expert so moving on)
Create an interactive template which populates the variables as the script continues.
So the idea is that one could set a variable to output from a device. Thinking about this I found that doing a show run interface | i description to work best for my needs. But this is where it gets tricky. When one sets the variable to the command the actual string is populated into the variable instead of the output expected from the device. Not sure if anybody knows how to do this.
Template below refers to current status, I need to add more if statements etc but taking baby steps to understand the process first.
#foreach ($interfaceName in $interfaceNameList) #set ($description = 'show run interface f0/1 | i description') interface f0/1 description $description #end
I found your way to deal with the problem very interesting and I tried to make a template but it seems that it's not possible to execute a "show" command in Prime Infrastructure, nor to get an output from the device, maybe someone could help us with this.
I'm looking for a way to get the interfaces' description from an sql query, I'll let you know if i manage to do it.
This is the sign you have been waiting for. It's the year you apply to become a Cisco Champion. As a Cisco Champion, you’ll:
Get early insights into new Cisco products and solutions
Receive access to Cisco’s engineering rock stars
Expand your ...
Discover how your network can power hybrid work with no compromise in security, agility, or experience.
Join us on Wednesday, February 23 at 10:00 AM PT / 1:00 PM ET for insights on innovations in Wi-Fi 6E, private 5G and more.
Hear from our panel of cus...
Listen: https://smarturl.it/CCRS9E3Follow us: https://twitter.com/CiscoChampion
Esports is booming and Cisco is taking a front seat in the future of Esports in a big way. Game publishers, professional teams, tournament organizers and venue owners ar...
Cisco recently announced the availability of the IOS-XE train – IOS-XE Cupertino 17.7.1. This is a standard maintenance release supporting switching, wireless, SP-Access, Routing as well as IoT (Internet of things) platforms with a sustaining support life...