<div dir="ltr">Hi All,<div><br></div><div>How do I allow ``show logging | include foo'' but not ``show logging'' ? Some security requirement that we are trying to achieve where</div><div>you are allowed to search for specific string ``foo'', but not allowed to see all the logs.</div><div><br></div><div>This is what I tried and did not work</div><div><br></div><div><div> cmd = show {</div><div> deny "^logging$"<br></div><div> permit "^logging|include foo" # line 3409</div><div> deny .*</div><div> }</div><div><br></div><div>And I am getting</div><div><br></div><div><div>Thu Feb 19 14:25:44 2015 [3506]: show logging <cr> permitted by line 3409</div></div><div><br></div><div>I ran </div><div>router#show logging<enter><br></div><div><br></div><div>If I try ``permit "^logging\s+|include foo'' I get the following error</div><div><br></div><div> Thu Feb 19 14:22:43 2015 [3434]: Error expecting '}' but found '+|' on line 3409</div><div><br></div><div>Any suggestion is appreciated.</div><div><br></div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br><br></div>
</div></div>