LMS 3.2 baseline template not working

Unanswered Question
Mar 23rd, 2010
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Tue, 03/23/2010 - 14:13
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Your submodes are wrong.  Try:


Submode : interface [#FastEthernet.*#]


Submode : interface [INTF]

schitrakar Tue, 03/23/2010 - 16:13
User Badges:

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

Joe Clarke Tue, 03/23/2010 - 16:26
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Yes, I had a space in there.  You used a regexp, but my example would have worked as well.

Actions

This Discussion