<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Looks like it was a bug:<br>
<a class="moz-txt-link-freetext" href="https://supportforums.cisco.com/thread/2044372?tstart=0">https://supportforums.cisco.com/thread/2044372?tstart=0</a><br>
<br>
/Wes<br>
<br>
Anthony Holloway wrote:
<blockquote
style="border: medium none ! important; padding-left: 0px ! important; padding-right: 0px ! important; margin-left: 0px ! important; margin-right: 0px ! important;"
cite="mid:AANLkTi=E2Wu6W8NGKe3jr3aeMB+1UR1_gbAaXpH6J2hh@mail.gmail.com"
type="cite">I have never worked with this feature before, but you are
returning an empty string: return "".
<div><br>
</div>
<div>You could try any simply using the return keyword without the
empty string value. If it absolutely needs something, you could try a
boolean: return false.</div>
<div><br>
</div>
<div>Anthony<br>
<br>
<div class="gmail_quote">On Tue, Sep 28, 2010 at 1:43 PM, Ed
Leatherman <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ealeatherman@gmail.com">ealeatherman@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Not
strictly VOIP related but lots of smart people on this list so<br>
figured i'd try it....<br>
<br>
Trying to setup an ESM script to block interface up/down and<br>
eventually CDP and POE messages (ie phone stuff) from being sent to<br>
remote syslog.<br>
This is a very basic script so there is apparently something<br>
fundamental i'm not grasping here...<br>
<br>
Script looks like this (i pilfered from netpro forums):<br>
set msgs [ list {LINK-3-UPDOWN} {LINEPROTO-5-UPDOWN}]<br>
set fac_sev_mnem "${::facility}-${::severity}-${::mnemonic}"<br>
foreach msg $msgs {<br>
if {$msg == $fac_sev_mnem } {<br>
return ""<br>
}<br>
}<br>
return $::orig_msg<br>
<br>
<br>
So I think the logic works fine, it passes messages through to syslog<br>
that i'm not interested in filtering, however the messages that match<br>
(LINK-3-UPDOWN etc) it is basically sending a blank line rather than<br>
not sending at all. Is this working as intended?<br>
<br>
TIA !<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Ed Leatherman<br>
_______________________________________________<br>
cisco-voip mailing list<br>
<a moz-do-not-send="true" href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<a moz-do-not-send="true"
href="https://puck.nether.net/mailman/listinfo/cisco-voip"
target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</font></blockquote>
</div>
<br>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
cisco-voip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a>
<a class="moz-txt-link-freetext" href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a>
</pre>
</blockquote>
</body>
</html>