01-13-2011 08:56 AM
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??
Solved! Go to Solution.
01-16-2011 02:53 PM
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
01-16-2011 02:53 PM
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
01-18-2011 05:42 AM
excellent, that works perfectly. thank you.
02-17-2011 10:03 AM
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.
02-18-2011 12:12 AM
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.
02-18-2011 07:27 AM
Thanks but I'm still struggling . .opened up new discussion: https://supportforums.cisco.com/thread/2068791
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide