03-23-2010 11:56 AM
I am testing some simple queries using LMS 3.2 baseline templates.
I want to check if CDP is disabled on all FastEtherner interfaces,
Name: fastethernet SubMode: Yes isPrerequisite: No
Ordered : No Prerequisite-Commandset : none Parent: none
interface FastEthernet[#.*#]
+ no cdp enable
I applied this compliance check on a switch which has interfaces where cdp is enabled. The result still says No Non-Compliant Commands.
Similary, I am testing if "dhcp snooping" is untrusted on all the interfaces.
Name: dhcpsnooptrust SubMode: Yes isPrerequisite: No
Ordered : No Prerequisite-Commandset : none Parent: none
interface[#.*#]
- ip dhcp snooping trust
When applied to a device which has some interfaces with "dhcp snooping" trusted, the result still says No Non-Compliant Commands.
What I am missing here ?
Thanks,
Sharad
03-23-2010 02:13 PM
Your submodes are wrong. Try:
Submode : interface [#FastEthernet.*#]
Submode : interface [INTF]
03-23-2010 04:13 PM
Hi Joe,
The first submode worked with your modification.
For the second submode, I used space after "interface",
interface [#.*#]
and it worked after that.
Thanks,
Sharad
03-23-2010 04:26 PM
Yes, I had a space in there. You used a regexp, but my example would have worked as well.
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