[cisco-voip] OT: IOS Embedded Syslog Manager
Wes Sisk
wsisk at cisco.com
Wed Sep 29 09:49:23 EDT 2010
Looks like it was a bug:
https://supportforums.cisco.com/thread/2044372?tstart=0
/Wes
Anthony Holloway wrote:
> I have never worked with this feature before, but you are returning an
> empty string: return "".
>
> 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.
>
> Anthony
>
> On Tue, Sep 28, 2010 at 1:43 PM, Ed Leatherman <ealeatherman at gmail.com
> <mailto:ealeatherman at gmail.com>> wrote:
>
> Not strictly VOIP related but lots of smart people on this list so
> figured i'd try it....
>
> Trying to setup an ESM script to block interface up/down and
> eventually CDP and POE messages (ie phone stuff) from being sent to
> remote syslog.
> This is a very basic script so there is apparently something
> fundamental i'm not grasping here...
>
> Script looks like this (i pilfered from netpro forums):
> set msgs [ list {LINK-3-UPDOWN} {LINEPROTO-5-UPDOWN}]
> set fac_sev_mnem "${::facility}-${::severity}-${::mnemonic}"
> foreach msg $msgs {
> if {$msg == $fac_sev_mnem } {
> return ""
> }
> }
> return $::orig_msg
>
>
> So I think the logic works fine, it passes messages through to syslog
> that i'm not interested in filtering, however the messages that match
> (LINK-3-UPDOWN etc) it is basically sending a blank line rather than
> not sending at all. Is this working as intended?
>
> TIA !
>
>
>
> --
> Ed Leatherman
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net <mailto:cisco-voip at puck.nether.net>
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20100929/e738b0b9/attachment.html>
More information about the cisco-voip
mailing list