Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

how to deploy prime infrastructure template on selected interfaces/ports

Hi,

So I manged to create an port grouping (all ports which start with the description ACP)

And I also managed to create a CLI-template with the a DB variable setup (see http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/2-0/user/guide/prime_infra_ug/create_temps.html#60783)

My template:

#foreach ($interfaceName in $InterfaceNameList)
interface $interfaceName
     switchport trunk encapsulation dot1q
     switchport trunk native vlan 3
     switchport trunk allowed vlan 3-8
     switchport mode trunk
#end

But when I deploy this template it will apply to all the ports on that switch, I can't apply only to the ports in the port group

Is it possible to fix this somehow?

I can think of 3 ways:

Use other menu than Deploy -> Configuration Tasks -> <select template> -> deploy..., Which is the correct one?

Make an new DB variable which only select ports which start with the description "ACP", but I am on the dark how to create such a DB variable, I know I need to edit /opt/CSCOlumos/conf/ifm/template/inventoryTagsInTemplate/CLITemplateDbVariablesQuery.properties but I can't find the syntax/field description

Use an "if construction" in the cli template, something like #if(${description} == "ACP" ...., but how precisely?

Who can give me any tips?

Thanks,

Emiel Witteman

8 REPLIES
New Member

Did you get anywhere with

Did you get anywhere with this?  I want to do something similar, configure just some ports, not all ports.  Prime seems to work by deploying templates to device groups, but I want it to deploy by device and port groups.  Sadly it seems port groups are just monitoring filters only.

 

There only appears to be 17 DB variables in Prime at the moment and none of them are interface description.

 

I don't know if you can edit the CLITemplateDbVariablesQuery.properties file to add some more.

 

I don't understand why the power of port groups isn't available to configuration deployment.

 

 

 

 

New Member

I am still stuck with this

I am still stuck with this problem, it seems indeed that port groups are just monitoring filters only, while we need to centrally deploy per port settings.....

 

New Member

Hello, Being fairly new to PI

Hello,

 

Being fairly new to PI, we wanted to push config to a custom list of interfaces, apparently, the port group cannot be used, only device groups to deploy a template, very weird.

Until now, no one has come up with a valuable solution

 

Lieven Stubbe

Belgian railways

New Member

Re: Did you get anywhere with

I don't understand why I can group interfaces by looking at their description (Inventory -> Grouping -> Port) but then there is not a variable in the DB Inventory to use about conditional port configuration based on their description...

Any suggestion?
Thanks
Hall of Fame Super Silver

This is one of the areas

This is one of the areas where PI has not caught up to Prime LMS. This can be done using compliance templates in LMS (since version 3.x and still available on LMS 4.x).

See this document for details.

If you have PI license, you are most likely entitled to LMS as well as Cisco have been providing it along with almost all PI orders.

New Member

Thanks for the reply.  Im

Thanks for the reply.  Im aware that there are still gaps between LMS and Prime, I didn't see the ability to push a config to a port group as being a compliance feature, but I see what you are saying.

 

What I don't get though is that your link (thanks again) bears no resemblance to the config/admin guide section in Prime.  Which in fact was in the NCS docs too (I haven't gone back any further to check).

 

If its not supported then that's bad enough, but for Cisco to document what seems to be an NCS/Prime specific way to do this and leave it in when it doesn't work really is appalling.

 

Im still hoping Cisco finally make a management tool without major gaps in it...  :-(

Hall of Fame Super Silver

The features in the document

The features in the document I linked to are available in Prime LMS.

They grouped them under Compliance Templates with the mindset that compliance can be compliance with an internal standard or design, not just compliance to a regulatory or legal requirement (like PCI-DSS, SOX, HIPAA etc.)

New Member

Just wondering if anyone has

Just wondering if anyone has figured this out in PI 3.x?

Thanks,

Dan.

1086
Views
0
Helpful
8
Replies
CreatePlease to create content