This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Help with compliance report

Hi

I have 300 cisco that missing some 2 line on some config

class VOD

class class-default"

I try to fint  something like that when its bad

policy-map 1M-Internet-out"

class class-default"

when its good policy

policy-map 1M-Internet-out"

class video

class VOD

class class-default"



policy-map 1M-Internet-out"

class video

class VOD

class class-default"


policy-map 2M-Internet-out"

class video

class VOD

class class-default"

try to to play with that sample

Must Contain ^(?=.*?\bAccess-list\b)(?=.*?\joe\b).*$

OR Must Contain ^(?=.*?\bAccess-list\b)(?=.*?\sam\b).*$

OR Must Contain ^(?=.*?\bAccess-list\b)(?=.*?\tom\b).*$

Must Contain ^(?=.*?\class-map\b)(?=.*?\IPTV\b).*$

OR Must Contain ^(?=.*?\class-map\b)(?=.*?\VOD\b).*$

OR Must Contain ^(?=.*?\class-map\b)(?=.*?\video\b).*$

OR Must Contain ^(?=.*?\policy-map\b)(?=.*?\-Internet-out\b).*$

.......

Help ...

  • It sounds like you may be asking:

    1.  How to use NCM to discover whether two specific lines are present or missing in any of your configurations.

    2.  How to use NCM to automatically correct the problem?

    The answer to #1:  Create a Rule and Policy and Compliance Report that searches for those two lines and alerts / reports when those lines are not present in your configurations..

    #2 is equally simple.  Modify the components of your new Compliance Report to use the Remediation Script option to automatically insert the two lines into your configurations if they are missing.

    Remember to only select the correct nodes when building and applying the Compliance Report.  This can prevent NCM from applying inappropriate scripts to incompatible nodes.

  • Hi

    How do I bind  "policy-map XY-Internet-out" to the missing lines ?

    I need to know where  I miss lines

    policy.png