cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
406
Views
1
Helpful
2
Replies

Cisco prime infrastructure Features & Technologies template

dijix1990
VIP Alumni
VIP Alumni

Hi I need a help I want to change some descriptions on my routers via  Features & Technologies CLI template

I try to use symbol

Like 

int Vl100
des -E- ### Internet main channel

but CPI ignore it and try to install (Without ### Internet main channel)

int Vl100
des -E- 

maybe I need to screen it 

2 Replies 2

pieterh
VIP
VIP

In short: don't use "#" in a template!

I answered a similar question before
Prime Infrastructure CLI Templates - Cisco Community 
with the reply below, unfortunately the link in that post does not work anymore,
but the statement about "#" as precessing a known keyword will still be valid !

the # has special meaning in CLI template. look at this example from the book

    #foreach ($interfaceName in $interfaceNameList)
      interface $interfaceName
      shutdown
   #end

so using it multiple times (used as a comment) you can expect some problems

CPI tries to match a "known keyword" following the #sign and on nomatch ignore the # and what follows.

edit: new link 
Cisco Prime Infrastructure 3.10 User Guide - Create Templates to Automate Device Configuration Changes [Cisco Prime Infrastructure] - Cisco 

and also:

Oh, inconvenient that we can't use any special symbols