3 Replies Latest reply on Dec 21, 2015 5:17 AM by sja

    Help  with compliance report

    sja

      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 ...

        • Re: Help  with compliance report
          sja

          no one has a clue ?

            • Re: Help  with compliance report
              rschroeder

              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.