cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1227
Views
0
Helpful
5
Replies

Compliance Template

dpgoodfellow
Level 1
Level 1

I'm trying to setup and compliance template to check and deploy a configuration change based upon the following criteria

All Switches, any fastethernet interface with a interface description containing the string "bmg" should have the command no snmp trap link-status.

anbody help please??

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

This should work for you.

Template: CheckDescr

Sub-mode: interface [#FastEthernet.*#]

Is Prereq: Yes

Body:

+ [#description .*bmg.*#]

Template: NoLinkStatus

Parent: CheckDescr

Prereq: CheckDescr

Body:

+ no snmp trap link-status

View solution in original post

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

This should work for you.

Template: CheckDescr

Sub-mode: interface [#FastEthernet.*#]

Is Prereq: Yes

Body:

+ [#description .*bmg.*#]

Template: NoLinkStatus

Parent: CheckDescr

Prereq: CheckDescr

Body:

+ no snmp trap link-status

excellent, that works perfectly.  thank you.

I want to do something very similar to this.  I need to add the logging event link-status command to any interface that has a description that begins with LWAP:


This example seems to suggest 2 separate templates.  Are these 2 Advanced templates?  The example in the help file suggests Command Sets within one template.  Any guidance would be appreciated, thanks.

No, in this example one advanced template was created with two commandlets.  You couldn't have done it any other way.  You could follow the exact same methodology for what you want to do.  However, if you need more help, please start a new thread for your issue.

Thanks but I'm still struggling  . .opened up new discussion:  https://supportforums.cisco.com/thread/2068791