<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LSM 2.5 Compliance Script Syntax in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/lsm-2-5-compliance-script-syntax/m-p/411949#M1055809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can add like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logging [#10\.16\.20\.2#]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will look for both 10.17.10.200 and 10.208.34.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2005 17:58:52 GMT</pubDate>
    <dc:creator>smalkeric</dc:creator>
    <dc:date>2005-09-23T17:58:52Z</dc:date>
    <item>
      <title>LSM 2.5 Compliance Script Syntax</title>
      <link>https://community.cisco.com/t5/network-security/lsm-2-5-compliance-script-syntax/m-p/411948#M1055808</link>
      <description>&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;    I'm having trouble with compliance script syntax in LMS 2.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is pretty easy if I know what to match.  For example:&lt;/P&gt;&lt;P&gt;+ logging 10.16.20.32         &amp;lt;- matches that line exactly&lt;/P&gt;&lt;P&gt;- logging [#10\.16\.20\.*#]   &amp;lt;- matches 10.16.20.1, 2, 3, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to match everything EXCEPT one server.  Assume I have the config on a router:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logging 10.16.20.32&lt;/P&gt;&lt;P&gt;logging 10.17.10.200&lt;/P&gt;&lt;P&gt;logging 10.208.34.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to ensure 10.16.20.32 is defined, and remove all others.  But, I&lt;/P&gt;&lt;P&gt;don't know the IPs of the others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+ logging 10.16.20.32&lt;/P&gt;&lt;P&gt;- logging [#10\.16\.20\.32#]    &amp;lt;- how do I negate this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the second line to match both:&lt;/P&gt;&lt;P&gt;logging 10.17.10.200&lt;/P&gt;&lt;P&gt;logging 10.208.34.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:24:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/lsm-2-5-compliance-script-syntax/m-p/411948#M1055808</guid>
      <dc:creator>kevin_miller</dc:creator>
      <dc:date>2020-02-21T08:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: LSM 2.5 Compliance Script Syntax</title>
      <link>https://community.cisco.com/t5/network-security/lsm-2-5-compliance-script-syntax/m-p/411949#M1055809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can add like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logging [#10\.16\.20\.2#]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will look for both 10.17.10.200 and 10.208.34.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 17:58:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/lsm-2-5-compliance-script-syntax/m-p/411949#M1055809</guid>
      <dc:creator>smalkeric</dc:creator>
      <dc:date>2005-09-23T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: LSM 2.5 Compliance Script Syntax</title>
      <link>https://community.cisco.com/t5/network-security/lsm-2-5-compliance-script-syntax/m-p/411950#M1055813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to two of the network management trainers at Networkers, I've got my answer.  Here are some things that work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- logging [LOGSERVER]&lt;/P&gt;&lt;P&gt;	Notes - LOGSERVER is a placeholder that could be anything.  This matches all lines with a single parameter - including the correct one in the config, but it also matches lines with other parameters - like "logging sync"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-   logging  [#(\d+\.?)+#]&lt;/P&gt;&lt;P&gt;        Notes - This matches all logging lines with an IP address as a parameter.  This works but also matches the line that I don't want to remove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- logging [#(?!10\.16\.20\.32).*#]&lt;/P&gt;&lt;P&gt;         Notes - This uses a negative lookahead search.  The current matching code in Ciscoworks does anchored pattern matches so you must add ".*" to the end of the line.  You must use an advanced baseline with multiple instances selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, this last example solves my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 01:38:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/lsm-2-5-compliance-script-syntax/m-p/411950#M1055813</guid>
      <dc:creator>kevin_miller</dc:creator>
      <dc:date>2005-09-26T01:38:42Z</dc:date>
    </item>
  </channel>
</rss>

